Results 1 to 3 of 3

Thread: Java EE needed for shared context?

  1. #1

    Default Java EE needed for shared context?

    Hi,

    I have multiple portlets with one common hibernate datasource (in theory; what I currently have is a bunch of portlets with a hibernate instance for each portlet).

    http://yfrog.com/11contextsp

    shows what I would like to archieve. The best scenario would be to deploy the datasource and portlets as seperate wars each (where deployed portlets find the datasource context by bean name or something similiar).

    I found this blog entry:

    http://blog.springsource.com/2007/06...g-application/

    which requires me to set up a J2EE application server, which I don't need for other purposes. Is there another way to share a context?
    Last edited by TRex2003; Jun 25th, 2010 at 09:06 AM.
    Spring 3.0 :: Hibernate 3.1 ::

  2. #2

    Default

    Is that a "no"?
    Spring 3.0 :: Hibernate 3.1 ::

  3. #3
    Join Date
    May 2005
    Posts
    288

    Default

    That's not a "no", that's just "No one answered your question yet".
    Unless you want to create a .war file for every portlet, you should be able to create one application context for all the portlets within a .war file and one context for each portlet.
    Read the documentation on how to configure the global context inside web.xml

    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •