-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Saving to specificed shardid
PostPosted: Mon Aug 16, 2010 11:09 am 
Newbie

Joined: Mon Aug 16, 2010 11:02 am
Posts: 1
Location: Curitiba, Brazil
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.