-
1. Re: performance problems with opta 2000
fabiosss Oct 26, 2001 4:48 PM (in response to msridhars)Hi
I'm using i-net OPTAT 2000 Version 4.13, with MSQL 7 and JBOSS 2.4, and I'm having problems for connecting to DBase.
The only way I can link it is to add "con.setCatalog(databaseName)" after the DataSource's statement.
Could you please let me know how do you connect to dbase through the DataSource's statement only?
Fabio -
2. Re: performance problems with opta 2000
v_marijan Oct 28, 2001 3:41 AM (in response to msridhars)Hi,
I will try to do it very short.
Since it will take a lot of space to cover everything.
This is for your ejb:
Context ictx = new InitialContext();
DataSource ds = (DataSource) ictx.lookup("java:/OptaNetPool");
then you can call
ds.getConnection();
The below is the extra info, just in case that you have problem setting things up.
Here you will have to set up the connectionPool for opta2000.
You will need the link to the driver:
com.inet.tds.TdsDriver
and the rest of setings for the pool
This is the file name : jboss.jcml
You will need to add the opta jar to the classpath.
this is good place, since jboss will load it whenever you restart the server.
jboss/jboss/lib/ext/Opta2000.jar
also the jdbc2_0-stdext.jar ( recommended )jdbc 2.0 optional package.
Hope it helps......
This is extra:
NOTE: There is a nice article how to utilize the EjbProxy.
Site is: java world (Java Tip 118 )
Marijan