You're right about the typo - should have been
"java:comp/env/Hypersonic" for an EJB looking up the pool. However, your
client cannot access the pool directly, since your client would have to be
running in the same VM.  Database connections are not serializable or
remote or anything, so database connection pools are not accessible
remotely - and clients generally run remotely.  You'll need to write a
bean to do what you want and then have your client contact the bean.

Aaron


On Mon, 18 Sep 2000, Sean O'Connor wrote:
> Thanks for the info.  I'm not actually calling a bean, just want a
> DataSource.  So, there is no ejb-jar.xml to change.  This is a client
> app.
> 
> The following lookups generate a naming exception:
> 
> java:/comp/env/Hypersonic (I think your leading / was a typo)
> java:comp/env/Hypersonic
> java:comp/env/jdbc/Hypersonic
> 
> java:Hypersonic doesn't generate a naming exception, but the class cast
> exception below.
> 
> Thanks again.
> Sean




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

Reply via email to