[jboss-user] [JBoss Seam] - Re: Data separation in multi tenant applications with seam

gavin.king@jboss.com do-not-reply at jboss.com
Mon May 28 14:38:01 EDT 2007


#1 Can be implemented using a Hibernate Filter, which we have special support for in Seam.

#2 or #3 Can be implemented using multiple SessionFactories, or EntityManagerFactories. You would need to do a little trick when the user logs in, to map the SessionFactory you are interested in for this user to the context variable that your Seam-managed persistence context uses. But this is trivial to implement and will work well. 

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

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



More information about the jboss-user mailing list