<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : EntityManager in a WCF Service</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : EntityManager in a WCF Service</description>
  <pubDate>Mon, 13 Apr 2026 18:43:25 -700</pubDate>
  <lastBuildDate>Mon, 11 Jul 2011 14:42:26 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2710</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>EntityManager in a WCF Service :   Hi Kurt,As per the DRC:You...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=11215#11215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2710<br /><strong>Posted:</strong> 11-Jul-2011 at 2:42pm<br /><br />Hi Kurt,<div>&nbsp;</div><div>As per the DRC:</div><div>&nbsp;</div><div><em>You need to set the SearchPatterns and IgnorePatterns as early as possible in your application, since as soon as you use the IdeaBladeConfig.Instance, TraceFns and DebugFns methods, or an EntityManager, initialization will automatically occur.</em></div><div><em></em><ul><em></em><li><em>In an <span ="wiki"><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/deploy-entityserver" target="_blank"><u><font color="#0066cc">EntityServer</font></u></a></span> hosted by IIS or an ASP.NET application, the best place to set the patterns is in the application startup logic in the global.asax.</em></li><li><em>In Silverlight, you should do this in the Application_Startup logic to ensure that your changes are made before probing occurs.</em></li><li><em>In a desktop application, set the patterns before you begin using an EntityManager or other DevForce components.    </em></li></ul></div><div>&nbsp;</div><div>&nbsp;</div><div>You will find more information in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/discovery" target="_blank">DevForce Resource Center</a>.</div><div>&nbsp;</div><div>Kind regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Mon, 11 Jul 2011 14:42:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=11215#11215</guid>
  </item> 
  <item>
   <title>EntityManager in a WCF Service :   I have a question about this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=11209#11209</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=717" rel="nofollow">kpinniger</a><br /><strong>Subject:</strong> 2710<br /><strong>Posted:</strong> 11-Jul-2011 at 1:12pm<br /><br /><div>I have a question about this statement:</div><p>1) I’d try setting the CompositionHost.SearchPatterns (in your global.asax?)</p><div>When does the CompositionHost.SearchPatterns have to be added?&nbsp; Just before creation of the EM?&nbsp; We are currently having one bos server two seperate applications and require that each application adds in their own searchpatterns.</div><div>&nbsp;</div><div>Any suggestions would be very much appreciated.</div><div>&nbsp;</div><div>Kurt Pinniger</div>]]>
   </description>
   <pubDate>Mon, 11 Jul 2011 13:12:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=11209#11209</guid>
  </item> 
  <item>
   <title>EntityManager in a WCF Service : This helped a great deal. I cannot...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=10980#10980</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=643" rel="nofollow">downeytim</a><br /><strong>Subject:</strong> 2710<br /><strong>Posted:</strong> 14-Jun-2011 at 1:45pm<br /><br />This helped a great deal. &nbsp;I cannot stress how important this is. &nbsp;It reduced the time to intialize an Entity Manager from 20 seconds to 4 seconds. &nbsp;In a WCF service call a 20 second initialization is obviously not workable. &nbsp;Even 4 seconds is a very long time to happen on every call to our servic]]>
   </description>
   <pubDate>Tue, 14 Jun 2011 13:45:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=10980#10980</guid>
  </item> 
  <item>
   <title>EntityManager in a WCF Service : Hi Tim,   A few pointers:  1)...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=10822#10822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2710<br /><strong>Posted:</strong> 25-May-2011 at 4:12pm<br /><br /><DIV>Hi Tim,</DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV>A few pointers:</DIV><DIV>&nbsp;</DIV><DIV>1) I’d try setting the CompositionHost.SearchPatterns (in your global.asax?) </DIV><DIV>While this affects initial startup, it wouldn’t necessarily be the cause of problems as each EM is constructed.However, if the list of probed assemblies is large, that might cause later performance issues. </DIV><DIV>You can read more about discovery/CompositionHost in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/discovery" target="_blank">DevForce Resource Center</A>.</DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>2) Also, have in mind that in n-tier every EM will be doing initialization and handshake logic to talk to the EntityServer, overhead that could be avoided if communication with a BOS on another server is not really necessary. </DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>3) Every EM will also try to login before anything else is done with it, so you might want to take a look at your IEntityLoginManager logic. </DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>4) Check your debug log. It might show the areas that are taking the longest and help you diagnostic the problem.</DIV><DIV></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Wed, 25 May 2011 16:12:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=10822#10822</guid>
  </item> 
  <item>
   <title>EntityManager in a WCF Service : Does anyone have WCF services...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=10805#10805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=643" rel="nofollow">downeytim</a><br /><strong>Subject:</strong> 2710<br /><strong>Posted:</strong> 24-May-2011 at 12:30pm<br /><br />Does anyone have WCF services built using DevForce for data access? &nbsp;We have several services built and have used the EntityManager in the service. &nbsp;It seems to be slowing down our services a good deal. &nbsp;It takes a very long time to instantiate the EntityManager on every call to the service. &nbsp;Our services are all Per-Call type.<div><br></div><div>Any examples or help with speeding up the creation of the EM would be greatly appreciated.</div>]]>
   </description>
   <pubDate>Tue, 24 May 2011 12:30:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2710&amp;PID=10805#10805</guid>
  </item> 
 </channel>
</rss>