-->
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.  [ 4 posts ] 
Author Message
 Post subject: SmartClients ocassionally disconnected with nhibernate?
PostPosted: Thu Apr 12, 2007 11:48 am 
Newbie

Joined: Tue Apr 10, 2007 9:09 am
Posts: 2
Hello,

I am on my first steps to evaluate persistence Frameworks.
Our application will run in a SmartClient environment, there we want to use the SmartClient in occassionally disconnected way (for mobile laptop users)

So far so good. We have data, which may be concurrently be modified. Therefore we decided to use a pessimistic lock. (we may change it to optimistic locking)

The database we are using is SQL Server 2005 and an SQL Server 2005 Express for the mobile laptop users.

Is there any good paper for nhibernate in such an environment?
My needs are:
- how to realize an application server integration of hibernate?
- how to do an remoting of the entities or maybe a mapping of the entities to transfer objects
- how to ensure a pessimistic or optimistic lock on a basis there it is possible to modify some data, which are contained in a big entity-graph, which itself must be consistent to data changes.

The management wants to use a commercial O/R-mapper, but I would like to use nhibernate. Is there any comparision-review of the .net O/R-mapper frameworks?

best regards,
Hans


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 5:55 am 
Newbie

Joined: Tue Apr 10, 2007 9:09 am
Posts: 2
really noone here, who has similar architectures/requirements?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 9:17 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
The point is that you're asking a lot here about complex things. It's not easy to answer that in a few lines and most of it doesn't even depend on NHibernate.
First thing: writing an occasionally connected Smart Client is hard. It's important to define some requirements first from a business perspective (for example, replication/synchronization strategies).

Quote:
The management wants to use a commercial O/R-mapper, but I would like to use nhibernate.


Could you motivate that a little bit more? Maybe the management has very good reasons for a commercial O/R mapper (for example, strong support for disconnected scenario's)?

I am probably playing the devil's advocate here, but it's important to realize that you shouldn't pick a product based on personal preferences, but for business reasons.

_________________
Cuyahoga


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 12:27 pm 
Newbie

Joined: Mon Jul 18, 2005 9:04 am
Posts: 11
I currently work on a project were we use remoting, hence we use "disconected" objects.
We have data transfer objects, and wrote a framework were the domain objects know about their assemblers through attributes, and a Command infrastructure to load the data, so that we can easily return data transfer objects to pass over our remoting boundery.

It's all custom implementation, but it's nothing too difficult or complicated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.