facebook

[Closed] Using XDoclet weblogic.EJBGen

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #258457 Reply

    rajapkp
    Member

    We use weblogic.EJBgen in our EJB code to generate EJB artifacts.
    We donot use xdoclet.

    We recently purchased MyEclipseIDE and trying to convert our code to compile our projects.

    Our code is failing because it doesnot understand the EJBGen tags. Also EJBGen tags are usually not in comments like xdoclet

    
    /**
     * XDoclet-based session bean.  The class must be declared
     * public according to the EJB specification.
     *
     * To generate the EJB related files to this EJB:
     *        - Add Standard EJB module to XDoclet project properties
     *        - Customize XDoclet configuration for your appserver
     *        - Run XDoclet
     *
     * Below are the xdoclet-related tags needed for this EJB.
     * 
     * @ejb.bean name="CRMLdap"
     *           display-name="Name for CRMLdap"
     *           description="Description for CRMLdap"
     *           jndi-name="ejb/CRMLdap"
     *           type="Stateful"
     *           view-type="remote"
     */
    

    EJBGen tags will be without comments like

    
    @JarSettings(ejbClientJar = "crmldap-client.jar")
    @JndiName(remote = "CRMLdap")
    @Session( transTimeoutSeconds = "1800",
             type = Session.SessionType.STATEFUL,
             defaultTransaction = Constants.TransactionAttribute.NEVER,
             ejbName = "CRMLdap",
             enableCallByReference = Constants.Bool.TRUE)
    

    Please let us know how we can make our code work in MyEclipse IDE. This is very critical for us.

    Thanks for your attention
    Kiran Rajapur
    SSgA

    #258563 Reply

    Riyad Kalla
    Member

    Kiran,
    I’m assuming EJBGen uses annotations? In that case make sure your compiler compliance level is atleast set to JDK 5 or later for those to compile correctly.

    #259002 Reply

    mdiarra
    Member

    Hi guy,

    I just discovered your post and maybe have a solution for you. Try this and see if it works (it should):

    /** @author mdiarra
    *
    * @ejbgen:session
    * ejb-name = CRMLdap
    * type = stateless
    * trans-timeout-seconds = 1800
    * default-transaction = Never
    * enable-call-by-reference = True
    *
    * @ejbgen:jndi-name remote = CRMLdap
    *
    */

    I use that with maven to build my ejbs targeted to be deployed on a weblogic server. Hope it will help you.

    best regards,

    MD

    #259599 Reply

    Riyad Kalla
    Member

    MD,
    We appreciate you participating and helping other users.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Using XDoclet weblogic.EJBGen

You must be logged in to post in the forum log in