<!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 bgcolor="#ffffff" text="#000000">
<br>
On 3/22/11 7:58 PM, Suk Fung wrote:
<blockquote cite="mid:845099.94732.qm@web161210.mail.bf1.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<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. Does
the Jackrabbit API allow directly logging into the
database repository to search for assets? </div>
</div>
</blockquote>
Take a look at <a class="moz-txt-link-freetext" href="http://jackrabbit.apache.org/first-hops.html">http://jackrabbit.apache.org/first-hops.html</a> maybe
that will clear things up a little more. Again doing this is too
much as you will need to know about the API and Guvnor's custom node
types in order to get anywhere with it.<br>
<br>
Querying the Jackrabbit data store (such as mysql in your case)
directly would kind of negate the purpose of JCR completely. If what
you need is to access a regular database why then use JCR in the
first place?<br>
<br>
You have access to rule assets in Guvnor via HTTP, from the Guvnor
eclipse plugin (WebDav) and AtomPub interface
(<a class="moz-txt-link-freetext" href="http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html">http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html</a>).
Not sure why using one or a combination of these would not work for
you.<br>
<br>
<br>
<blockquote cite="mid:845099.94732.qm@web161210.mail.bf1.yahoo.com"
type="cite">
<div style="font-family: arial,helvetica,sans-serif; font-size:
12pt;">
<div> </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 face="Tahoma" size="2">
<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"><tsurdilo@redhat.com></a><br>
<b><span style="font-weight: bold;">To:</span></b>
<a class="moz-txt-link-abbreviated" href="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> </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"><<a moz-do-not-send="true"
href="mailto:suk_f@yahoo.com" rel="nofollow"
target="_blank" ymailto="mailto:suk_f@yahoo.com">suk_f@yahoo.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">
<div>
<div style="font-family:
arial,helvetica,sans-serif; font-size: 12pt;">
<div>Thanks for all your info. I got Guvnor
configured to use external database repository
using mysql. 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
face="Tahoma" size="2">
<hr size="1">
<b><span style="font-weight: bold;">From:</span></b>
Michael Anstis <<a
moz-do-not-send="true"
href="mailto:michael.anstis@gmail.com"
rel="nofollow" target="_blank"
ymailto="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>><br>
<b><span style="font-weight: bold;">To:</span></b>
drools-user <<a moz-do-not-send="true"
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 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"><<a
moz-do-not-send="true"
href="mailto:prakashagarval@gmail.com"
rel="nofollow" target="_blank"
ymailto="mailto:prakashagarval@gmail.com">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>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>
<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"
rel="nofollow"
target="_blank"
ymailto="mailto:michael.anstis@gmail.com">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" rel="nofollow" target="_blank"
ymailto="mailto:prakashagarval@gmail.com">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"
rel="nofollow"
target="_blank" ymailto="mailto:michael.anstis@gmail.com">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"
rel="nofollow"
target="_blank" ymailto="mailto:prakashagarval@gmail.com">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"
rel="nofollow"
target="_blank" ymailto="mailto:michael.anstis@gmail.com">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" rel="nofollow"
target="_blank"
ymailto="mailto:suk_f@yahoo.com">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" rel="nofollow" target="_blank"
ymailto="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a
moz-do-not-send="true"
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
moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 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>