aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes ejb reference in deployment descriptor (without annotations ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb reference in deployment descriptor (without annotations )" Watch "ejb reference in deployment descriptor (without annotations )" New topic
Author

ejb reference in deployment descriptor (without annotations )

marcin pilarczyk
Greenhorn

Joined: Jan 06, 2011
Posts: 2
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

Joined: Jan 06, 2011
Posts: 2
the solution is:

Piotr Nowicki
Ranch Hand

Joined: Jul 13, 2010
Posts: 610



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!


OCP Java SE 6 Programmer, OCM Java SE 6 Developer, OCE Java EE 6 JSPSD, OCE Java EE 6 EJBD, OCE Java EE 6 JPAD, Spring 3.0 Core Professional.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejb reference in deployment descriptor (without annotations )
 
Similar Threads
EJB deployment and calling local interface
ejb-local-ref and ejb-ref
How to switch between local and remote interfaces by using the deployment descriptors
OpenEJB, DI Overriding annotation with deployment descriptor
EJB 3 Local Lookup not working with Weblogic 10.3 and JDK 1.6_05