-->
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.  [ 2 posts ] 
Author Message
 Post subject: Need advice on accessing GIS data
PostPosted: Wed Mar 23, 2005 5:41 am 
Newbie

Joined: Wed Mar 23, 2005 4:36 am
Posts: 1
Location: Canada
Hi,

I am developing a web site with GIS functionality. A couple of tables in my database contain GIS data that is only understood by the GIS software (ArcSDE in this case). Currently, as a prototype, I have created a few POJO that inserts, accesses, and updates these tables via the ArdSDE Java API. I am planning to use Hibernate as the persistence method for all other tables. Consequently, I would have a layer of DAOs, some of them use Hibernate and some of them use the customized GIS DAOs.
Some session beans would call both kinds of DAOs to update both GIS and non-GIS tables, supposingly, within one transaction.

I am new to Hibernate, and at first, I was hoping that I could somehow "plug" my GIS DAOs into Hibernate so that Hibernate can take care of concurrency and transaction issues. However, after reading the manual and quite a few of articles, I have the impression that this can't be (at least not easily or cleanly) done. (Am I right?) Besides, although ArcSDE does provide 'beginTransaction' and 'commitTransaction' methods, it does not seem like I can make or request the GIS updates/inserts to join the main transaction.

So I am back to my original design of having some session beans accessing both kinds of GIS DAOs. As far as transaction control goes, I assume I have to somehow to use bean-managed transaction control and do the work myself. (Still have no clues how I am going to do this cleanly though.)

Has anyone encountered similar design issues before?
Do you think I am doing the right thing?
I appreciate your opinions or advices.

Thanks
Carlos


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 6:02 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you GIS API needs to be able to join the CMT transaction to be able to work within the sam transaction......if it cant then you cant have transactional isolation.

-max

_________________
Max
Don't forget to rate


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