<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Michal,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>True, thanks for the help.&nbsp; I suggest you just 
try to change&nbsp;the code locally so that it fits&nbsp;your requirements, and 
bundle your comments (and a patch would be nice :)) in a JIRA.&nbsp; I'll take a 
look and will try to incorporate those changes in trunk asap !</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Kris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=michalbali@gmail.com href="mailto:michalbali@gmail.com">Michal 
  Bali</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-dev@lists.jboss.org 
  href="mailto:rules-dev@lists.jboss.org">Rules Dev List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, December 03, 2008 10:48 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [rules-dev] 
  drools-process-enterprise - JPAPersisterManager shouldtake 
  EntityManagerFactory as an input parameter</DIV>
  <DIV><BR></DIV>Hi Kris,<BR><BR>The JPAPersisterManager is currently creating a 
  new EntityManagerFactory.<BR><BR>It should probably also take an 
  EntityManagerFactory as an input. This is necessary if you already have an 
  EntityManagerFactory in your application you want to reuse it. Two 
  EntityManagerFactories mean two transactional resources that have to be 
  managed by a distributed transaction and that is unnecessary. <BR><BR>If you 
  want I should be able to provide the patch. It should be a simple constructor 
  change :).<BR><BR>I hope I am not starting to bother you with my issues, I 
  might have a few more :)<BR><BR>Thank you.<BR>Best Regards,<BR>Michal<BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>rules-dev mailing 
  list<BR>rules-dev@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-dev<BR></BLOCKQUOTE></BODY></HTML>