Before you try to get a connection make sure the driver is loaded.
Either using a static block :

    static {
        new weblogic.jdbc.jts.Driver();
    }

Or using the DriverManager:

DriverManager.registerDriver(new weblogic.jdbc.jts.Driver());

-ashwath


----- Original Message -----
From: Chandrasekaran.V <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 14, 2000 10:26 AM
Subject: Re: Guidelines to convert a class to an EJB


> Manoj,
> This is a sample code to access the Connection Pool.Here myConnectionPool
is
> the name of the connection pool u give in the weblogic.properties file.
>
>  private Connection getConnection() throws SQLException, RemoteException {
>         String jdbcURL = "jdbc:weblogic:jts:myConnectionPool"
>          return DriverManager.getConnection(jdbcURL);
>  }
>
> Hope this solves ur connection pooling access query.
>
> Bye
> Chandra
> ----- Original Message -----
> From: Govindan, Manoj (CTS) <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, May 13, 2000 5:29 AM
> Subject: Guidelines to convert a class to an EJB
>
>
> > Hi,
> >         Are there any guidelines/rules of thumb/things to watch out for
> > while converting an existing class to an EJB? Does database connectivity
> > create problems while converting to an EJB?
> >         I have procured weblogic with a view of using its connection
> pooling
> > mechanism in one of my test applications. Can any one help with sample
> code
> > on using the connection  pooling mechanism to access a DB?
> >
> > Thanks
> > Manoj
> >
> >
>
===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to