You cannot access database pools from a remote client - since
database connections are not in general Serializable or Remote, the pool
is not either.  The recommended approach would be to construct a (session,
probably) EJB that can do your database stuff, and have the client call
that.
        However, you can use Minerva outside of jBoss, if you do want to
set up pools elsewhere.  Just don't do it on every client if you have a
lot of clients!

Aaron

On Tue, 3 Oct 2000, Kevin Lewis wrote:
> I have a question on resource managers.
> 
> I have entered a JDBC datasource on my Resource managers tab of the
> deployment tool in hopes that I could access the data source from a
> remote client.
> 
> I have the "Resource name" equal to the second argument in my data
> source declaration in the jboss.conf.
> 
> I have the "JNDI-name of DataSource" set to "store.DataSource" (which I
> want to be the exported JNDI name).
> 
> If I try to lookup "store.DataSource", it fails (the error is below).
> If I try to lookup the Hypersonic source to which it is bound, I get a
> javax.naming.Reference object back.  (The Hypersonic source is running
> in standalone mode, not client-server mode.)
> 
> I'm assuming I should be able to lookup the name "store.DataSource".  Do
> I have this configured incorrectly?
> 
> Thanks for any help on this.
> 
> (Here's the error I get:)
> 
> [Default] javax.naming.NameNotFoundException: store.DataSource not bound
>         at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
> Source)
>         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
> Source)
>         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
>         at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
>         at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:280)
>         at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:265)
>         at javax.naming.InitialContext.lookup(Unknown Source)
> 
> --
> Kevin Lewis
> Middle Reliever
> Axys Solutions
> http://www.AxysSolutions.com/
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 



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

Reply via email to