2009/3/13 Ken Egozi <[email protected]>

> If the domain is the same and all, then why create lots of factories?
>

As you know it is a "limitation" of NH. All CRUD queries are created and
prepared at build session-factory so it is something hard to change the
behavior on the fly (schema is fixed) but....
Tuna are working in an interesting improvement and may be it can be useful
for this case too.
The improvement is the full serialization of a built session-factory.
This mean that you can deploy 100 built session-factory and use
one-per-httpSession.
To create each serialized session-factory you can use same mappings and same
configuration changing only the default-schema before build
the appropriate session-factory and save its image.

RAM expensive but possible... at the end 100 tenants has some cost.

-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to