aspose file tools*
The moose likes Websphere and the fly likes Two different datasource resource reference in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Two different datasource resource reference in web.xml" Watch "Two different datasource resource reference in web.xml" New topic
Author

Two different datasource resource reference in web.xml

ak swie
Greenhorn

Joined: Dec 08, 2009
Posts: 9
Hi
I am using WAS7 to deploy application over Eclipse3. I want to maintain two different datasources.
I am curious to know in case we can add two different datasource resource reference in web.xml.
Can anybody help me with this.
Thanks!!
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
You can have any number of DataSource references in WEB.XML OR other deployment descriptors.

You can also chose to use direct JNDI using corba/iioc method and not declare any data source in any of the descriptors (include web.xml)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Two different datasource resource reference in web.xml
 
Similar Threads
NameNotFoundException
WAS7: Resource reference for Datasource
Problem with JBoss
regarding JNDI
Reuse of Data Source