Re: [JBoss-user] Multiple datasources and a single bean...

2002-06-11 Thread David Brady
Thanks for the info - I'll give that a try. David >From: Stephen Coy <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: [JBoss-user] Multiple datasources and a single bean... >Date: Fri, 7 Jun 2002 12:07:31 +1000 > >You need

Re: [JBoss-user] Multiple datasources and a single bean...

2002-06-06 Thread David Jencks
use resource-ref to map a java:/comp/env/MyDS to the appropriate actual datasource for each bean. david jencks On 2002.06.06 18:50:28 -0400 David Brady wrote: > > I have a live database which is kept up-to-date with system usage > information from the last hour. Data older than an hour is mov

Re: [JBoss-user] Multiple datasources and a single bean...

2002-06-06 Thread Stephen Coy
You need to do something like: Add the following to your ejb-jar.xml for both beans: ... Bean jdbc/UsageDS javax.sql.DataSource Container and this to jboss.xml, which maps the hardcoded logical name to a physical

[JBoss-user] Multiple datasources and a single bean...

2002-06-06 Thread David Brady
I have a live database which is kept up-to-date with system usage information from the last hour. Data older than an hour is moved to a warehouse database. A stateless bean (call it UsageBean) already exists which reads data from the live database. I'd like to be able to use the same bean (

[JBoss-user] Multiple datasources and a single bean...

2002-06-06 Thread David Brady
I have a live database which is kept up-to-date with system usage information from the last hour. Data older than an hour is moved to a warehouse database. A stateless bean (call it UsageBean) already exists which reads data from the live database. I'd like to be able to use the same bean (