This content has been marked as final.
Show 3 replies
-
1. Re: JBoss-2.4.5RC1 + Multiple Data Sources
earlgrey Apr 29, 2002 11:12 AM (in response to jkramer)> same name for an entity or session bean.) I would
> like to know if it is possible to create another JDBC
> connection in the jboss.jcml file and name it
> something other than DefaultDS, and have that
> referenced elsewhere as being specific to a
> particular application?
yes, this is possible: you create multiple datasource configurations in jboss.jcml, thus the ejb can look them up via their specific names.
lars -
2. Re: JBoss-2.4.5RC1 + Multiple Data Sources
cisbrh Apr 29, 2002 12:04 PM (in response to jkramer)Just create as many datasource as you need. Then in your jaws.xml you can specify for each EJb what datasource to use.
Benjamin -
3. Re: JBoss-2.4.5RC1 + Multiple Data Sources
jkramer Apr 29, 2002 12:18 PM (in response to jkramer)Do you have a code snippet for an example?