-->
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: Passing a large graph of objects between EJBs
PostPosted: Tue May 17, 2005 11:33 am 
Newbie

Joined: Tue May 17, 2005 10:55 am
Posts: 7
Hibernate version: 2.1
Name and version of the database you are using: MySQL

Hi,

I have 2 EJBs:
The 1st EJB creates a large graph of objects (my domain model).
The 2nd EJB needs to use this graph of objects, should i:

A) Pass the root object of the graph - but risk a lot of serializing & de-serializing as the EJBs could be in different servers.

B) Get EJB1 to save the data, and then EJB2 to load the data back before using it? (Is session.flush() enough?)

Answer B seems better, but just wanted to know if there was another, better way of passing a large graph of persistable objects between EJBs.

Thanks.


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.