Hello guys,
I've been studying and testing some hibernate-shards functionalities and I got some trouble when persisting some objects. The main point is that I have one simple new object registration form where a combo indicating in which shard the information will be recorded, so you enter the object information like username and password, select the shard id and press register. In my application logic I have one openeded shardedsessionfactory and also a session available but I don't know how to save in the selected shard, because everytime I save the object it goes do the first shard. I've had read I need to implement a selection sharded strategy bu i did not find any example or solution over the internet.
I thank you for the attention,
Ademir
_________________ -- Ademir Constantino Filho
http://sites.google.com/site/ademirwebinfo/ http://blogs.constantinoit.com.br/aconstantino http://twitter.com/citatwork
|