I have a questions on EJB's How can I define parameters in deployment descriptor so that these parameters are available to all the EJB's in the deployment. I am looking to define things like dataSource name in the deployment descriptor so all the ejb's in the deployment can use the same datasource. Can anyone pls. provide me with a copy of deployment descriptor for this. How to retrieve these values in ejb's? Can anyone provide sample code for this also? Many Thanks, Tanner
Kyle Brown
author
Ranch Hand
Joined: Aug 10, 2001
Posts: 3878
posted
0
Hi. These are done in Resource references. A very good description of this (And lots of sample code and sample deployment descriptors) can be found in Richard Monson-Haefel's "Enterprise JavaBeans" book. [This message has been edited by Kyle Brown (edited November 01, 2001).] [This message has been edited by Kyle Brown (edited November 01, 2001).]