Im using seam with my EAR isalated. And the interceptor of my EJBs no Inject my components. Anyone have this problem?
I was debuging SeamInterceptor and:
protected Object invoke(InvocationContext invocation, EventType invocationType) throws Exception
{
//The isSeamComponent is false and the interceptor dont Inject anything.
if ( !isSeamComponent || !Lifecycle.isApplicationInitialized())
{
//not a Seam component
return invocation.proceed();
}
else if ( Contexts.isEventContextActive() || Contexts.isApplicationContextActive() ) //not sure about the second bit (only needed at init time!)
{
// a Seam component, and Seam contexts exist
return createInvocationContext(invocation, invocationType).proceed();
}
else
{
//if invoked outside of a set of Seam contexts,
//set up temporary Seam EVENT and APPLICATION
//contexts just for this call
Lifecycle.beginCall();
try
{
return createInvocationContext(invocation, invocationType).proceed();
}
finally
{
Lifecycle.endCall();
}
}
}
tks.
Done!!
I was trying to isolate without the java2ParentDelegation=true on jboss-app.xml and how my ejb3 were the seaminterceptor, the j2ee cointainer didnt call the method annotated with @PostConstruct.