RE: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread Jeremy Boynes
OK. 3.2 is fine for me. Thanks Jeremy > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of David > Jencks > Sent: Thursday, January 30, 2003 4:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-dev] Accessing Container from an

Re: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread David Jencks
Any ideas? Thanks Jeremy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Boynes Sent: Thursday, January 30, 2003 9:43 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Accessing Container from an EJB? Thanks - I copied the code to get the registry int

RE: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread Jeremy Boynes
gt; > Jencks > > Sent: Thursday, January 30, 2003 9:13 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-dev] Accessing Container from an EJB? > > > > > > Well, one solution in jboss 4 that doesnt add any more code is: > > > > I figure you know th

RE: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread Jeremy Boynes
; Subject: Re: [JBoss-dev] Accessing Container from an EJB? > > > Well, one solution in jboss 4 that doesnt add any more code is: > > I figure you know the object name for the ejbModule mbean you are > writing the test. > > I just added a jmx method in ServiceMBeanSupport

Re: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread David Jencks
Well, one solution in jboss 4 that doesnt add any more code is: I figure you know the object name for the ejbModule mbean you are writing the test. I just added a jmx method in ServiceMBeanSupport to return the actual object behind an mbean. You can use this (or pre-jboss 4 similar code)

Re: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread Dain Sundstrom
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 v

RE: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread Jeremy Boynes
David Jencks wrote > > I'm pretty confused about what exactly you are trying to do, since > there is already an instance variable ejbModule and and accessors > get/setEjbModule in the Container class. > I am trying to unit test changes to JDBCEJBQLCompiler by comparing the SQL generated to known v

Re: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread Dain Sundstrom
Yes but it is not exposed on the MBean interface, so how do you get a reference to the module unless you already have a real reference to the container? -dain On Thursday, January 30, 2003, at 06:50 AM, David Jencks wrote: I'm pretty confused about what exactly you are trying to do, since the

Re: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread David Jencks
I'm pretty confused about what exactly you are trying to do, since there is already an instance variable ejbModule and and accessors get/setEjbModule in the Container class. ?? david jencks On Thursday, January 30, 2003, at 01:36 AM, Jeremy Boynes wrote: I am trying to write an EJBTestCase th

Re: [JBoss-dev] Accessing Container from an EJB?

2003-01-30 Thread julien viet
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

[JBoss-dev] Accessing Container from an EJB?

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