[rules-users] Can we point to db repository url directly in ChangeSet.xml

Suk Fung suk_f at yahoo.com
Tue Mar 22 23:48:18 EDT 2011


Thank you so much for the information.  This is very helpful.  :-)

Suk




________________________________
From: Jervis Liu <jliu at redhat.com>
To: rules-users at lists.jboss.org
Sent: Tue, March 22, 2011 8:34:39 PM
Subject: Re: [rules-users] Can we point to db repository url directly in 
ChangeSet.xml

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: 
http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html

Hope this helps,
Jervis

On 2011/3/23 7:58, Suk Fung wrote: 
Tihomir
>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?  
>
>
>Thanks,
>Suk
>
>
>
>
________________________________
From: Tihomir Surdilovic <tsurdilo at redhat.com>
>To: rules-users at lists.jboss.org
>Sent: Tue, March 22, 2011 4:17:04 PM
>Subject: Re: [rules-users] Can we point to db repository url directly in 
>ChangeSet.xml
>
>On 3/22/11 6:36 PM, Sathya Prakash wrote: 
>
>>Hi Suk,
>>
>>Kindly let me know how can point to the database repository directly, not 
>>depending on Guvnor application up running.
>>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.

Tihomir


>Regards,
>sathya
>
>2011/3/23 Suk Fung <suk_f at yahoo.com>
>
>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.
>>
>>Suk
>>
>>
>>
>>
________________________________
From: Michael Anstis <michael.anstis at gmail.com>
>>To: drools-user <rules-users at lists.jboss.org>
>>Sent: Tue, March 22, 2011 3:21:59 PM
>>Subject: Re: [rules-users] Can we point to db repository url directly in 
>>ChangeSet.xml
>>
>>
>>hehe, I guess this is a classic example of a circular dependency ;)
>>
>>Can you confirm you're using a changeset to retrieve the rules rather than a URL 
>>to simply download the binary package?
>>
>>If so you should be able to include credentials in that file. Google for "drools 
>>changeset" and you should see some examples.
>>
>>With kind regards,
>>
>>Mike
>>
>>
>>On 22 March 2011 22:15, Sathya Prakash <prakashagarval at gmail.com> wrote:
>>
>>Hi Mike,
>>>
>>>Jboss ESB documentation states refer Drools documentation 
>>>
>>>Kindly let me know how to pass credentials in Drools so that i can try with 
>>ESB.
>>>
>>>Regards,
>>>Sathya
>>>
>>>
>>>On Wed, Mar 23, 2011 at 2:08 AM, Michael Anstis <michael.anstis at gmail.com> 
>>>wrote:
>>>
>>>Hi Sathya,
>>>>
>>>>This is by design.
>>>>
>>>>Any consumer of the "Guvnor service" will need to provide authentication 
>>>>parameters in the HTTP request.
>>>>
>>>>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?
>>>>
>>>>Please direct your emails to the drools-user mailing list as any information 
>>>>could be of value to others in the future.
>>>>
>>>>If I've mis-understood something please let me know :)
>>>>
>>>>With kind regards,
>>>>
>>>>Mike 
>>>>
>>>>
>>>>
>>>>On 22 March 2011 22:00, Sathya Prakash <prakashagarval at gmail.com> wrote:
>>>>
>>>>Hi Mike,
>>>>>
>>>>>If Drools guvnor is password protected then package url can not be accessed 
>>>>>directly.
>>>>>
>>>>>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.
>>>>>
>>>>>regards,
>>>>>sathya prakash
>>>>>
>>>>>
>>>>>On Wed, Mar 23, 2011 at 1:55 AM, Michael Anstis <michael.anstis at gmail.com> 
>>>>>wrote:
>>>>>
>>>>>I'm not familiar with JBoss ESB Drools integration.
>>>>>>
>>>>>>However, AFAIK, the file is not password protected but the (Guvnor hosting) 
>>>>>>web-server authenticates HTTP requests to "close" access.
>>>>>>
>>>>>>Can you please explain more what you mean by restricting access to a particular 
>>>>>>server?
>>>>>>
>>>>>>Thanks,
>>>>>>
>>>>>>Mike 
>>>>>>
>>>>>>
>>>>>>
>>>>>>On 22 March 2011 21:39, Sathya Prakash <prakashagarval at gmail.com> wrote:
>>>>>>
>>>>>>Hi,
>>>>>>>
>>>>>>>If package file is password protected, then how to restrict to particular 
>>>>>>>server. I am using JBOSS ESB drools integration.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>Regards,
>>>>>>>Sathya Prakash.
>>>>>>>
>>>>>>>
>>>>>>>2011/3/23 Michael Anstis <michael.anstis at gmail.com>
>>>>>>>
>>>>>>>The repository used by Guvnor is not a database but an implementation of JCR 
>>>>>>>(Content Repository for Java Technology).
>>>>>>>>
>>>>>>>>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.
>>>>>>>>
>>>>>>>>With kind regards,
>>>>>>>>
>>>>>>>>Mike
>>>>>>>>
>>>>>>>>
>>>>>>>>2011/3/22 Suk Fung <suk_f at yahoo.com>
>>>>>>>>
>>>>>>>>All,
>>>>>>>>>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?
>>>>>>>>>
>>>>>>>>>Thanks for any information in advance.
>>>>>>>>>
>>>>>>>>>Suk
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>_______________________________________________
>>>>>>>>>rules-users mailing list
>>>>>>>>>rules-users at lists.jboss.org
>>>>>>>>>https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>_______________________________________________
>>>>>>>>rules-users mailing list
>>>>>>>>rules-users at lists.jboss.org
>>>>>>>>https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>-- 
>>>>>>>
>>>>>>>Cheers,
>>>>>>>Sathya Prakash.
>>>>>>>సత్య ప్రకాష్.
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>-- 
>>>>>
>>>>>Cheers,
>>>>>Sathya Prakash.
>>>>>సత్య ప్రకాష్.
>>>>>
>>>>
>>>
>>>
>>>-- 
>>>
>>>Cheers,
>>>Sathya Prakash.
>>>సత్య ప్రకాష్.
>>>
>>
>>
>>_______________________________________________
>>rules-users mailing list
>>rules-users at lists.jboss.org
>>https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
>-- 
>
>Cheers,
>Sathya Prakash.
>సత్య ప్రకాష్.
>
> _______________________________________________ rules-users mailing list 
>rules-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users 
>

>
> _______________________________________________ rules-users mailing list 
>rules-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users 
>



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110322/da6c2e33/attachment.html 


More information about the rules-users mailing list