Please send me some JDBC (Oracle) samples if possible.
TIA
Felipe Soares
-
Samples EJB with JDBC (5 messages)
- Posted by: Felipe Soares
- Posted on: May 14 2001 15:24 EDT
Threaded Messages (5)
- Samples EJB with JDBC by Raghuram Ethirajan on May 14 2001 15:33 EDT
- Samples EJB with JDBC by Felipe Soares on May 15 2001 09:50 EDT
-
Samples EJB with JDBC by Felipe Soares on May 15 2001 02:22 EDT
- Samples EJB with JDBC by Vijay Challa on May 18 2001 03:49 EDT
-
Samples EJB with JDBC by Felipe Soares on May 15 2001 02:22 EDT
- Samples EJB with JDBC by Felipe Soares on May 15 2001 09:50 EDT
- Samples EJB with JDBC by chetana lingaiah on May 15 2001 07:55 EDT
-
Samples EJB with JDBC[ Go to top ]
- Posted by: Raghuram Ethirajan
- Posted on: May 14 2001 15:33 EDT
- in response to Felipe Soares
Which application server are using?
-
Samples EJB with JDBC[ Go to top ]
- Posted by: Felipe Soares
- Posted on: May 15 2001 09:50 EDT
- in response to Raghuram Ethirajan
We are not sure yet. We might be using Weblogic, but as soon as we still don't know I would like to make a generic (portable) code, is that possible ?
TIA
Felipe Soares -
Samples EJB with JDBC[ Go to top ]
- Posted by: Felipe Soares
- Posted on: May 15 2001 14:22 EDT
- in response to Felipe Soares
Hi wisers,
How can I make a Call to a DataSource without using Weblogic (weblogic.InitialContext) ? I need to use a generic InitialContext, like I do in the following code :
//get naming context
Context ctx = new InitialContext();
//look up jndi name
Object ref = ctx.lookup("Conexao_Oracle");
//cast to Home interface
conexao_OracleHome = (Conexao_OracleHome) PortableRemoteObject.narrow(ref, Conexao_OracleHome.class);
TIA
Felipe Soares
PS : Any code samples could be very usefull
-
Samples EJB with JDBC[ Go to top ]
- Posted by: Vijay Challa
- Posted on: May 18 2001 15:49 EDT
- in response to Felipe Soares
DataSource ds = (DataSource)ic.lookup("java:comp/env/myDatasource");//map myDatasource in your ejb-jar.xml to some name and map the name to a physical resource in weblogicejb-jar.xml(or any other xml if using any other server)
After u get a datasource, u can get a connection from it as
ds.getConnection();
and then carry on as usual -
Samples EJB with JDBC[ Go to top ]
- Posted by: chetana lingaiah
- Posted on: May 15 2001 07:55 EDT
- in response to Felipe Soares
WebLogic examples for EJB is at:
http://www.weblogic.com/docs51/examples/ejb/Package-examples.ejb.html