• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Packing Jars - Please help

 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34074
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic