[jboss-user] [JBoss Seam] - Re: Using @In to inject a reference to a bean in a different

EoinByrne do-not-reply at jboss.com
Wed Jan 2 05:09:10 EST 2008


Sorry for the late responce - just got back from the holiday break. 

I have both beans annotated with @Name however the pojo is not.  Looking over the initial post it looks a little cryptic so I'll try to clarify it a little

In Jar A:
Pojo containing common code
Bean 1 - Stateless Bean using the @Name annotation

In Jar B:
Bean 2 extends Pojo - its stateful and named, it contains an instance var (Bean 1) which is injected using the @In annotation but the refrence is null at runtime.

Initially everything was in one jar and Bean 2 was stand alone and it worked fine but now I'd like to seperate out some of the common stuff so I can reuse it in another project.

>From what I can see in the documentation what I am trying to do should work fine, both beans should be in the same application scope because they are both living in the same ear file.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116332#4116332

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116332



More information about the jboss-user mailing list