Why not? I see no reason why a client can't look up the EJB container directly using an MBean and get some information. I can see why this would be a bad idea, but we shouldn't restrict the access. Anyway this is for some test code.

-dain

On Thursday, January 30, 2003, at 04:23 AM, julien viet wrote:

I don't think EJB can access its container directly.
However maybe you could add an interceptor in stack that does nothing
but provides you information you need, because they have access
to container. Then your EJB could contact interceptor (with static
call for instance)

Maybe is it possible via JMX also ?

julien

JB> I am trying to write an EJBTestCase that needs access to information held in
JB> the Container (Container.getEjbModule().getModuleData("CATALOG")). I can do
JB> this if I add EjbModule as a attribute of Container but was wondering if I
JB> should do this or if there was another way?

JB> Thanks
JB> Jeremy



JB> -------------------------------------------------------
JB> This SF.NET email is sponsored by:
JB> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
JB> http://www.vasoftware.com
JB> _______________________________________________
JB> Jboss-development mailing list
JB> [EMAIL PROTECTED]
JB> https://lists.sourceforge.net/lists/listinfo/jboss-development



--
Best regards,
julien mailto:[EMAIL PROTECTED]

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to