-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Put Services and Domain Layer into seperate jar file?
PostPosted: Sun Oct 26, 2003 9:30 am 
Senior
Senior

Joined: Sun Oct 26, 2003 5:05 am
Posts: 139
Should I put the Services and Domain Layer into seperate jar file and include it into my web application (like any other jar file)? These layers will use hibernate. I think my idea project is getting too large with all the layers, but it's nice having it all there at the same time. What do you experts do?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 26, 2003 6:33 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
For a JBoss app I have been building, I have the persistence domain in a sar file and the EJB and DAOs in its own jar. During development it works well in terms of hot deployment. In a production or QA senario then they will be packaged into a single ear which gives you the best of both worlds.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 26, 2003 6:53 pm 
Senior
Senior

Joined: Sun Oct 26, 2003 5:05 am
Posts: 139
I guess that makes test suites fairly manageable too, right? I mean, I know you can compose them in a modular manner, but I hate looking at a project with over 300 classes, no matter how well they are organized with respect to packages and all that.

I was thinking of putting all my domain layer and a services layer (facade) into it's own package. The facade would probably have a superclass with hibernate in it to make it easy for specify services to extend it without worrying about the specifics of persistance too much (just nice 1 or 3-line calls depending on what you are doing). Basically I would call this 'appname-business.jar' or something like that. Then, I would include that jar file into the web application and have webwork actions call the services.

Do you think I'll have problems configuring hibernate inside the application server even though I'm building a jar file with the hibernate calls that is designed without the use of one?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2003 10:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
All the app server will be looking for will be the mapping files and mapped domain classes. There is no issue here, as far as the appserver is concerned, having the services in there aswell. Also, it does make test suite easier as you can build and run tests, optionally, outside of the appserver.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.