[jboss-user] [JBoss Seam] - 2 jars , no inject

nicola9000 do-not-reply at jboss.com
Sat Aug 26 14:31:38 EDT 2006


Hiya 

I am trying to make a XXX.jar with all my "data tier" components 
i can't inject components from another YYY.jar

this is a Component in the XXX.jar
@Name("vbasutenticlientiFinder")
@Stateful
@Scope(ScopeType.SESSION)
@Interceptors(SeamInterceptor.class)
public class VBasUtentiClientiFinderBean implements VBasUtentiClientiFinder {
    
    private VBasUtentiClienti example = new VBasUtentiClienti();
....


I have another YYY.jar with action components 

this is a component  in YYY.jar
@Name("impiantiPage")
@Stateful
@Scope(ScopeType.SESSION)
@Interceptors(SeamInterceptor.class)
public class ImpiantiPageBean  
      implements ImpiantiPage
{
	@In (create=true) 
	@Out 
    private VBasUtentiClientiFinder vbasutenticlientiFinder;
......


the Error
Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: impiantiPage.vbasutenticlientiFinder

Questions
1. How can i inject a component from the XXX.jar into the YYY.jar? is there a jndi problem ? component.xml ? other ?

2. My dream is to deploy the XXX.jar alone and reference it from many .ears
 Is it possible, how ? ( question 1 is more important  )

i have the 2 .jars in my .ear
i update application.xml

	
		M2U_InstalledBaseManager-ejb.jar
	
	
		M2U_Data-ejb.jar
	

and so is the same :-(

	
		M2U_InstalledBaseManager-ejb.jar
	
	
		M2U_Data-ejb.jar
	

Ciao Nicola




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

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



More information about the jboss-user mailing list