Re: [JBoss-user] Naming datasource

2001-07-02 Thread danch
Andy Bryant wrote: > > If you are using JBoss2.2.2 or later, it seems they have added a little > shortcut to doing this - you can add the jndi-name directly into the > resource-ref tag and not worry about the resource-managers tag at all... > > > > MyDB > jav

Re: [JBoss-user] Naming datasource

2001-07-02 Thread Andy Bryant
One slight addition to Danch's suggestion... > This should be: > > > MyDB > MyOracleResource > > > > > > > > > And here you need something like this > > > MyOracleResource > java:/OracleDB > > > > If yo

Re: [JBoss-user] Naming datasource

2001-07-02 Thread danch
There's one step you're missing - see below. Also take a look in jboss.dtd - it's somewhat documented there. -danch Gregor Rayman wrote: > Hi all, > > I try to refactor a two tier application and as the first step > I want to move the database access to stateless session beans. > > So I've

[JBoss-user] Naming datasource

2001-07-02 Thread Gregor Rayman
Hi all, I try to refactor a two tier application and as the first step I want to move the database access to stateless session beans. So I've created a datasource called "java:/OracleDB" in JBoss and I want to access it through the name "java:comp/env/MyDB" from the bean's methods. Unfortuna