[jboss-user] [Beginner's Corner] - JBoss-5.1.0.GA: Unable to inject jndi dependency
Pasquale Imbemba
do-not-reply at jboss.com
Mon Apr 18 10:18:29 EDT 2011
Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the discussion
"JBoss-5.1.0.GA: Unable to inject jndi dependency"
To view the discussion, visit: http://community.jboss.org/message/600696#600696
--------------------------------------------------------------
Hi,
I've a SLSB on which I try to inject a reference to the default topic (test/testTopic) destination.
public class AnaUniEJB implements AURemoteBusiness, AnaUniWebService {
@PersistenceContext(
unitName = "AnaUniDb")
private EntityManager manager;
@EJB
private GVCCLocalBusiness gvcc;
@Resource(
mappedName = "ConnectionFactory")
ConnectionFactory factory;
@Resource(
mappedName = "topic/testTopic")
Topic topic;
When I run the client, I get the following error:
> javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: env/it.bz.prov.anauni.blogic.AnaUniEJB/topic into property it.bz.prov.anauni.blogic.AnaUniEJB.topic: testTopic not bound
>
I'm studying with a book that is based on EJB3.0 and uses JBoss-AS 4.0.4GA.
Has something changed in the AS versions concering default message destintations or what am I doing wrong?
Thanks for caring!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/600696#600696]
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/20110418/6920d61e/attachment-0001.html
More information about the jboss-user
mailing list