File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb reference in deployment descriptor (without annotations )

 
marcin pilarczyk
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to inject dependency in EJB 3.0 using only deployment descriptor. When I deploy my app to Glassfish (v3.1) I get this exception:



I have no idea what I do wrong. Can anybody help me, please?

The ejb-jar.xml descriptor is:



Class pl.Test:

 
marcin pilarczyk
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the solution is:

 
Piotr Nowicki
Ranch Hand
Posts: 610
IntelliJ IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


So did it work for you without any annotations?
What was the problem?

I guess that you did a lot of changes to this DD, as the <depends-on> is valid only for Singleton EJB's (and you have two SLSB's) and <transaction-type> doesn't have anything to do with the injection here, right?

Cheers!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic