[jboss-user] [Beginner's Corner] - Re: Deployments Missing Dependencies
Wolfgang Knauf
do-not-reply at jboss.com
Wed May 25 08:09:55 EDT 2011
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion
"Re: Deployments Missing Dependencies"
To view the discussion, visit: http://community.jboss.org/message/606927#606927
--------------------------------------------------------------
Hi,
which JBoss version?
Is your database bound to the global name "DefaultDS", or does it have a different name?
If the name is different, I think your "@Resource" annotation should be:
@Resource(mappedName="java:MyDS")
private DataSource ds;
As far as I know, the "name" attribut declares a JNDI name in the ENC, which could be used if you have to perform a lookup later - but in most cases you don't need it.
Best regards
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606927#606927]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110525/f008daa6/attachment.html
More information about the jboss-user
mailing list