Hm..

Rickard �berg wrote:
> Stuart Barlow wrote:
> > So from this you can see the reason they get the InvalidName
> > exception is because they construct a CompositeName from
> > "java:comp/env/stuDB".
> >
> > Should they be constructing a CompondName?
> 
> I think so, yes.

Although the *really* portable way would be to use the string as-is.
I.e. ctx.lookup("java:comp/env/stuDB"), and let the namespace decide for
itself how to create Name objects.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to