Board index » jbuilder » Another EJBModule Question
Another EJBModule Question
2004-01-17 04:57:51 AM
Using the answers that Lata supplied, I was able to create an ejb-jar
exactly the way I wanted. Thank you very much, Lata!
see: JBX - Several EJBModules in a single project - how to get individual
EJBModules to include ONLY those classes that are necessary
However, I passed the information on to others and they are not getting the
It turns out that they are not using 'Automatic Source Packages'.
They implicitly add the packages that they care about using 'Add
The projects in this case are different than the one in my original post.
Pictures and jars are worth thousands of words... see: 'JBX-one EjbModule'
project in the attachments directory.
There are two generated jars
1. GenTabcomp_NoAutoDiscover.jar (OneEjbModuleJPX1.png)
2. GenTabcomp_AutoDiscover.jar (OneEjbModuleJPX2.png)
The only difference between the two projects is that 'Project Properties |
General | Enable source package discovery and compilation' has been turned
on and off, and when off, the package com.guardian.wgs.gentabcomp was
manually added to the project.
No other settings were changed.
However the .jar files generated are quite different (take a look to see
what I mean). It seems that when 'Auto Discovery' is turned off, the
packages are not being built correctly.
Is this because only the top level package was manually added? If so, why
was the cmp package also added?