  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - Re: in an MDB how to get an application scoped compo | - Re: in an MDB how to get an application scoped compo 2007-06-13 - By jazir1979
Back
If you annotate your MDB as a Seam component, using @(protected), 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 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |