You could have your 3 projects and a utility project, and build the utility with each project, including your configuration session ejb (why not a mdb?)? Though if the classes are already compiled, it's just a matter of repackaging it.

Regarding the JNDI name, you can have each 3 active EJB project have its own properties file that contains the JNDI name for that project. Then use ant substitution on the dd files and such to get the actual name you want to use.


Harkness, David wrote:


Hi all,

I have three active EJB projects here, each with a disjoint set of EJBs.
I have created a simple session EJB for controlling Log4j configuration
remotely that I'd like to deploy in each of the projects. Can someone
here give me a rundown of the easiest way to do this? While I can copy
the EJB class to each project, this isn't ideal as it makes maintenance
a headache.

If I leave it in a fourth utilities project, how do I get the deployment
descriptors for the other projects to include this new bean? Do I need
to point XDoclet to the shared bean from within each of the projects'
build.xml files? I need the bean to be deployed with a different JNDI
name in each project, so it doesn't seem that this would work.

Ideas? Pointers? Thanks in advance!

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user








-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to