aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Packing Jars - Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Packing Jars - Please help" Watch "Packing Jars - Please help" New topic
Author

Packing Jars - Please help

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Hello Friends

I have 2 ejbs. 1 MDB and 1 Session bean, java classes and common classes

This is the dependency structure
MDB calls set of Java classes (JAVA1) and then JAVA1 calls Sessions beans which use other set of Java classes (JAVA2) and we have common java classes used by all (COMMON JAVA)

I am planning to have 2 ejb jars one for each EJB and correspondingly 2 EJB projects in IDE. Also 3 separate java projects (one for jAVA1 and one for JAVA2 and one for common classes)

The reason for splitting as different projects is for convienience of export of jar files.
MDB separate jar - ejbMDB.jar
session bean - separate - ejbSession.jar
JAVA1 - separate jar
JAVA2 - separate jar
Common Classes - separate jar

Is this right way of set up for projects in IDE and jars?
Or can you recommend any other way?
How can i make ejbMDB.jar refer to JAVA1 jar?

Please help thanks...


SCJP, SCWCD, SCBCD, SCEA 5
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

Mohamed,
Yes, this is a good way to package. If your Java 1 and Java 2 classes do not need to be reused, you can leave them as part of the EJB projects.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Packing Jars - Please help