Results 1 to 3 of 3

Thread: App. with EJBs - package and class structure

  1. #1
    Join Date
    Aug 2004
    Location
    Vrhnika, Slovenia
    Posts
    133

    Default App. with EJBs - package and class structure

    Is there any best advice how to structure packages and classes in J2EE application using EJBs, so that deployment (packing just necessary classes) is as easy as possible?

    Thanx, Ales :shock:

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    This is a pretty broad question. Can you elaborate at all? Are you separating EJB Container/Web Container/Client classes?

    Re: packing just necessary classes
    If you know which classes MUST be included you can download BCEL and use Ant's classfileset and root to include classes dependent on the ones you specify.

    <classfileset id="reqdClasses" dir="${classes.dir}">
    <root classname="org.apache.tools.ant.Project" />
    </classfileset>
    <jar destfile="test.jar">
    <fileset refid="reqdClasses"/>
    </jar>

  3. #3
    Join Date
    Aug 2004
    Location
    Vrhnika, Slovenia
    Posts
    133

    Default server / web client (container)

    I was just reading R. Johnson's book 'J2EE D&D' and looking at Ticket app.

    He somehow groups similar bussines and domain model objects. He separates type (EJB or no) by parent package (both client/server) from which two - ejb and support are made. But he then 'manualy' copies client dependant ejb classes. Ok, this is a small app., with just one ejb class, so it is easy to maintain. What about big stuff?

    Ok, this is usage (bussines) oriented. What about container dependent - having server, client, common packages? Or is previous approach better and this one hard to implement?

    Ok, I made some small EJB projects, where I really didn't care how the structure looked. But before moving to some bigger server/web client project, I would just like to know what the appropriate practice is. Just to be able to deploy as easy as possible (not just me, but anybody who contributes to the project - so that is point straight what to include in different container archive).

    Or is really from project to project?

    Thanx, Ales

Similar Threads

  1. Cannot compile JasperReports
    By wfcheang in forum Web
    Replies: 6
    Last Post: Dec 5th, 2005, 01:46 AM
  2. Replies: 3
    Last Post: Sep 4th, 2005, 11:11 PM
  3. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  4. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  5. compilation errors for petclinic sample
    By Panini in forum Swing
    Replies: 2
    Last Post: Dec 9th, 2004, 05:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •