Did you try local/foo?

-----Original Message-----
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JNDI Context question


On Monday, October 6, 2003, at 01:05  PM, Adrian Brock wrote:

> On Mon, 2003-10-06 at 20:40, Matthew Hixson wrote:
>> I'm doing this in my session locator.  The only place that the
>> java:comp/env context is used is right here in this static block.
>>
>>    static{
>>      try{
>>        _context = (Context) new 
>> InitialContext().lookup("java:comp/env");
>>        _bean1Home    = (Bean1LocalHome)    _context.lookup("Bean1");
>>        _bean2Home    = (Bean2LocalHome)    _context.lookup("Bean2");
>>        _bean3Home    = (Bean3LocalHome)    _context.lookup("Bean3");
>>      } catch(NamingException ned) {
>>        _systemLogger.error("SessionLocator...Naming exception: " +
>> ned.getMessage());
>>        _systemLogger.error("Couldn't initialize all of the session
>> beans.");
>>      }
>>    }
>>
>> So there is no way that I can make a context available to
>> SessionLocator that has all of the beans available in the context
>> without specifying <ejb-local-refs> for every one of them?  I don't
>> know what Resin would do in the case you mentioned below where two
>> beans want to use the same JNDI path, but Resin was allowing global
>> access to all of the session beans without <ejb-local-ref> tags.
>
> That doesn't sound very compliant.

There were a lot of things about Resin that weren't spec compliant.

> You can do the same in JBoss if you use the global jndi name.

How would I access that?  It looks like it should be "local:/Foo" for 
the FooBean, but that doesn't look like its working.
   Thanks,
     -M@



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to