- This topic has 4 replies, 3 voices, and was last updated 20 years, 10 months ago by Scott Anderson.
-
AuthorPosts
-
Martin_KerstenMemberHi there, hi Scott,
I am about to test hibernate for replacing CMP EJBs. (For seperation and simplification issuses).
So it’s up to me to check out what myeclipse can do for us. So here the good old question and answer game may start:
Q1: How to set up hibernate best?
Hibernate + XDoclet works fine for creating mapping and stuff. Also the jboss-service.xml creation and setup was a cakewalk (really!). But now it comes to deployment and bundling up, i am a bit screwed up.
The hibernate doc (wiki) means, using and defining an mbean works great and that the mbean should be placed in a sar archive and bundled within the ear file. (sar contains only mapping and jboss-service jars). That sounds a bit error prone to me.
So I would like to know, how you folks do it? Any tip would be create.
I guess this is all,
Thanks for reading and have a great new year!
Martin
Martin_KerstenMemberAfter playing around with some packaging I am using a sar file containing the jboss-service.xml and the mappings and placed within the ear project. Works fine I guess but I will do some further testings.
Any other structure possible? I have to update the mappings everytime I am changing a hibernated class. I guess this is a bit unhandy 😉
Martin (Kersten)
Scott AndersonParticipantMartin,
You’re using exactly the structure I would’ve suggested. In the future, once we get dependent project support working, you should be able to specify a separate project that creates your sar such that it will be packaged with the ear automatically. Until then, the solution you’ve created sounds like the right approach.
Now the big question, would you like to write a feature article for the portal that details how you got everything working? I’m sure it would be of great benefit to other MyEclipsians. 🙂
–Scott
MyEclipse Support
tslusserMemberHi Scott, are there any plans to add sar module support to the Enteprise Project type? I would like to have Enterprise Workbench deploy the ear automatically but at the same time include a sar module. I think that type of deployment scenario is specific to JBoss but it would be very handy to have that supported by Enterprise Workbench.
Thanks,
Ted
Scott AndersonParticipantI suppose the SAR is in it’s own project and needs to be jar’d and added to the EAR? Or does it already exist and simply needs to be included in the deployment? Can you describe what you’re looking for, specifically?
-
AuthorPosts