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: NHibernate and WCF
PostPosted: Wed May 28, 2008 1:49 pm 
Newbie

Joined: Thu Jun 14, 2007 3:46 am
Posts: 17
Hi,

I try to use lazy loading from hibernate and WCF. Now i know i first must get ride of the prox's.

so i got :
Code:
SessionFactory.CloseSession();

f.LocalVariables = null;
f.Nodes = new HashedSet<FlowchartNode>();
f.Notes = new HashedSet<Note>();
f.TypeIdentifier = null;
f.Type = FlowchartType.Interaction;
         

OpenFlowchartMessageResponse response = new OpenFlowchartMessageResponse()
{
     //Flowchart = new Flowchart() { Name = "boom", Id = 1, Description = "bla" },
     Flowchart = f, Nodes = null
};

return response;


things like LocalVariables aren't even data member.

when i use this the callback event in the silverlight application is never called. When use Flowchart = new Flowchart() { Name = "boom", Id = 1, Description = "bla" },
and comment out Flowchart = f it works. The only differance i see is the proxy class of the FLowchart; is there a way to get rid of that thing?


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.