You can get the effect that you are looking for by adding the tag:
@ejb.util generate="physical"
to your EJB class.
However, you probably don't really want to do that.
Instead, your client beans code should have @ejb.ref tags which generate corresponding ejb-ref tags in your ejb-jar.xml file.
This has the effect of decoupling your client code from the deployed name of the bean that you are looking up.
In other words, this allows you to change the JNDI name of the looked up bean at deployment time without having to recompile the client code.
Normally, the only time that you need to look up the physical name is when the client code is not in an EJB or web container, such as a command line client.
Steve Coy
On Monday, March 31, 2003, at 06:10 AM, Craig Hamilton wrote:
I am trying to use the Util object for a bean, specifically calling the getLocalHome method.
I keep getting the object not bound (or something to that effect) error.
I looked at the getLocalHome code and saw that it was doing the lookup using
the COMP_NAME constant found in the LocalHome interface. I changed this to
use the JNDI_NAME constant and then it works.
Would this be a bug, or am I filling out my Bean xdoclet tags incorrectly.
I have attached the class descriptor for the Bean in question.
I am using xdoc 1.2b2
Craig
/** * This is the Facility entity bean. It is an example of how to use the * EJBDoclet tags. * * @ejb.bean * name="DataSetBean" * type="CMP" * cmp-version="2.x" * jndi-name="ejb/DataSetBean" * local-jndi-name="ejb/DataSetBeanLocal" * * @ejb.interface * remote-class="test.DataSetRemote" * local-class="test.DataSetLocal" * @ejb.pk * class="test.DataSetPK" * generate="true" * * @ejb.persistence * table-name="DATASETS" * @jboss.create-table "false" * @jboss.remove-table "false" * * * @ejb.transaction * type="Required" * * @ejb.finder * signature="java.util.Collection findAll()" * unchecked="true"
* @ejb.value-object * name="DataSet" * match="*" * * @version 1.5 */ public abstract class DataSetBean implements EntityBean
------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
