Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: EJB Application with two data sources
 
Similar Threads
Application Architecture Suggestion
Websphere connecting with Oracle9i-Problem in setting transaction attributes of MDB
1 or 2 homes
Spring 2.5 / AbstractTransactionalJUnit4SpringContextTests/ datasource
Looking for JSF Ajax component (or advice how to implement it).