facebook

Configuring multiple bean instances from single bean impl

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

    ewestland
    Member

    Hi,

    We have an implementation of a bean (MDB and Session) that needs to be deployed multiple times using different deployment descriptor values. For example, we may have 10 MDBs that use the same code, but each listens to different queues.

    Is there a way to approach this type of problem using MyEclipse/XDoclet?

    BTW – In the interim, we have used XSLT to handle this situation, but would like to move it back upstream.

    Thanks in advance,
    Erik

    #219112 Reply

    Greg
    Member

    Do you have 10 different MDB source files that use common code or is it one source file that gets its xdoclet tags changed and deployment descriptors regenerated for each of the 10 different queues.?

    #219113 Reply

    ewestland
    Member

    Greg,

    We have one source file that uses XDoclet to create/configure a single bean instance, then we customize 9 copies of the deployment descriptors; creating 10 EAR files each with the same class files…

    Cheers,
    Erik

    #219128 Reply

    Greg
    Member

    Erik,

    What about making a base Session bean class that implements your common code. Then create 10 subclasses that extend the common session bean class. Each of these subclasses would have specific xdoclet tags for particular appservers. Then you can run XDoclet once and it should get all of the appservers.

    I haven’t ever personally tried what I’m suggesting but it should be possible.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Configuring multiple bean instances from single bean impl

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