Newsflash

Now you can Submit Articles and News to GratisJSP.

 

 

Main Menu

Home
About
News
Search

Login Form






Lost Password?
No account yet? Register
powered_by.png, 1 kB
Home arrow FAQ arrow FAQ arrow GratisJSP FAQ
GratisJSP FAQ Print
Written by Administrator   
fredag, 23 november 2007

Q:
I would like to ask about the parameters of the account: size, transfer, limits, what is shared... I would like to build a portal about Warsaw and build it on my own (without CMS in PHP). As I live in Poland, JSP hosting is very expensive and offers too little and of course the variety is not wide.

A:
GratisJSP is a place for developers to share experiences, get help and test Java/JSP applications.
GratisJSP was introduced in March this year (2007) and is still under development. This development is performed on a voluntary basis and is rather slow.
For the moment GratisJSP is a 100% basement project. Perhaps that will change in the future. There are no actual limits on size and transfer per account. The only limit (so far) is a max of 10 MB per WAR file. And since GratisJSP is connected to the internet via a private broadband the bandwidth is limited accordingly. In GratisJSP everything is shared, Java, Tomcat and MySQL.

Q:
I'm trying to connect to a mysql server outside of gratisjsp,

A:
Due to GratisJSP security policy it is not possible to connect to a database outside GratisjJSP.

Q:
I'm using the following code:
try {
Class.forName("com.mysql.jdbc.Driver");

A:
When accessing the database you must use the existing connection pool. This means that you must not include the MySQL driver in your WAR file.
Create or edit your META-INF/context.xml so it contains:
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<ResourceLink name="jdbc/GRATISJSP" global="jdbc/GRATISJSP" type="javax.sql.DataSource"/>
</Context>

To get a databse connection use the following method:
Context initCtx = new InitialContext();
DataSource ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/GRATISJSP");
if (ds != null) {
conn = ds.getConnection();

Q:
What's my account's domain name?

A:
You will not get a domain name when you register with GratisJSP. The address to your uploaded application is http://www.gratisjsp.org/<your_appl>

Q:
I use Hibernate with HSQLDB in my test application, in its configuration file absolute path is defined (this is its original content):
<property name="connection.driver_class">
org.hsqldb.jdbcDriver
</property>
<property name="connection.url">
jdbc:hsqldb:file:/home/brundibar/hsqldb/test_db2
</property>

A:
The only databse supported for the moment is MySQL.
Using Hibernate is something we're looking into but for now it is not supported.

 

 

Last Updated ( fredag, 23 november 2007 )
 
© 2009 GratisJSP.org - Articles
Joomla! is Free Software released under the GNU/GPL License.