This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32507
    
214

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
Have you checked out Aspose?
 
subject: Packing Jars - Please help
 
It's not a secret anymore!