Hi. Please keep this stuff on the list - it might be useful for others.

Yes, you can only use JCA connection factories (and minerva data
sources) from a client that runs in the same JVM as JBoss. This means
EJB (or servlet if you're running an embedded servlet engine).

If you're using the Black Box example RA, then any EJB that uses JDBC
should work with it. The tests in jbosstest are what I've been testing
it with.

If you want to test your own RA, then you will definitely need to build
an EJB to test it.

Toby.

Amal Sirvisetti wrote:
> 
> Hi Toby,
> 
> Thanks for the reply. I am actually trying to call the BlackboxDS you
> provided for the Resource Adapter! Do I have to build client EJBs to test the
> adapter then? Do you have any thoughts on this?
> 
> Toby Allsopp wrote:
> 
> > Amal Sirvisetti wrote:
> > >
> > > Hi,
> > >
> > > When I try to lookup the DefaultDS from a test client, I am getting the
> > > following exception. I am using Pre-2.1 release of jBoss. What could I
> > > be doing wrong?
> > >
> > > Thanks for your help.
> > >
> > > Got context
> > > javax.naming.NameNotFoundException: DefaultDS not bound
> >
> > You can't look up data sources from outside the JBoss JVM. The data
> > source is actually bound to "java:/DefaultDS" and the "java:" namespace
> > is only visible in the JBoss JVM.
> >
> > If you want to use a data source (or some other kind of connection
> > factory) then you'll need to do it from an EJB (or possibly a servlet).
> >
> > Toby.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to