facebook

Generate Home et Remote interface in another project

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #233892 Reply

    dexes
    Member

    Dear all, any help will be welcome,

    I’m working with 4 eclipse projects: A & B & C & D
    In project A (EJB project), I have a bean myBean.
    In project B (EJB project), I have other beans that (once deployed) access myBean in a remote way.
    In project C (java project), I have a client applicaiton (swing) that also access myBean in a remote way.

    The idea is: create a project D (java project) used to containe the interfaces (remote & home) of myBean that are shared by all projects.

    This D project is included in the deployment:
    – in project/bean A (of course)
    – in project B to have the interfaces (remote & home) of myBean for lookup
    – in project C (client) to have the interfaces (remote & home) of myBean for lookup

    Here is my question:
    How can I (using myEclipse XDoclet feature) generate the interfaces of myBean in project D rather than in A? I have tried with “@ejb.interface package” but it seems to work only within the same project.

    Thanks.

    #233925

    Riyad Kalla
    Member

    Dexes,
    This may require some hard coding of paths, but your ejb XDOclet task should have a destDir target, you can set that to the output dir in your Project D that you want the files to end up. Since XDoclet runs in a process outside of eclipse, it shouldn’t be constrainted by the project scope.

    #234003

    dexes
    Member

    I will hardcode the path and use a standard file structure for all developpers.
    Thanks for your reply.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Generate Home et Remote interface in another project

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