-->
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.  [ 3 posts ] 
Author Message
 Post subject: SessionFactory in Socket
PostPosted: Wed Dec 28, 2005 9:36 am 
Newbie

Joined: Wed Dec 28, 2005 9:18 am
Posts: 4
Good Morning,

Is there any way to transfer by Socket or RMI a SecioinFactory loaded in other JVM?

My software is Client-Server desenveloped in Swing.

I tried to do this with Socket but when the customer receives from the server the

SessionFactory he looks for another with the same name
in it´s JVM, and it´s exactly what I don´t wnat to do, because I want to up the

SessionFactory only once at the Server and then
share this session factory to all clientes machines.

Thanks.

Rafael.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 3:47 pm 
Newbie

Joined: Tue Oct 18, 2005 2:49 pm
Posts: 13
Hi,

If the client needs to connect to the database, its going to need its own SessionFactory. If your clients only call EJBs/Servlets/RMI, then you would only need the SessionFactory on the server where the db stuff is done.

If your clients are (or to be kept) unaware of the configuration, you can send the information to them from the server, and then create a session factory dynamically.

Could you elaborate on why are you trying to do this?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 9:32 am 
Newbie

Joined: Wed Dec 28, 2005 9:18 am
Posts: 4
I´m trying to do this, because my sistem is Stand-Allone and needs to load 400 tablels. It´s slowing the inicialization.

I´ve transffered the Configuration by socket and created the SessionFactory but it´s not enough to minimizate the time spent whith the creation.

Thanks for the help.


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

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.