Re: Could not auto-map to resource problem when using EJB annotations only

2009-05-06 Thread fmeili
Rex Wang-2 wrote: yes, Frank attachment is the improved demo based on your requirement and David's suggestion. I have tested it. HTH Rex Hi Rex, thanks a lot for your work and help. This works great! So I'm simply able to define it in the geronimo-application.xml. Now I'm

Re: Could not auto-map to resource problem when using EJB annotations only

2009-05-05 Thread fmeili
Rex Wang-2 wrote: Hi Frank, sorry for the confusing, it can not be added to the application.xml, but should be added to the web.xml / ejb-jar.xml... here is an example in attachment. HTH rex. Hi Rex, thanks for your answer. But this, I think, is the problem. My EAR consits out

Re: Could not auto-map to resource problem when using EJB annotations only

2009-05-05 Thread David Jencks
On May 5, 2009, at 12:42 AM, fmeili wrote: Rex Wang-2 wrote: Hi Frank, sorry for the confusing, it can not be added to the application.xml, but should be added to the web.xml / ejb-jar.xml... here is an example in attachment. HTH rex. Hi Rex, thanks for your answer. But this, I

Re: Could not auto-map to resource problem when using EJB annotations only

2009-05-04 Thread Rex Wang
hi frank This should be add to the application.xml(not geronimo-application.xml), coz it is NOT Geronimo specific. It is the JEE specific. resource-ref res-ref-namejdbc/__mes/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth

Re: Could not auto-map to resource problem when using EJB annotations only

2009-05-04 Thread fmeili
Rex Wang-2 wrote: hi frank This should be add to the application.xml(not geronimo-application.xml), coz it is NOT Geronimo specific. It is the JEE specific. resource-ref res-ref-namejdbc/__mes/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth

Re: Could not auto-map to resource problem when using EJB annotations only

2009-05-04 Thread Rex Wang
Hi Frank, sorry for the confusing, it can not be added to the application.xml, but should be added to the web.xml / ejb-jar.xml... here is an example in attachment. HTH rex. 2009/5/4 fmeili frank.meilin...@gmx.de Rex Wang-2 wrote: hi frank This should be add to the

Re: Could not auto-map to resource problem when using EJB annotations only

2009-04-30 Thread David Jencks
On Apr 30, 2009, at 6:51 AM, fmeili wrote: Hi all, I try to deploy an EAR with some (skinny) WAR's and some EJB's. All EJB's use the @Resource tag for Database access. I always get a deployment error, that the resource could not auto-map. Instead the error message tell me to use a