Title: RE: Oracle database and connection pooling
JSSI was part of pre-J2EE java, Apache had a module to handle it (Apache JSSI).  >From the dev site:
 

Apache JSSI is a servlet based on the Java Soft Servlet API 2.0 (http://java.sun.com/products/servlet/index.html) and can be executed by any web server that can execute such servlets.

Install it  (http://java.apache.org/jservssi/install.html) like any other servlet and map the *.jhtml-extension to be handled with this servlet"

Distro is available at http://java.apache.org/jservssi/dist/ )

 

Note:  Most use this _instead_of_ JSP, or to connect easily to PHP or JPython via their servlets.  It has the additional benefits (depending on architecture) of being more 'nice' with native threads and therefore memory and CPU cycles (instantiate once, run forever).  I haven't tried it on Orion, but it works well in Tomcat and with JBoss.  

Hmmmm...

Mike

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter T. Brown
Sent: Thursday, February 01, 2001 10:01 PM
To: Orion-Interest
Subject: embedded servlet tag

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.

JavaSoft Servlet API 2.0.url

Install it.url

distribution section.url

Reply via email to