470,849 Members | 1,142 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Cross-server development and packaging of EJBs - I am puzzled

I would like to get an opinion from other EJB developers who might have
faced a similar problem.

I am developing an EJB for deployment on various app servers (JBoss, Sun
ONE, BEA WebLogic). Ideally, I would like to keep a single codebase, and
only tweak the XML deployment descriptors when necessary. This seems to be
an achievable goal for targeting JBoss and Sun ONE, but not WebLogic.

I do all development in Eclipse, using JBoss plugin and XDoclet to generate
the interface and XML files. XDoclet provides options for generating the
files for many app servers, including WebLogic, but it only creates the
following files for my test HelloBean class:


and this file structure is very similar to the other target app servers for
which XDoclet generates files.

However, if I use WebLogic's Workshop for the same bean class, it creates
many more files, e.g.


and other files, all packaged into an EAR file.

Assuming that all these classes and XML files are needed for proper
deployment and operation of the bean, does this mean that the only way to
build the EAR file for WebLogic is to use their proprietary tools, like
Workshop? What's more, if the code must be handled by Workshop, the tags
inside the Java code, used to generate these auxiliary files, are not
XDoclet tags, but use syntax specific to WebLogic (e.g.
@ejbgen:remote-method instead of XDoclet's @ejb.interface-method).

If my observations are correct (I hope not), the above means that WebLogic
expects me to maintain a separate codebase for it, different from the
codebase shared by JBoss and Sun ONE.

Can anyone comment on this? Am I perhaps missing something, like a special
Eclipse plugin for WebLogic (but not the one available from BEA's site -
that one can only start and stop the server from Eclipse, and is pretty
useless for anything else).

I will appreciate any help in this matter.

Alex Molochnikov
Jul 18 '05 #1
0 2328

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by rollasoc | last post: by
3 posts views Thread by jlamanna | last post: by
1 post views Thread by Rob Woodworth | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.