[jboss-user] [JBoss Seam] - Re: in an MDB how to get an application scoped component ?

jazir1979 do-not-reply at jboss.com
Wed Jun 13 00:28:06 EDT 2007


If you annotate your MDB as a Seam component, using @Name, then you can use bijection, I am doing this in my app.  I'm not sure if you will be able to access the Application context.  The documentation just says "they do support bijection and some other Seam functionality".

One issue I had was Seam component MDBs being initialised by JBoss before Seam, and if an  MDB has any messages waiting for it from before the app was last shut down, they will fail because Seam isn't initialised yet.

"codelion" wrote : I think what I see is that in the MDB I don't have access to Seam contexts.
  | 
  | But I'd like to get my server wide settings out of an application scoped Seam component.
  | 
  | I think I've seen that if I'd declare that component an SFSB and try to get it as EJB3 than I won't get the same instance as if I get it as Seam component.  Did I see that correctly?

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

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



More information about the jboss-user mailing list