[jboss-user] [Snowdrop] - Re: Accessing spring beans that are deployed in a war.

Joshua Wilson do-not-reply at jboss.com
Fri Jul 26 10:15:57 EDT 2013

Joshua Wilson [https://community.jboss.org/people/jowilson] created the discussion

"Re: Accessing spring beans that are deployed in a war."

To view the discussion, visit: https://community.jboss.org/message/829994#829994

Which way are you trying to go Spring bean into EJB or EJB into Spring?

If are injecting a Spring Bean into an EJB Using Snowdrop then:

public class InjectedEjbImpl implements InjectedEjb
 @Spring(bean = "springBean", jndiName = "MyApp")
 private SpringBean springBean;


OR if you are injecting an EJB Using Annotations then:

public class ConsumerBean {

    ExampleEjb exampleEJB;


Reply to this message by going to Community

Start a new discussion in Snowdrop at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130726/e7d0186f/attachment.html 

More information about the jboss-user mailing list