Title: RE: Oracle database and connection pooling

Does anyone know if there is plan to support the server-side include syntax for servlets?

 

For example HTML such as this in a JSP page:

 

<SERVLET NAME=ApMaker>

<PARAM NAME=pageTitle VALUE=”asdf”>

</SERVLET>

 

 

----

Peter T. Brown

Director of Technology

Memetic Systems

"Intelligent. Customer Acquisition & Retention."

206.985.7171 ext. 110

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Madrid, Christopher P (US - Austin)
Sent: Thursday, February 01, 2001 2:59 PM
To: Orion-Interest
Subject: RE: Oracle database and connection pooling

 

Try using com.evermind.sql.DriverManagerDataSource as your datasource class and set your max-connections. Look it up using your ejb-location and setting it to the standard DataSource interface. Orion will pool the connection automatically. Since you are using BMP, remember to close your connection.

Chris Madrid
Deloitte Consulting

 

 -----Original Message-----
From:   Danut Prisacaru [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, February 01, 2001 1:44 PM
To:     Orion-Interest
Subject:        Oracle database and connection pooling

Hi,

I am new to EJBs so I apologize if my question sounds silly. I am trying to
configure Orion to use Oracle 8 and pooled connections.

This is how my data-source looks like:

    <data-source
       class="com.evermind.sql.ConnectionDataSource"
       ejb-location="jdbc/MyApollo"
       location="jdbc/OracleCoreDS"
          pooled-location="jdbc/OraclePooledDS"
       name="Oracle"
       schema="database-schemas/oracle.xml"
       xa-location="jdbc/xa/OracleXADS"
       connection-driver="oracle.jdbc.driver.OracleDriver"
       username="system"
       password="manager"
       url="jdbc:oracle:oci8:@APOLLO"
       inactivity-timeout="30"
    />

I am trying to implement a BMP and here is the code I am using to get the
connection:

public void setEntityContext(EntityContext ec)
{
         ...
         Context initialContext = new InitialContext();
         ConnectionPoolDataSource dataSource = (ConnectionPoolDataSource)
initialContext.lookup( "jdbc/OraclePooledDS" );
}

and later on

public Connection getConnection() throws SQLException
{
         ...
         return dataSource.getPooledConnection().getConnection();
}

I get the folowing exception in my client code when I create the bean

javax.ejb.EJBException: com.evermind.sql.OrionPooledDataSource
         at com.evermind.server.rmi.ba.invokeMethod(JAX)
         at com.evermind.server.rmi.a1.invoke(JAX)
         at com.evermind.server.rmi.a2.invoke(JAX)
         at __Proxy2.create(Unknown Source)
         at SelectTestClient.main(SelectTestClient.java:117)

that seems to be thrown
when the execution reaches the following line of code:
         ConnectionPoolDataSource dataSource = (ConnectionPoolDataSource)
initialContext.lookup( "jdbc/OraclePooledDS" );

Thanks!
Danut

 

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

 

This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.

Reply via email to