[JBoss-user] resource-ref usage

2003-06-04 Thread Fee Ling Chin
Hello, I am puzzled by "when" to use resource-ref in ejb-jar.xml and jboss.xml. I have seen resource-ref for a jdbc datasource declared in sesson beans and entity beans but sometimes it is left out. If a session bean does not look up a jdbc resource at all, why would someone include the resource

Re: [JBoss-user] Resource ref problem

2002-06-15 Thread David Jencks
This stuff is there to set up the java:/comp/env environment, which by definition is not available outside the ejb it is set up for. If you want to use global jndi names and avoid the indirection, look up the datasource under its global name, like java:/DefaultDS. Isn't this what you originally

Re: [JBoss-user] Resource ref problem

2002-06-15 Thread Maarten Dirkse
Thanks for the help. It seems kind of strange though that if, as I understand it, these references are there to provide a layer of indirection and to be able to bind an address called in the bean to another location in the tree, that if the resource is at the actual location looked up in the c

Re: [JBoss-user] Resource ref problem

2002-06-14 Thread David Jencks
I forget this stuff quickly, but i think you want the jndi-name tag to be the actual name the datasource is bound under (specified in postgres-service.xml file). Putting the comp/env entry there makes an infinite loop, since it resolves the ejb-private reference to itself. david jencks On 2002.

[JBoss-user] Resource ref problem

2002-06-14 Thread Maarten Dirkse
Hi, I'm using jboss 3.0.0 and I'm trying to set up a PostgreSQL datasource using resource references. I've configured several mbeans to implement a connection factory which is called PenningDB. I know this factory works, because I had used it before by just looking it up through jndi, and not

Re: [JBoss-user] resource-ref VS resource-env-ref

2002-05-31 Thread Scott M Stark
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 31, 2002 11:10 AM Subject: [JBoss-user] resource-ref VS resource-env-ref > Could someone check my understanding of these two elements? And then fill > in the holes...

[JBoss-user] resource-ref VS resource-env-ref

2002-05-31 Thread MNewcomb
Could someone check my understanding of these two elements? And then fill in the holes... 'resource-ref': according to the spec, "... the Bean Provider must declare all the resource manager connection factory references in the deployment descriptor using the resource-ref elements." So, in here

Re: [JBoss-user] Resource-Ref

2001-05-23 Thread Guy Rouillier
your code generic, and allows resources to be identified at deployment time. - Original Message - From: "Phan Anh Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 23, 2001 3:06 AM Subject: [JBoss-user] Resource-Ref > Hi, > > Ac

[JBoss-user] Resource-Ref

2001-05-22 Thread Phan Anh Tran
Hi, According to 1.1, one can specify datasources in the section of the deployment descriptor of an EJB. Does JBOSS support this? I have been specifying my datasources directly in the jboss.jcml file, but I'd rather not have to mess with anything container specific. Thanks. Anh __