aspose file tools
The moose likes BEA/Weblogic and the fly likes Weblogic pool connection Vs JDBC Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Weblogic pool connection Vs JDBC Connection" Watch "Weblogic pool connection Vs JDBC Connection" New topic
Author

Weblogic pool connection Vs JDBC Connection

Raj Sikka
Ranch Hand

Joined: Apr 11, 2003
Posts: 34
Hi
I have a user managed transaction.
I am inserting a record in database using a weblogic connection (ejbCreate method of CMP Bean).
In the same transaction, I open a JDBC connection from the same class.
I am trying to access the records inserted using the weblogic connection through the JDBC connection.
I am not able to view the records in the JDBC connection.
Is there a way to make the data visible to the JDBC connection as well.
Following is the pseudocode of what I am doing:
Begin User Transaction;
Call ejbCreate() method of CMP Bean (Insert record in database);
Open JDBC connection(user name, password, driver, datasource);
read record from database using JDBC connection
(This read does not return the inserted data through ejbCreate())
End User Transaction;
One more question .
Does weblogic supports passing arrays from oracle to java ?
Thanks,
Srikanth
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
as far as the transaction is running u're not suppose to see the data, only after the transaction commits.
About passing arrays, u can pass them as long as they have only serializable objects in it.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Weblogic pool connection Vs JDBC Connection
 
Similar Threads
please answer this 128 questions for WLS. Urgently!
Help - Data visibility in Weblogic and JDBC connection problem
data visibility across weblogic pool connection and JDBC connection
My SCEA Part 1Study Notes
Weblogic Pool connection Vs JDBC Connection.