Please keep it in public forums.

I'm forwarding you to the jboss-user mailing list. You will
need to subscribe to that list if you want to see other people's
answers.

Yes, if you want to use java:comp/env (ENC) you need to set it up
using ejb-refs or ejb-local-refs.
In XDoclet the tags go on the bean's class that wants to access
the ENC (enterprise naming context).

Regards,
Adrian

On Thu, 2004-01-15 at 20:17, Vikram R Mahuvakar wrote:
> 
> 
> Adrian,
> 
> We need your help. We are using JBoss3.2.2 server and it is working great.
> We haven't been able to access enetity and session bean using COMP_NAME
> generated in the Util file which is created using Xdoclet.
> 
> Here is the example of the Xdcolet tags in the Session bean file. We had to
> put @ejb.util  generate="physical" to access Session bean's home interface
> from Naming service. If I change the @ejb.util  generate="logical". The
> Client application cannot find the
> COMP_NAME="java:comp/env/ejb/StudyManager" as defined in the
> StudyManagerHome file.
> 
> Can you help us to set correct XDoclet tag so we can do this.
> 
> We have same problem with CMP entity bean generated by Xdoclet.
> 
> DO we need an @ejb.ejb-ref tag in the file? If we need it where do we put
> it ?
> 
> Can you help us?
> 
> Thanks,
> 
> Vikram Mahuvakar
> [EMAIL PROTECTED]
> 
> /***
>  * Use this as a template for -- A remote session bean that acts as a
> facade to the ejb object layer.
>  *  (1) Copy this file and change the file name from Protocol to "Study" or
> whatever you want to name this bean.
>  *  (2) Replace the text "StudyManager" in this file with the new name of
> the class -- StudyManager, PoolManager etc.
>  *  (3) add xdoclet @ejb.ejb-ref tags (see example below) for the entity
> beans that will be referenced from this class
>  *
>  * @ejb.bean
>  *      name="StudyManager"
>  *      type="Stateless"
>  *      view-type="remote"
>  *      local-jndi-name="StudyManager"
>  *
>  *  @ejb.util
>  *     generate="physical"
>  *
>  *  @ejb.transaction
>  *     type="Required"
>  *
>  * --------------------- REPLACE THESE TAGS WITH THE ENITY BEANS THAT WILL
> BE REFERECED BY THIS SESSION BEAN ---------------
>  * @ejb.ejb-ref
>  *      ejb-name="GenericProtocol"
>  *      view-type="local"
>  *      ref-name="ejb/GenericProtocolLocal"
>  *
>  * @ejb.ejb-ref
>  *      ejb-name="ArraysConstants"
>  *      view-type="local"
>  *      ref-name="ejb/ArraysConstantsLocal"
>  *
>  * @ejb.ejb-ref
>  *      ejb-name="SystemUser"
>  *      view-type="local"
>  *      ref-name="ejb/SystemUserLocal"
>  *
>  ****/
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to