<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV>Thank you so much for the information.&nbsp; This is very helpful.&nbsp; :-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Suk<BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Jervis Liu &lt;jliu@redhat.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> rules-users@lists.jboss.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tue, March 22, 2011 8:34:39 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [rules-users] Can we point to db repository url directly in ChangeSet.xml<BR></FONT><BR>If what you want is to access back-end repository artifacts like packages/assets etc without using Guvnor GUI, you can try Guvnor REST interface. Check this blog posted by Andrew recently: <A class=moz-txt-link-freetext href="http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html" rel=nofollow target=_blank>http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html</A><BR><BR>Hope this helps,<BR>Jervis<BR><BR>On 2011/3/23 7:58, Suk Fung wrote: 
<BLOCKQUOTE type="cite">
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt">
<DIV>Tihomir</DIV>
<DIV>In my case, I'm using mysql as database repository.&nbsp; Does the Jackrabbit API allow directly logging into the database&nbsp;repository to search for assets?&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Suk<BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Tihomir Surdilovic <A class=moz-txt-link-rfc2396E href="mailto:tsurdilo@redhat.com" rel=nofollow target=_blank ymailto="mailto:tsurdilo@redhat.com">&lt;tsurdilo@redhat.com&gt;</A><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org" rel=nofollow target=_blank ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tue, March 22, 2011 4:17:04 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [rules-users] Can we point to db repository url directly in ChangeSet.xml<BR></FONT><BR>On 3/22/11 6:36 PM, Sathya Prakash wrote: 
<BLOCKQUOTE type="cite">
<DIV dir=ltr>
<DIV><BR>Hi Suk,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Kindly let me know how can point to the database repository directly, not depending on Guvnor application up running.<BR></DIV></DIV></BLOCKQUOTE>You could use the Jackrabbit API directly to log into your repository and search for assets, but this would get pretty complex. If you are trying to avoid network access or something, then just download the .pkg file and use it locally.<BR><BR>Tihomir<BR>
<BLOCKQUOTE type="cite">
<DIV dir=ltr>
<DIV><BR>Regards,</DIV>
<DIV>sathya<BR></DIV>
<DIV class=gmail_quote>2011/3/23 Suk Fung <SPAN dir=ltr>&lt;<A href="mailto:suk_f@yahoo.com" rel=nofollow target=_blank ymailto="mailto:suk_f@yahoo.com">suk_f@yahoo.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt">
<DIV>Thanks for all your info.&nbsp; I got Guvnor configured to use external database repository using mysql.&nbsp; But just wonder if the client application can point to the database repository directly, not depending on Guvnor application up running.<BR><BR>Suk<BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Michael Anstis &lt;<A href="mailto:michael.anstis@gmail.com" rel=nofollow target=_blank ymailto="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</A>&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> drools-user &lt;<A href="mailto:rules-users@lists.jboss.org" rel=nofollow target=_blank ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tue, March 22, 2011 3:21:59 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [rules-users] Can we point to db repository url directly in ChangeSet.xml<BR></FONT>
<DIV>
<DIV class=h5><BR>hehe, I guess this is a classic example of a circular dependency ;)<BR><BR>Can you confirm you're using a changeset to retrieve the rules rather than a URL to simply download the binary package?<BR><BR>If so you should be able to include credentials in that file. Google for "drools changeset" and you should see some examples.<BR><BR>With kind regards,<BR><BR>Mike<BR><BR>
<DIV class=gmail_quote>On 22 March 2011 22:15, Sathya Prakash <SPAN dir=ltr>&lt;<A href="mailto:prakashagarval@gmail.com" rel=nofollow target=_blank ymailto="mailto:prakashagarval@gmail.com">prakashagarval@gmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV dir=ltr>
<DIV>Hi Mike,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jboss ESB documentation states refer Drools documentation&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Kindly let me know how to pass credentials in Drools so that i can try with ESB.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Sathya<FONT color=#888888><BR><BR></FONT></DIV>
<DIV>
<DIV>
<DIV class=gmail_quote>On Wed, Mar 23, 2011 at 2:08 AM, Michael Anstis <SPAN dir=ltr>&lt;<A href="mailto:michael.anstis@gmail.com" rel=nofollow target=_blank ymailto="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>Hi Sathya,<BR><BR>This is by design.<BR><BR>Any consumer of the "Guvnor service" will need to provide authentication parameters in the HTTP request.<BR><BR>This sounds like it could be an issue with ESB, perhaps you can pose a question to their support forums asking how you can include authorisation credentials in their configuration?<BR><BR>Please direct your emails to the drools-user mailing list as any information could be of value to others in the future.<BR><BR>If I've mis-understood something please let me know :)<BR><BR>With kind regards,<BR><BR>Mike 
<DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On 22 March 2011 22:00, Sathya Prakash <SPAN dir=ltr>&lt;<A href="mailto:prakashagarval@gmail.com" rel=nofollow target=_blank ymailto="mailto:prakashagarval@gmail.com">prakashagarval@gmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV dir=ltr>
<DIV>Hi Mike,</DIV>
<DIV>&nbsp;</DIV>
<DIV>If Drools guvnor is password protected then package url can not be accessed directly.</DIV>
<DIV>&nbsp;</DIV>
<DIV>In esb we can specific url or dir location. I have specified url i need to pass credentials. as of now its throwing 401 hhtp code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards,</DIV>
<DIV>sathya prakash<FONT color=#888888><BR><BR></FONT></DIV>
<DIV>
<DIV>
<DIV class=gmail_quote>On Wed, Mar 23, 2011 at 1:55 AM, Michael Anstis <SPAN dir=ltr>&lt;<A href="mailto:michael.anstis@gmail.com" rel=nofollow target=_blank ymailto="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>I'm not familiar with JBoss ESB Drools integration.<BR><BR>However, AFAIK, the file is not password protected but the (Guvnor hosting) web-server authenticates HTTP requests to "close" access.<BR><BR>Can you please explain more what you mean by restricting access to a particular server?<BR><BR>Thanks,<BR><BR>Mike 
<DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On 22 March 2011 21:39, Sathya Prakash <SPAN dir=ltr>&lt;<A href="mailto:prakashagarval@gmail.com" rel=nofollow target=_blank ymailto="mailto:prakashagarval@gmail.com">prakashagarval@gmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV dir=ltr>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>If package file is password protected, then how to restrict to particular server. I am using JBOSS ESB drools integration.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Sathya Prakash.<BR><BR></DIV>
<DIV>
<DIV>
<DIV class=gmail_quote>2011/3/23 Michael Anstis <SPAN dir=ltr>&lt;<A href="mailto:michael.anstis@gmail.com" rel=nofollow target=_blank ymailto="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>The repository used by Guvnor is not a database but an implementation of JCR (Content Repository for Java Technology).<BR><BR>We currently support Apache Jackrabbit and IIRC JBoss Modeshape from 5.2.0.M1 as an option (if not in an earlier version). Whilst it is possible to configure either of these JCR implementations to persist to a RDBMS instead of a FileSystem, I believe the table content is a (proprietary) binary form at not easily integrated. Consequentially we only expose the facility to download rule packages through the channels you state.<BR><BR>With kind regards,<BR><BR>Mike<BR><BR>
<DIV class=gmail_quote>
<DIV>
<DIV>2011/3/22 Suk Fung <SPAN dir=ltr>&lt;<A href="mailto:suk_f@yahoo.com" rel=nofollow target=_blank ymailto="mailto:suk_f@yahoo.com">suk_f@yahoo.com</A>&gt;</SPAN><BR></DIV></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV>
<DIV>
<DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 12pt">
<DIV>All,<BR>To consume the rules in the application, we can either use package URI or download a binary .pkg file from guvnor.&nbsp; I just wonder if the application can connect to the database repository directly?<BR><BR>Thanks for any information in advance.<BR><BR>Suk<BR></DIV></DIV><BR></DIV><BR></DIV></DIV>_______________________________________________<BR>rules-users mailing list<BR><A href="mailto:rules-users@lists.jboss.org" rel=nofollow target=_blank ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A href="https://lists.jboss.org/mailman/listinfo/rules-users" rel=nofollow target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR>_______________________________________________<BR>rules-users mailing list<BR><A href="mailto:rules-users@lists.jboss.org" rel=nofollow target=_blank ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A
 href="https://lists.jboss.org/mailman/listinfo/rules-users" rel=nofollow target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR></DIV></DIV>-- <BR>
