Hi Ivan,
I connect to cloudscape using rmi-jdbc bridge. To get started you need to do
the following:
1. Setup datasources.xml
2. Put RmiJdbc.jar to the %ORION-DIR%/lib folder
3. Use cloudscape connection by obtaining the javax.sql.DataSource from
JNDI.
1. Put into the datasources.xml the following:
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="Cloudscape"
location="jdbc/CloudscapeCoreDS"
xa-location="jdbc/xa/CloudscapeXADS"
ejb-location="jdbc/CloudscapeOgaDS"
connection-driver="RmiJdbc.RJDriver"
username="user_name"
password="secret_password"
url="jdbc:rmi://host:port/jdbc:cloudscape:dbName"
inactivity-timeout="30"
/>
2. Seems to be self-expalnatory: RmiJdbc.jar must be in the orion's
classpath, so put it to the %ORION-DIR%/lib folder.
3. to obtain the java.sql.Connection, do something like:
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
...
DataSource dataSource = ( DataSource ) new
nitialContext().lookup( "java:comp/env/jdbc/CloudscapeCoreDS" );
Connection connection = dataSource.getConnection();
...
HTH,
Sergei.
----- Original Message -----
From: "Žučenko Ivan" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 10:16 AM
Subject: Orion beginer's question
> Hi all,
> I did lot of j2se programming, but a bit new in j2ee. I'm quite common
> with servlets, but tryed only a few ejb and jndi tasks but in j2ee-ri,
> where datasources are preconfigured to cloudscape. Please can enybody
> help me to connect cloudscape, which is quite friendly to me (at least
> has console and even GUI and lot of docs) or InterClilent to ORION. I
> have no reason not to work with hsql, but no links to that site works
> and so no documentation, did they shut down?
>
> So please what (may be some tutorial) can help me to connect dbms i at
> least a bit know???