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

2008-01-02 Thread EoinByrne
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=bbop=viewtopicp=4116332#4116332

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116332
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-12-21 Thread EoinByrne
Hi guys

I have an ear file containing 2 jars as ejb modules.  In jar A I have a bean 
which extends a pojo in Jar B and uses the @In tag to inject a reference to an 
ejb in jar b.  It seems that the reference is comming out as null.

For the In tag itself I am specifiing create=true and required=true.

Is there some way to inject a reference to a bean in a different jar while 
still using annotations?

Thanks
Eoin


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4114958#4114958

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114958
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user