Dunno if this will answer ur question to the desired extent, but how about
distributing the common 'low-level' beans as part of jars/ears of different
applications, and giving different JNDI names for these repeated beans in
each of the jars/ears. That gives u code reuse for sure, and all that the
bean clients need is to use the correct JNDI name....

Surajit

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ionel
Gardais
Sent: Wednesday, July 16, 2003 11:35 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] EJB modeling


Hi,

I have already post about this but nobody answers.

I am developping more and more applications (either standalone or
webapps) that use EJBs.
In my designs, I took a special care of creating reusable beans. (avoid
relationship that were not obvious parts of the OO model)
I thought this could allow me to access "low level" beans in more than
one application. (by "low level beans" I mean beans that map widely
accessed datas such as employees datas or projects datas. They can be
used in a yellow page applications, in a scheduler application, in a
project management application ...)

Unfortunatly, I found that relationship does not work between beans that
are not deployed inside the same JAR package or the inside the same EAR
package. Plus, deploying more than one instance of an EJB throws
exception about "already deployed beans" so I can't even pack these
beans with each application I develop.


My question is : how did you solve this problem ?

I thought of deploying a version of the "low level beans" with each JAR
package but the datasource is not the same for "low level beans" and for
the application's beans.
Also, packaging all my apps in a big huge EAR package is not a wise
solution :)

I hope my explanations are clear enougth to get an answer.

Thanks,
Ionel



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to