-->
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: Extending persistence model using events
PostPosted: Thu Jul 27, 2006 11:09 am 
Newbie

Joined: Thu Jul 27, 2006 10:47 am
Posts: 1
I'm trying to extend JBoss Portal, which uses Hibernate3 to manage its user profile information in an RDBMS, to persist some of its user fields to a Siebel CRM instance instead of the database. Unfortunately, while JBP separates its user management API into a separate module, the API for this interface assumes a session-based transaction model, e.g. there's no explicit "Save" operation.

So, in trying to avoid rewriting the JBP user management components altogether, I'm considering using Hibernate events to extend the existing persistence model. E.g. populate the extra Siebel fields in an onLoad handler (using the Siebel business apis), report changes to these fields inonDirtyCheck, save changed Siebel fields in onPostUpdate, etc. I'm aware of the N+1 implications for lists of user objects, but most of the time we're only dealing with a single user at a time (and we expect to have lots of users, so I may disable the multi-user stuff altogether)

Is this nuts? Novel? Are there particular issues I should consider (transactionality, errors, whatever)?

I'd appreciate any insight the community can provide.

thanks,
Peter


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.