Hai,

I am using JBoss 2.1,winodows NT Server,Sybase Sql Server.
I have deployed a bean which connects to the database.Actually
am getting connection like this
        
        Context ctx = new InitialContext();
            DataSource ds = (DataSource)ctx.lookup("java:/TryDB");
                con = ds.getConnection();

Instead of getting connection like this I need to get a connection
from connection pool.Since we have a situation like this, we need
to deploy a bean in JBoss for development purpose and atlast 
we have to deploy that bean to weblogic..

In weblogic we use to get connection like this,
      
         String driver="weblogic.jdbc.pool.Driver";
         String url="jdbc:weblogic:pool:TryDB";
 
        Class.forName(driver).newInstance();
        Connection con=DriverManager.getConnection(url);

Same way shall I get the connection pool from JBoss Connection pool.What
type of driver
do I need to use .What type of url i have to use.
Anyone give me hand in this regard.

Thanks in advance,
With Regards,
Vinoth.C        
        
                
        

With Regards,
Vinoth.C



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

                Visit us at http://www.cognizant.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to