[jboss-user] [Beginner's Corner] - Re: Dependecy Injection through Spring in EJB 3.0

Amit Ajmani do-not-reply at jboss.com
Wed Oct 12 14:54:34 EDT 2011


Amit Ajmani [http://community.jboss.org/people/amitajmani1] created the discussion

"Re: Dependecy Injection through Spring in EJB 3.0"

To view the discussion, visit: http://community.jboss.org/message/631428#631428

--------------------------------------------------------------
Just want to correct the type above: 

My interface hierarchy are 

public interface InstrumentService{
...
}

@Remote
public interface InstrumentServiceRemote extends InstrumentService{
....
}

//annotated with stateless and transaction and SpringBeanAutoWiring (as above)
public class InstrumentServiceEJB implements InstrumentServiceRemote{

@Autowired
private InstrumentService instrService;

.....
}

public class InstrumentServiceCore implements InstrumentService{
.....
} 

the instrService in EJB need to be initialized with InstrumentServiceCore .....



--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/631428#631428]

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/20111012/9adb380a/attachment.html 


More information about the jboss-user mailing list