Place this in your session bean at the class level:

@ejb.util
      generate="physical"

That will make the util object use the JNDI name instead.

/rick

Ian Duggan wrote:

>I have a session bean defined with:
>
> * @ejb.bean
> *    type="Stateless"
> *    name="WorkflowMgr"
> *    jndi-name="DTWorkflow/WorkflowMgr"
> *    description="Workflow Manager Session Bean"
>
>This results in a home interface with:
>
>   public static final String COMP_NAME="java:comp/env/ejb/WorkflowMgr";
>   public static final String JNDI_NAME="DTWorkflow/WorkflowMgr";
>
>and a util class which calls:
>
>java.lang.Object objRef = 
>initialContext.lookup(com.demandtec.workflow.workflowmgr.interfaces.WorkflowMgrHome.COMP_NAME);
>
>
>I'm using JBoss 2.4.4, and this is failing. It works if the util class calls 
>using JNDI_NAME instead. Is this a bug in XDoclet, or will this not work with 
>JBoss 2.4.4?
>
>-- Ian
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Ian Duggan     [EMAIL PROTECTED]        http://www.demandtec.com
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>DemandTec, Inc.
>1 Circle Star Way Suite 200 
>San Carlos, CA 94070 
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Xdoclet-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>  
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to