We are designing an application with CORBA and Hibernate. The application architecure is as:
View1 (web application) ------>
>>>>> Controller (CORBA Object) --> Model (Hibernate) --> Database
View2 (Desktop application) ->
The Controller will offer several methods as getArticle, searchArticles, ... and these methods return "java" objects (structs CORBA), not CORBA objects. The problem appears when these "java" objects are on client side, so, if the client access to a lazy property of "java" objects. For example, imagine a class as:
Code:
public class Article {
private int id;
private String descripction;
private Family family; <<<----- lazied property
}
Client-side -->
Code:
Article article = ControllerCORBAObject.getArticle(2);
System.out.println(Article.Family.toString()); --> Family property is proxied!!! So, hibernate expect that a session is opened and initilize the property, but the problem is that this object is in other machine of session.
I expect that my problem description is good.
We are appreciate a lot your help.
Thanks for all.