<DIV dir=ltr>Cheers,<BR>Sathya Prakash.<BR><B style="BACKGROUND-COLOR: rgb(102,51,255)">సత్య <SPAN>ప్రకాష్</SPAN></B>.</DIV><BR></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>
<DIV dir=ltr>Cheers,<BR>Sathya Prakash.<BR><B style="BACKGROUND-COLOR: rgb(102,51,255)">సత్య <SPAN>ప్రకాష్</SPAN></B>.</DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>
<DIV dir=ltr>Cheers,<BR>Sathya Prakash.<BR><B style="BACKGROUND-COLOR: rgb(102,51,255)">సత్య <SPAN>ప్రకాష్</SPAN></B>.</DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></DIV></DIV><BR></DIV><BR>_______________________________________________<BR>rules-users mailing list<BR><A href="mailto:rules-users@lists.jboss.org" rel=nofollow target=_blank ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A href="https://lists.jboss.org/mailman/listinfo/rules-users" rel=nofollow target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>
<DIV dir=ltr>Cheers,<BR>Sathya Prakash.<BR><B style="BACKGROUND-COLOR: rgb(102,51,255)">సత్య <SPAN>ప్రకాష్</SPAN></B>.</DIV><BR></DIV><PRE><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
rules-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org" rel=nofollow target=_blank ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-users" rel=nofollow target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><BR></DIV></DIV></DIV><BR><PRE><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
rules-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org" rel=nofollow target=_blank ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-users" rel=nofollow target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><BR></DIV></DIV></div><br>

      </body></html>