The url format is the same as that you would use to connect to the database from any java program it should look something like this: <attribute name="URL">jdbc:sybase:Tds:XXX:YYY?ELIMINATE_010SM=true</attribute> where XXX is the address of the database (i.e. along the lines of mydb.mycompany.com) and YYY is the port you should be connecting to. The ?ELIMINATE_010SM=true part of the URL is optional. It turns off a Sysbase warning message that is generated because the databases we connect to don't support all of the features of JConnect, this isn't a problem in itself as it works fine. However without the flag to turn the warning off Jboss will catch the warning, decide things don't look too good, and ignore this dataSource (so you would never be able to connect to this Db). The JDBC User and Password fields should be set to the same values as you use for username and password when you connect normally. Hope this helps Rob -----Original Message----- From: Jason Wells [mailto:[EMAIL PROTECTED]] Sent: 27 April 2001 01:09 To: [EMAIL PROTECTED] Subject: [JBoss-user] JDBC Sybase configuration? Hello, I'm trying to get JBoss to use the Sybase JConnect 5.2 JDBC driver for CMP entity beans. I've been looking at the "Using MS SQL Server with JBoss" tutorial on the JBoss site, which is the closest thing I've found in terms of relevant documentation: http://www.jboss.org/documentation/HTML/ch11s17.html And actually, it seems pretty applicable. But there's one area where the instructions aren't too useful, because they vary considerably from driver to driver, and that's the connection pool MBean declaration. I'm thinking it would look something like this... <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=SQLServerPool"> <attribute name="DataSourceClass">com.sybase.jdbcx.SybDataSource</attribute> <attribute name="PoolName">SybasePool</attribute> <attribute name="URL">???</attribute> <attribute name="Properties">user=dbusername; password=dbpassword</attribute> <attribute name="MinSize">4</attribute> <attribute name="MaxSize">10</attribute> <attribute name="GCEnabled">false</attribute> <attribute name="GCMinIdleTime">1200000</attribute> <attribute name="GCInterval">120000</attribute> <attribute name="InvalidateOnError">false</attribute> <attribute name="TimestampUsed">false</attribute> <attribute name="Blocking">true</attribute> <attribute name="LoggingEnabled">false</attribute> <attribute name="IdleTimeoutEnabled">false</attribute> <attribute name="IdleTimeout">1800000</attribute> <attribute name="MaxIdleTimeoutPercent">1.0</attribute> </mbean> But, I have no idea how to formulate the JDBC URL, or if it's even needed. Also, I wonder if I need "JDBCUser" and "Password" attributes. All of these things seem to vary from driver to driver. Has anyone set this up for the Sybase JDBC driver? Any help is appreciated. Thanks, Jason _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
