thanks for replying.
i have sorted the problem. my jboss.xml was incorrectly formatted.
i was missing the line
<resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
----- Original Message -----
From: Rickard Oberg <[EMAIL PROTECTED]>
To: jBoss <[EMAIL PROTECTED]>
Sent: Sunday, November 19, 2000 2:29 PM
Subject: Re: [jBoss-User] NameNotFoundException looking up datasources
> > I have setup a datasource called UnitStockingDB when starting the server
i
> > get
> >
> > [UnitStockingDB] Starting
> > [UnitStockingDB] XA Connection pool UnitStockingDB bound to
> > java:/UnitStockingDB
> > [UnitStockingDB] Started
> >
> > i deploy my bean with the following in jboss.xml
> >
> > <?xml version="1.0" encoding="Cp1252"?>
> >
> > <jboss>
> > <secure>false</secure>
> > <container-configurations />
> > <resource-managers>
> > <resource-manager>
> > <res-name>UnitStockingDB</res-name>
> > <res-jndi-name>jdbc/UnitStockingDB</res-jndi-name>
>
> Should be "java:/UnitStockingDB", as above log message says. Why did you
> choose the name "jdbc/UnitStockingDB"?
>
> > however when i try to get the datasource
> >
> > DataSource ds = (DataSource)
> > ic.lookup("java:comp/env/UnitStockingDB");
> >
> > i get a naming exception comp not bound.
>
> Do you do this in your bean? At what point?
>
> /Rickard
>
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]