-
1. Re: Cloudscape anyone?
marc.fleury Aug 15, 2001 10:47 AM (in response to jasonhobbs)looks like you inverted the jdbcProvider XML stuff with the datasource declaration, try inverting them
-
2. Re: Cloudscape anyone?
jasonhobbs Aug 15, 2001 11:09 AM (in response to jasonhobbs)Okay it looks like I have this working now... For reference, here are my jboss.jcml entries:
<!-- JDBC -->
COM.cloudscape.core.JDBCDriver
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
Cloudscape
jdbc:cloudscape:CloudscapeDB;create=true
databaseName=CloudscapeDB;createDatabase=create
root
Thanks! Hope this helps someone else too! -
3. Re: Cloudscape anyone?
jschlesser Aug 21, 2001 1:58 AM (in response to jasonhobbs)Yesterday, I decided to see if I could create a J2EE development environment at home. I figured that I would install JBoss, install Cloudscape, start both of them up, create some tables and brew a bean or two. JBoss installed, no prob. Cloudscape on the other hand was a pain. After I finally got it installed (unzipped and classpaths set), it took a little while to find the Rmi/non-embedded start scripts, actually it took me many hours to figure out that I should be looking for the Rmi/non-embedded start scripts because the tutorials all assume that you will be embedding Cloudscape.
Here is the less painful method.
Starting Cloudscape:
Make sure that all of your environment vars are set properly.
Set $CLOUDSCAPE_INSTALL
Add the following to your classpath: $CLOUDSCAPE_INSTALL/frameworks/cloudconnect/classes;$CLOUDSCAPE_INSTALL/frameworks/RmiJdbc/classes/RmiJdbc.jar;
'$CLOUDSCAPE_INSTALL/frameworks/RmiJdbc/bin/startCS.ksh' Starts Cloudscape DB in standalone mode.
'$CLOUDSCAPE_INSTALL/frameworks/RmiJdbc/bin/cview.ksh' Starts Cloudview. You are on your own with learning to use Cloudview, but it isn't too bad, really.
Once you get the start scripts in there to work, you have a standalone DB, and you can manage it using Cloudview.
Now you just need to make some databases using Cloudview, and you can connect to them from JBoss remotely with the configuration below.
You will need both cloudscape.jar and cloudscape's RmiJdbc.jar in the $JBOSS_HOME/lib/ext directory or in your JBoss classpath.
Here are my jboss.jcml settings
<!-- naming -->
1999
<!-- JDBC -->
COM.cloudscape.core.RmiJdbcDriver
Cloudscape
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
jdbc:cloudscape:rmi://localhost:1099/CloudscapeDB
Things to notice:
The naming port had to be changed because when you run cloudscape in standalone RmiJdbc mode, it binds to port 1099, which is the default port for naming in JBoss. I would prefer to change the port of Cloudscape, but JBoss has much better configurability and docs.
The driver is 'COM.cloudscape.core.RmiJdbcDriver' instead of 'COM.cloudscape.core.JDBCDriver'
The DataSourceClass changed because I have a different version of JBoss (2.4.0). At least I think that this is the case, I have only had JBoss running for a day.
The database connection URL semantics changed as well. If you use cloudview to make a new database instance called 'NewDB', you would replace 'jdbc:cloudscape:rmi://localhost:1099/CloudscapeDB' with 'jdbc:cloudscape:rmi://localhost:1099/NewDB'
Your post helped me immensely in figuring out the remote configuration. Thanks jasonhobbs and marcf.
I Hope this helps too. -
4. Re: Cloudscape anyone?
glenn_dickson Feb 4, 2003 12:00 AM (in response to jasonhobbs)Yesterday, I decided to see if I could create a J2EE development environment at home. I figured that I would install JBoss, install Cloudscape, start both of them up, create some tables and brew a bean or two. JBoss installed, no prob. Cloudscape on the other hand was a pain. After I finally got it installed (unzipped and classpaths set), it took a little while to find the Rmi/non-embedded start scripts, actually it took me many hours to figure out that I should be looking for the Rmi/non-embedded start scripts because the tutorials all assume that you will be embedding Cloudscape.
Here is the less painful method.
Starting Cloudscape:
Make sure that all of your environment vars are set properly.
Set $CLOUDSCAPE_INSTALL
Add the following to your classpath: $CLOUDSCAPE_INSTALL/frameworks/cloudconnect/classes;$CLOUDSCAPE_INSTALL/frameworks/RmiJdbc/classes/RmiJdbc.jar;
'$CLOUDSCAPE_INSTALL/frameworks/RmiJdbc/bin/startCS.ksh' Starts Cloudscape DB in standalone mode.
'$CLOUDSCAPE_INSTALL/frameworks/RmiJdbc/bin/cview.ksh' Starts Cloudview. You are on your own with learning to use Cloudview, but it isn't too bad, really.
Once you get the start scripts in there to work, you have a standalone DB, and you can manage it using Cloudview.
Now you just need to make some databases using Cloudview, and you can connect to them from JBoss remotely with the configuration below.
You will need both cloudscape.jar and cloudscape's RmiJdbc.jar in the $JBOSS_HOME/lib/ext directory or in your JBoss classpath.
Here are my jboss.jcml settings
<!-- naming -->
1999
<!-- JDBC -->
COM.cloudscape.core.RmiJdbcDriver
Cloudscape
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
jdbc:cloudscape:rmi://localhost:1099/CloudscapeDB
Things to notice:
The naming port had to be changed because when you run cloudscape in standalone RmiJdbc mode, it binds to port 1099, which is the default port for naming in JBoss. I would prefer to change the port of Cloudscape, but JBoss has much better configurability and docs.
The driver is 'COM.cloudscape.core.RmiJdbcDriver' instead of 'COM.cloudscape.core.JDBCDriver'
The DataSourceClass changed because I have a different version of JBoss (2.4.0). At least I think that this is the case, I have only had JBoss running for a day.
The database connection URL semantics changed as well. If you use cloudview to make a new database instance called 'NewDB', you would replace 'jdbc:cloudscape:rmi://localhost:1099/CloudscapeDB' with 'jdbc:cloudscape:rmi://localhost:1099/NewDB'
Your post helped me immensely in figuring out the remote configuration. Thanks jasonhobbs and marcf.
I Hope this helps too.