0 Replies Latest reply on Jan 30, 2007 4:43 AM by asaf zinger

    Sharing data between web tier and ejb tier

    asaf zinger Newbie

      I'm wandering if this design is a legal J2ee design:
      When I know that the WEB Tier and the Ejb Tier are going to shre the same classloader I can use a Singelton to pass data from the Web Tier to the Ejb Tier through the Singelton.(e.g. the httpSession)

      This design is very easy to use cause the data is shared and no ejb calles are commited. but my problem is that I'm leaning on the fact that the specific vedor (or deployment architecture) are using the same classloader for both tiers.

      what do you say? is it J2ee legal? is it a good design?

      thanx,