[jboss-user] [J2EE Design Patterns] - Sharing data between web tier and ejb tier

asaf do-not-reply at jboss.com
Tue Jan 30 04:44:28 EST 2007


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,

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008198#4008198

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008198



More information about the jboss-user mailing list