Results 1 to 5 of 5

Thread: Enterprise packaging

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    2

    Default 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

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Nov 2012
    Posts
    2

    Default

    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?

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Dec 2009
    Location
    India
    Posts
    108

    Default

    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
  •