<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Since Drools 5.1 if you secure Guvnor, you need also authenticate to
get resources from Guvnor. In your change-set.xml you can do
something like this:<br>
<br>
<change-set xmlns='<a class="moz-txt-link-freetext" href="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</a>'
xmlns:xs='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'
xs:schemaLocation='<a class="moz-txt-link-freetext" href="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</a><br>
drools-change-set-5.0.xsd' ><br>
<add><br>
<resource<br>
source='<a class="moz-txt-link-freetext" href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST</a>'<br>
type='PKG' basicAuthentication="enabled" username="admin"
password="admin"<br>
/><br>
</add><br>
</change-set><br>
<br>
For your JBoss ESB - specific question, take a look at quickstart
example
<a class="moz-txt-link-freetext" href="http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/samples/quickstarts/business_ruleservice_ruleAgent/">http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/samples/quickstarts/business_ruleservice_ruleAgent/</a>,
and specifically the properties file used: <br>
<br>
<a class="moz-txt-link-freetext" href="http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/samples/quickstarts/business_ruleservice_ruleAgent/ruleAgent/brmsdeployedrules-unfiltered.properties">http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/samples/quickstarts/business_ruleservice_ruleAgent/ruleAgent/brmsdeployedrules-unfiltered.properties</a><br>
<br>
The properties file is read in by DroolsRuleAgentHelper.java (
<a class="moz-txt-link-freetext" href="http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/services/jbrules/src/main/java/org/jboss/internal/soa/esb/services/rules/DroolsRuleAgentHelper.java">http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/services/jbrules/src/main/java/org/jboss/internal/soa/esb/services/rules/DroolsRuleAgentHelper.java</a>
), so going along with that example, to add basic authentication and
pass in username/password you should be able to have (not last
three lines):<br>
<br>
newInstance=true<br>
#file=@quickstart.dir@/ruleAgent/package/org.jboss.soa.esb.services.rules.pkg<br>
#dir=/ruleAgent/package<br>
url=<a class="moz-txt-link-freetext" href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.jboss.soa.esb.services.rules/LATEST">http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.jboss.soa.esb.services.rules/LATEST</a><br>
#localCacheDir=/ruleAgent/cache<br>
poll=30<br>
name=insuranceconfig<br>
enableBasicAuthentication=true<br>
username=admin<br>
password=admin<br>
<br>
Hope this helps.<br>
<br>
Tihomir.<br>
<br>
On 3/22/11 6:21 PM, Michael Anstis wrote:
<blockquote
cite="mid:AANLkTi=AWcRGKRKxrnyNAueWRzzWQxY4khH_yZnJamkF@mail.gmail.com"
type="cite">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"><<a moz-do-not-send="true"
href="mailto:prakashagarval@gmail.com">prakashagarval@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div dir="ltr">
<div>Hi Mike,</div>
<div> </div>
<div>Jboss ESB documentation states refer Drools
documentation </div>
<div> </div>
<div>Kindly let me know how to pass credentials in Drools so
that i can try with ESB.</div>
<div> </div>
<div>Regards,</div>
<div>Sathya<font color="#888888"><br>
<br>
</font></div>
<div>
<div class="h5">
<div class="gmail_quote">On Wed, Mar 23, 2011 at 2:08
AM, Michael Anstis <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:michael.anstis@gmail.com"
target="_blank">michael.anstis@gmail.com</a>></span>
wrote:<br>
<blockquote style="border-left: 1px solid rgb(204,
204, 204); 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"><<a
moz-do-not-send="true"
href="mailto:prakashagarval@gmail.com"
target="_blank">prakashagarval@gmail.com</a>></span>
wrote:<br>
<blockquote style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt
0.8ex; padding-left: 1ex;"
class="gmail_quote">
<div dir="ltr">
<div>Hi Mike,</div>
<div> </div>
<div>If Drools guvnor is password
protected then package url can not be
accessed directly.</div>
<div> </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> </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"><<a
moz-do-not-send="true"
href="mailto:michael.anstis@gmail.com"
target="_blank">michael.anstis@gmail.com</a>></span>
wrote:<br>
<blockquote style="border-left: 1px
solid rgb(204, 204, 204); 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"><<a
moz-do-not-send="true"
href="mailto:prakashagarval@gmail.com"
target="_blank">prakashagarval@gmail.com</a>></span>
wrote:<br>
<blockquote
style="border-left: 1px
solid rgb(204, 204, 204);
margin: 0pt 0pt 0pt 0.8ex;
padding-left: 1ex;"
class="gmail_quote">
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div>If package file is
password protected,
then how to restrict
to particular server.
I am using JBOSS ESB
drools integration.</div>
<div> </div>
<div> </div>
<div> </div>
<div>Regards,</div>
<div>Sathya Prakash.<br>
<br>
</div>
<div>
<div>
<div
class="gmail_quote">2011/3/23
Michael Anstis <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:michael.anstis@gmail.com"
target="_blank">michael.anstis@gmail.com</a>></span><br>
<blockquote
style="border-left:
1px solid
rgb(204, 204,
204); 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"><<a
moz-do-not-send="true" href="mailto:suk_f@yahoo.com" target="_blank">suk_f@yahoo.com</a>></span><br>
</div>
</div>
<blockquote
style="border-left:
1px solid
rgb(204, 204,
204); 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. 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
moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a
moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</blockquote>
</div>
<br>
<br>
_______________________________________________<br>
rules-users
mailing list<br>
<a
moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a
moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="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">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>