Assuming you've setup a pool called PostgresqlTest in your jboss.jcml file, you need something like this in your jboss.xml: <enterprise-beans> <session> <ejb-name>IDGenerator</ejb-name> <resource-ref> <res-ref-name>jdbc/PostgresqlTest</res-ref-name> <resource-name>PostgresqlTest</resource-name> </resource-ref> </session> </enterprise-beans> <resource-managers> <resource-manager res-class="javax.sql.DataSource"> <res-name>PostgresqlTest</res-name> <res-jndi-name>java:/PostgresqlTest</res-jndi-name> </resource-manager> </resource-managers> ----- Original Message ----- From: Donald Ball <[EMAIL PROTECTED]> Date: Monday, March 26, 2001 3:56 pm Subject: [JBoss-user] simple question on configuring access to datasource > hiya. i'm writing a session bean which i'd like to have access to > the same > datasource/connection pool that controls my entity beans. i've got > thissection in my ejb-jar.xml file: > > <session> > <description> > Generates IDs for the entity beans > </description> > <ejb-name>IDGenerator</ejb-name> > <home>com.webslingerZ.news.beans.IDGeneratorHome</home> > <remote>com.webslingerZ.news.beans.IDGenerator</remote> > <ejb-class>com.webslingerZ.news.beans.IDGeneratorBean</ejb- > class> <session-type>Stateless</session-type> > <transaction-type>Container</transaction-type> > <resource-ref> > <description>DataSource for the database</description> > <res-ref-name>jdbc/PostgresqlTest</res-ref-name> > <res-type>javax.sql.DataSource</res-type> > <res-auth>Container</res-auth> > </resource-ref> > </session> > > but i can't figure out to map the JNDI resource named > java:comp/env/jdbc/PostgresqlTest to the datasource named > 'PostgresqlTest'in my jaws.xml file. it would seem that i need to > create a jboss.xml file > for that purpose, but i can't seem to find any documentation on > how to do > so. any clues? > > - donald > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user