JBoss Community

Re: @Service Annotation Prblm with EJB

created by jaikiran pai in EJB3 Development - View the full discussion

Anish Nath wrote:

 


 

Q: does the DI is supported in the @Service(org.jboss.annotation.ejb.Service) Ejb's

 

 

You are using the wrong annotation for AS6. Starting AS5, those JBoss EJB3 annotations have been moved to org.jboss.ejb3.annotation.* package. So you should be using @org.jboss.ejb3.annotation.Service. You can find these annotations in JBOSS_HOME/client/jboss-ejb3-ext-api.jar file.

Reply to this message by going to Community

Start a new discussion in EJB3 Development at Community