I'm sorry if this is a totally novice question. I'm ejb-izing some applications we're working on. I've had good luck with simple stuff, but now I'm trying to do something a bit more complicated (for me, anyway).
We've got a set of tables in a given schema (oracle 9i) that are shared among different applications. They're some tables of medical vocabulary terms. Other apps are each in their own schema, and have foreign key constraints into these vocabulary tables. Like, one set of tables relating to a diagnosis app might have a diagnosis code that is a foreign key into a vocabulary term table.
Now, how do I deploy different apps in their own war files, where each of them need to reference a bean from the vocabulary schema? Middlegen operates at the schema level, and hence doesn't pick out and generate entity beans for all the referenced vocab beans.
Do I do something like:
a. deploy the vocabulary beans in their own war file,
b. then, for each application, make a war file full of entity and session beans ala middlegen/ejbdoclet, and
c. salt the relevant entity beans in each app (which reference beans from the vocabulary schema) using tags like @ejb.ejb-external-ref or something like that? Stick the referenced beans (generated in step 'a' above) in the jar for each app?
Is it dangerous to have separate war files deployed to an app server (jboss 3.2.1 btw) each with references to a given bean? Or is this, uh, how one is *supposed* to do it?
Or am I making life tough for myself by having things in different schemas, and I should just happily deploy each app and not care if multiple entity beans are floating around all referencing the same table, assuming jboss will figure it out?
I'm sure I'm making this harder than it really is.
Thanks for any help!
Cheers,
-Mike
------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user