View Full Version : SLSB + JBOSS 4.0.2 Guidance needed
pure
Nov 6th, 2005, 09:47 AM
Hi!
Ive been trying to get a sample up that useses SLSB as facades and
use spring as business Logic. I have a few questions:
1. When loading the applicationContext.xml is this done every
call to the SLSB or only once.
2. What jar files are needed for this and how do i install spring in
JBoss.
3. Is there a sample (preferably small) application that uses JBoss
SLSB's and Spring witth the business logic. If hibernate is used
that would be great to.
4. Is it better to use the static context bean factory locator than
the non static one?
Thanx in advance..
Best Regards
Per
gmatthews
Nov 6th, 2005, 05:07 PM
1. once
2. It depends on what you're using to work out which jars are needed. I've had success putting jars in an ear/lib directory, and then in ear/META-INF, adding a <java> module alongside <ejb> and <web> modules.
e.g.
<module>
<java>lib/spring.jar</java>
</module>
In this way, the web + ejb modules can both see the jars.
sathya
Nov 7th, 2005, 05:07 AM
Hi
I have given the complete code for slsb , in this forum itself .
hope that will help you .
open this link to view.
http://forum.springframework.org/showthread.php?t=18988
all the best.
regards ,
sathya.
sathya
Nov 7th, 2005, 05:15 AM
Hi ,
If you are using Spring alone all you need in your /web-inf/lib is
spring-1.1.4.jar
commons-logging-1.0.3.jar
these were what i added .
the above jars are used during run time .
But for compliling purposes you will need the j2ee.jar also in the classpath along with the above mentioned jars.
are you trying hibernate with spring also ??
regards ,
sathya.
pure
Nov 7th, 2005, 12:57 PM
Thanx for all replies.. !!!!
pure
Nov 7th, 2005, 01:02 PM
Hi ,
If you are using Spring alone all you need in your /web-inf/lib is
spring-1.1.4.jar
commons-logging-1.0.3.jar
these were what i added .
the above jars are used during run time .
But for compliling purposes you will need the j2ee.jar also in the classpath along with the above mentioned jars.
are you trying hibernate with spring also ??
regards ,
sathya.
Yes .. i im using hibernate too. It is a large application that we
need refactoring with spring. The app is SLSB's with java Pojos
as business logic and data access layer. and hibernate is used
as persistence mechanism.
Regards,
Per
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.