> 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]