I ran into something using Xdoclet generated Util classes that I confuses me.  I created an entity EJB and had the <utilobject/> task in Ant, but no @ejb.util tag.  I got a Util class, but my name lookups always failed with JBoss telling me that the ejb I was looking for was not bound.

 

After digging, I realized that the generated code in the Util class was looking up the name by fully qualified component name and not the JNDI name.  When I added the @ejb.util generate="physical" tag, everything started working as the Util class now looked up my EJBs by the JNDI name.

 

So, I'm perplexed as to why the default case doesn't work, why I had to change the @ejb.util generate tag from the default "logical" to "physical", what's the difference (why use one over the other), and was this the right thing to do (sometimes just because something works, doesn't mean it's the right thing to do)...

 

Any insight that could be provided would be very helpful.

 

Thanks,

Erik

 

Reply via email to