facebook

EJB from Jbuilder to Eclipse using myeclipse – naming conven

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #218569 Reply

    Nandu49307
    Member

    Hello,

    I have downloaded a trial copy of myeclipse and I am in the process of evaluating it. We have a current j2ee project built in Jbuilder that makes use of stateless session and entity EJB’s. I am moving to Eclipse by recreating but using the same code. I have found some problems with the naming conventions used for Entity beans. Jbuilder names the Entity interfaces just the oppsite way of session interfaces. That is the remote interface of a Entity bean named “Host” is called “HostRemote” and remote home is named “HostRemoteHome”. But myeclipse naming is different where remote is “Host” and remote home is “HostHome”. Since I can’t make change to the code I was wondering if there is a workaround for this naming convention.

    Thank you

    #218679 Reply

    Greg
    Member

    You can specify a pattern for both the remote interface and the home interface. In the pattern attribute the keyword {0} will be expanded out the same as the @ejb.bean name=”” property. So you can make the following changes to your EJB configuration.

    1) Open the project properties and select MyEclipse-XDoclet page.
    2) Select your EJB configuration
    3) Select the remoteinterface subtask and set the pattern attribute to: {0}Remote
    4) Select the homeinterface subtask and set the pattern attribute to: {0}RemoteHome
    5) Rerun XDoclet

    This should generate the files name : HostRemote.java and HostRemoteHome.java.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: EJB from Jbuilder to Eclipse using myeclipse – naming conven

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