-
Nov 7th, 2012, 01:20 AM
#1
Enterprise packaging
Hi,
I'm currently working on a large enterprise Java Application I try to migrate back to Spring. This is because most of the features of the enterprise Java Stack I do not need but the overall performance of the application got worse after migration to Java EE.
What I currently miss in the Spring environment is a similar packaging as for Java EE: EAR archive containing one or more WAR archives and multiple JAR archives whereas the business logic is implemented in the JARs but the application context (in spring terms) is spread accross all archives within the EAR.
Is something like this possible? Or is it only possible by using OSGi with Genimi on a Virgo server or something similar=
Thanks and Best Regards
Florian
-
Nov 7th, 2012, 02:31 AM
#2
I don't see your point if you want an EAR with multiple WARs use it... The fact that you use Spring doesn't mean you cannot use an EAR file anymore...
-
Nov 7th, 2012, 02:47 AM
#3
But where should I put the application context file if I want to have a single context for the whole application? In the META-INF foleder of the EAR?
-
Nov 7th, 2012, 03:23 AM
#4
Put it in the EAR and use a BeanFactoryLocator to load the shared context (this is explained in the EJB chapter of the reference guide).
-
Dec 16th, 2012, 05:36 AM
#5
Since the time you posted, SpringSource has launched a new tool project for migration of a JavaEE application to Spring. The brief usage guide has some information, you could get started with.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules