File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB Application with two data sources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Application with two data sources" Watch "EJB Application with two data sources" New topic
Author

EJB Application with two data sources

vartika vaish
Greenhorn

Joined: Apr 15, 2008
Posts: 15
Hi I have an application which needs to access two different database sources both in oracle.

I am developing this application in eclipse.

In this application i have one web component and one ejb component, How do i connect same ejb with two Data Source connections. When i right click on the project and update the properties then i can select only one jndi name. So i am confused.

Kindly Help
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Which Java Application Server are you using?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Application with two data sources