Hi!
Stuart Barlow wrote:
>
> The problem with TOPLink and maybe jBoss is because when I pass the
> string name of the datasource...
> java:comp/env/stuDB
>
> onto TOPLink then they construct a CompositeName from the string.
Why a CompositeName!?!?
> And when they use the InitialContext.lookup(Name) method
> they get the InvalidNameException: Not a compound name ERROR.
>
> When I do the following I get the same error...
>
> javax.naming.CompositeName dsName = new
>javax.naming.CompositeName("java:comp/env/stuDB");
> DataSource ds2 = (DataSource)context.lookup(dsName);
>
> Error report from jBoss...
> [Test] Error loading persistence service. javax.naming.InvalidNameException: Not a
>compound name:
> comp/en
> v/stuDB
>
> When looking things up in the InitialContext.lookup(Name) method
> is it okay to pass in a CompositeName object?
Should be, but I don't get it; why a CompositeName and not a
CompoundName??
/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]
- Re: [jBoss-User] xml descriptor and resource bindings Rickard �berg
- AW: [jBoss-User] xml descriptor and resource bind... Jubin Zawar
- Re: AW: [jBoss-User] xml descriptor and resou... Carlos Valiente
- Re: [jBoss-User] xml descriptor and resource bindings Stuart Barlow
- Re: [jBoss-User] xml descriptor and resource bindings Rickard �berg
- Re: [jBoss-User] xml descriptor and resource bindings Stuart Barlow
- Re: [jBoss-User] xml descriptor and resource bindings Rickard �berg
- Re: [jBoss-User] xml descriptor and resource bindings Stuart Barlow
- RE: [jBoss-User] xml descriptor and resource bindings Tim Drury
- Re: [jBoss-User] xml descriptor and resource bindings Stuart Barlow
- Re: [jBoss-User] xml descriptor and resource bindings Rickard �berg
- Re: [jBoss-User] xml descriptor and resource bindings Stuart Barlow
- Re: [jBoss-User] xml descriptor and resource bindings Rickard �berg
- Re: [jBoss-User] xml descriptor and resource bind... Rickard �berg
- Re: [jBoss-User] xml descriptor and resource bindings Stuart Barlow
- Re: [jBoss-User] xml descriptor and resource bindings Rickard �berg
- Re: [jBoss-User] xml descriptor and resource bind... Rickard �berg
- Re: [jBoss-User] xml descriptor and resource bindings Stuart Barlow
- Re: [jBoss-User] xml descriptor and resource bindings Rickard �berg
- RE: [jBoss-User] xml descriptor and resource bindings PETIT Phillippe
