[rules-users] Re: Using the drools as the backend engine for a service

2008-05-14 Thread Prem Kumar L


---BeginMessage---

Hi Jaivasanth,
Were you successful in exposing Drools as a webservice ?  If so, can you 
please share the details with me?  I am starting off this effort too. 
Any help would be much appreciated.

Thanks
Prem


---End Message---
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] enquiry on drools webservice

2008-05-14 Thread Prem Kumar L


---BeginMessage---

Hi Alan,
Sometime ago you tried to expose a drools rule as a webservice using 
axis/tomcat. Were you successful in this effort? If so, could you please 
share the .aar file with me. I am trying to setup a similar webservice. 
Any pointers would be much appreciated.

Thanks
Prem


---End Message---
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools as OSGI bundle

2008-05-14 Thread ekke

just seen that SpringSource published Drools as OSGI bundles
http://www.springsource.com/repository/app/search?query=drools
http://www.springsource.com/repository/app/search?query=drools 
- I'll create a request to get 4.0.7 - they published 4.0.4
next two weeks I'll try the bundles
ekke
-- 
View this message in context: 
http://www.nabble.com/Drools-as-OSGI-bundle-tp17228699p17228699.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools as OSGI bundle

2008-05-14 Thread Marcus Ilgner
Hi,

On Wed, May 14, 2008 at 1:12 PM, ekke [EMAIL PROTECTED] wrote:

  just seen that SpringSource published Drools as OSGI bundles
  http://www.springsource.com/repository/app/search?query=drools
  http://www.springsource.com/repository/app/search?query=drools
  - I'll create a request to get 4.0.7 - they published 4.0.4
  next two weeks I'll try the bundles
  ekke
  --

thanks for the hint! It's especially interesting that they apparently
managed to deploy core, compiler and JSR94 interface in separate
packages. Have you tried these packages already? I'd assume that one
has to specify Eclipse-RegisterBuddy: com.springsource.org.drools or
some equivalent so Drools can find the classes from the bundles that
are using it?
I tried to package Drools in OSGi bundles myself some weeks ago but
stumbled over some class loader issues after dividing the components
into their own bundles.
If SpringSource managed to build working manifest files, it would be
great if the Drools team would incorporate these into the
JAR-distribution.

Best regards
Marcus
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools as OSGI bundle

2008-05-14 Thread ekke

marcus,
at the moment I'm just testing eclipse Riena for remote osgi services,
the next step would be to make my whole application running.
...I think in 2 weeks or so I can test the drools bundles -
I'll let the list know how all works and perhaps publish a sample

have you seen - they also figured out the dependencies to MVEL bundle -

if this enterprise bundle repository works well - would be great benefit -
there are always hours of work to see where are the dependencies, what
to export and import etc...

ekke
(btw: I'm building an ERP solution as eclipse rich client + osgi server
using jBPM for business processes, drools as rules engine and
hibernate/jpa for persistence - core of the application will become
open source later this year)

Marcus Ilgner wrote:
 
 Hi,
 
 On Wed, May 14, 2008 at 1:12 PM, ekke [EMAIL PROTECTED] wrote:

  just seen that SpringSource published Drools as OSGI bundles
  http://www.springsource.com/repository/app/search?query=drools
  http://www.springsource.com/repository/app/search?query=drools
  - I'll create a request to get 4.0.7 - they published 4.0.4
  next two weeks I'll try the bundles
  ekke
  --
 
 thanks for the hint! It's especially interesting that they apparently
 managed to deploy core, compiler and JSR94 interface in separate
 packages. Have you tried these packages already? I'd assume that one
 has to specify Eclipse-RegisterBuddy: com.springsource.org.drools or
 some equivalent so Drools can find the classes from the bundles that
 are using it?
 I tried to package Drools in OSGi bundles myself some weeks ago but
 stumbled over some class loader issues after dividing the components
 into their own bundles.
 If SpringSource managed to build working manifest files, it would be
 great if the Drools team would incorporate these into the
 JAR-distribution.
 
 Best regards
 Marcus
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Drools-as-OSGI-bundle-tp17228699p17230066.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] exposing drools as a webservice

2008-05-14 Thread Prem Kumar L

Hi,
I am trying to setup a basic webservice that exposes a rule running on 
drools. In this regard I came across this blogpost by Mark Proctor a 
while ago.

http://blog.athico.com/2007/05/working-with-jboss-rules-and-web.html

Incase someone has a working sample of such an example, it would be 
great if you could share it with me. IF this is not possible, can you 
point me to a resource where I could access such a sample. I am new to 
the SOA world, so kindly bare with my if this seems to be a 
straightforward question. Any pointers would be much appreciated.

Thanks
Prem

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [mailinglist] Re: [rules-users] Question on or rule syntax

2008-05-14 Thread Brett M. Bergquist
This was cut'n'pasted from the documentation, so the documentation needs 
fixing.  I'll open a Jira issue on it. 


Thanks.

Edson Tirelli wrote:


   The single binding for multiple OR'ed patterns is a special case 
and it only supports infix OR:


pensioner : (Person( sex == f, age  60 )  or Person( sex == m, 
age  65 ) )



If the documentation is different, it requires fixing.

[]s
Edson


2008/5/13 Brett M. Bergquist [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


If I use this syntax for an or with binding:

pensioner : (or Person( sex == f, age  60 )  
Person( sex == m, age  65 ) )


I get a compile error.  Is this syntax supported?

I can successfully use this syntax:

(or pensioner : Person( sex == f, age  60 )   pensioner :
Person( sex == m, age  65 ) )

which works okay but I was wondering if the documentation or
implementation is incorrect.




___
rules-users mailing list
rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com http://www.jboss.com


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Questions on building from source of 4.0.7

2008-05-14 Thread Brett M. Bergquist
What is the correct way to get the source for the 4.0.7 release.  I 
followed the directions in the documentation and used the SVN repository:


http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/

but is there some release tag that I should be using to ensure that the source 
that I retrieve matches the 4.0.7 bin release?

A second question, when I build from this source, I get 3 tests failing.  I can build 
with a -Dmaven.skip.test but should there be tests failing?




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Salience not working

2008-05-14 Thread sridhar123

I changed variable names in the last minute to make more sense, the actual
eval statement is as following:

 

   eval(((Boolean) $discard).booleanValue() == false)

 

I do have $discard bound in my rule, you still think above statement throw
compilation error. I don’t get any compilation errors. However at run time
it is not getting the right value (well.. what I think is a right value J )

 

-sridhar



sridhar123 wrote:
 
 
 Here is my drl file: It seems LHS of all rules executed first irrespective
 of salience or focus. What am i doing wrong? Appreciate your help.
 
 rule Eval Window
 salience 10
 agenda-group Eval Window
 //activation-group Eval Window
 auto-focus true
   when
   $data : AirTravelPolicyData($reqDep : fareRequest.requestedDeparture, 
   $reqRet : fareRequest.requestedReturn,
   $itr : itinerary,
   $evalWindow : policySettings.evaluationWindow,
   $depart : departureFlight.departure,
   $retrn : returnFlight.departure
   )
   
   eval ((DateUtil.subtractHours((Date)$reqDep,
 ((Integer)$evalWindow).intValue()))
   
 .before((Date)$depart))
then
 // modify block sets $itr.discardable to true 
  modify($itr) {
   setAsDiscardable()
  }
 // update ($data);
  drools.setFocus(Eval carrier);
 end
 
 
 rule Eval carrier
  salience 5
  agenda-group Eval carrier
 // activation-group Eval carrier
   when
   $data : AirTravelPolicyData($prefCarrier :
 policySettings.preferredCarrier, 
   $carrier : departureFlight.carrier,
   $discard :  itinerary.discarded
   )
 //   Eval Window rule changed discarded flag to true so this condition
 should fail but it dose not ???   
   eval(((Boolean)$itr).booleanValue() == false)
  then
   // But.. when i print out the discard flag here it show as true.. In 
 that
 case how eval condiation is passed?
 System.out.println(*Current Itr in Eval carrier:  +
 $discard );
   
 end
 
 
 
 
 Edson Tirelli-3 wrote:
 
   This is wrong:
 
 $data : MyFact( $anotherObj )
 
Is the parser accepting it without any error If so, it is a bug.
I can't even imagine what is the parsing result for such expression.
 
This is also wrong:
 
   eval ($anotherObj.isDiscard() == true)
 
There is no previous binding for $anotherObj. Only possible scenario
 is
 you defined it as a global.
So, whatever you are doing and seeing, I have no idea how you can
 execute
 rules.
 
Can you show us the whole DRL file you are using? Can you show the
 snippet of code you are using to execute it?
 
[]s
Edson
 
 
 
 
 
 2008/5/13 sridhar123 [EMAIL PROTECTED]:
 

 It still dosen't work as desired. Here is my code:

  rule A
 Salience 10
 when
  $data : MyFact( $anotherObj )
 then
   modify(  $anotherObj ) {
  setDiscard(true)
   }

 rule B
 Salience 5
 when
  eval ($anotherObj.isDiscard() == true)
 then
  ...

 It seems, all When conditions are executed first irrespective of then

 I also tried with agenda group and having default focus on Rule A and in
 Then section setting focus to Rule B - still the condition doesnt match.
 When i inspect fact - after Rule A is executed, i see my flag is set to
 true
 - but not visible to Rule B.

 Do i need to write seperate drl files. Also, i am using eclipse 3.3 and
 ruleflow seems buggy i can not add any rule flow groups. do i need to
 use
 3.2. I am using Drools 4.0.4

 thank you





 Alessandro Lazarotti wrote:
 
 
 
 
 
 
 
  rule A
 Salience 10
   when
  $anotherObject: MyFact(discard != true)
   then
  modify($anotherObj){
   setDiscard(true)
  }
 
 
  Modify update your fact in the current working memory.
 
 
 
  sridhar123 escreveu:
 
 
  It means, I can not fire all rules at once, I need to groups and
 change
  focus in my java code?
 
  I couldn't find any docs or examples to properly use Salience - could
 you
  please share an example (if you have one)
 
  thx
 
 
 
  Alessandro Lazarotti wrote:
 
 
  You need upate() the fact $anotherObj in Working Memory.
 
  sridhar123 escreveu:
 
 
rule A
  Salience 10
  when
   $data : MyFact( $anotherObj )
  then
$anotherObj.setDiscard(true)
 
  rule B
  Salience 5
  when
eval ($anotherObj.isDiscard() == true)
  then
 ...
 
 
  I am trying to get Rule A executed before Rule B. So when condition in
  Rule
  B is valid. However i dont see Saliene has any effect. How else i
 can
  do
  the above?
 
  thank you
 
 
 
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 
 
 
 
 
 
 
 
  ___
 

Re: [rules-users] Drools as OSGI bundle

2008-05-14 Thread Mark Proctor

ekke wrote:

just seen that SpringSource published Drools as OSGI bundles
http://www.springsource.com/repository/app/search?query=drools
http://www.springsource.com/repository/app/search?query=drools 
- I'll create a request to get 4.0.7 - they published 4.0.4

next two weeks I'll try the bundles
  
If you follow dev, you can see we have similar plans for Drools already, 
along with a big api refactoring to better support service type 
frameworks like OSGi.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg00757.html

ekke
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Re: Compilation failed on BRMS with multi-consequence DSL phrase

2008-05-14 Thread Benjamin J McMillan
Yet another follow up to below,

On Tue, 2008-05-13 at 12:16 -0400, Benjamin J McMillan wrote:
 On Tue, 2008-05-13 at 12:05 -0400, Benjamin J McMillan wrote:
  I have a single DSL phrase that performs 2 actions, delimited by a
  semicolon. This compiles and works fine under Eclipse. However, when I
  uploaded the same DSL to the BRMS and rewrote the same rule that uses
  this phrase, rule validation failed:

 So, it seems this only affects the BRMS' guided rule editor.

I apologize for not narrowing this down further before posting last
time. I did some more testing and discovered that the issue was not
multiple actions but rather the way we were using modify inside the
DSL (still, using the guided editor). 

Apparently, the guided editor's validator only accepts MVEL (bean) style
assignments within a modify statement (ie, location = foo -
setLocation(foo)) AND NOT either a setter or any other public method
(ie, setLocation(foo) or addLocation(foo,bar)).

The text based (DSL assisted) editor successfully validates the java
style DSL phrase as used in the same rule. 

My initial post includes the DSL phrase in question.

Thanks,
Ben

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [mailinglist] Re: [rules-users] Questions on building from source of 4.0.7

2008-05-14 Thread Brett M. Bergquist
Thanks for getting back on the repository to use.  I want to build from 
the SVN source since I found a couple of places where an input stream is 
being created but not closed.  In my application (Glassfish JCA 
connector), the application bitches about streams still open when 
undeploying my application.  So I found the places where the streams 
were not being closed and fixed then and I would like to submit this as 
a patch.  Using the SVN source allows this to be done easily (at least 
for me).




Mark Proctor wrote:

Brett M. Bergquist wrote:
What is the correct way to get the source for the 4.0.7 release.  I 
followed the directions in the documentation and used the SVN 
repository:


http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/

http://anonsvn.labs.jboss.com/labs/jbossrules/tags/4.0.7.19894.GA/
The src zip is also available from the downloads site, so you don't 
have to checkout from that tag.


but is there some release tag that I should be using to ensure that 
the source that I retrieve matches the 4.0.7 bin release?


A second question, when I build from this source, I get 3 tests 
failing.  I can build with a -Dmaven.skip.test but should there be 
tests failing?





___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Java vs mvel dialects

2008-05-14 Thread Krishna Satya
Hi, I am trying to understand the difference in how drl rules are expressed
via the java or mvel dialects.  Looking at the drools-examples it is not
exactly clear.  I was looking at the PetStore.drl which seems to specify the
dialects for various rules using both java and mvel.  Are there any
references to examples which showcase a rule that is expressed both through
java and mvel dialects so it is clear what the differences are.  The rules
in the PetStore.drl which specify java or mvel syntactically seem to look
the same.

Also, are there any general suggestions as to when a rule author should use
the java or the mvel dialect.

Thanks.
- K
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Java vs mvel dialects

2008-05-14 Thread Edson Tirelli
   Krishna,

   The dialect configuration affects only semantic code blocks. I.e.,
consequences, eval() blocks, etc.
   They are designed to be interchangeable. That is why the examples have
rules using each of the dialects.

   It is mostly a matter of taste, but MVEL is a script language and as so
has syntax sugar for nested object access, collections, maps, arrays etc...
nothing more than that. Also, MVEL supports java syntax anyway. For
instance, assuming you have a class:

   Person {
 MapString, Address addresses;
 // gets/sets
}

   The following consequence should run just fine, both in java and MVEL:

then
$person.getAddresses().get(home).setStreetName(my street);
end

   Although, MVEL allows you to use a cleaner syntax:

then
$person.addresses[home].streetName = my street;
end

   It is mostly a matter of taste.

   []s
   Edson

2008/5/14 Krishna Satya [EMAIL PROTECTED]:

 Hi, I am trying to understand the difference in how drl rules are expressed
 via the java or mvel dialects.  Looking at the drools-examples it is not
 exactly clear.  I was looking at the PetStore.drl which seems to specify the
 dialects for various rules using both java and mvel.  Are there any
 references to examples which showcase a rule that is expressed both through
 java and mvel dialects so it is clear what the differences are.  The rules
 in the PetStore.drl which specify java or mvel syntactically seem to look
 the same.

 Also, are there any general suggestions as to when a rule author should use
 the java or the mvel dialect.

 Thanks.
 - K


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Questions on building from source of 4.0.7

2008-05-14 Thread Bagwell, Allen F
I tried to submit this question earlier and it looks as though it didn't make 
it through.

I attempted to build 4.0.7 from the src zip file available on the web site.

It immediately bombed with a Maven fatal error saying the drools-eclipse3.2 pom 
file didn't exist. And it turns out the directory it's supposed to be in isn't 
there.

I was hoping there was a workaround to this, but it looks like the src zip for 
the time being is missing critical stuff.

-A

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Wednesday, May 14, 2008 8:55 AM
To: Rules Users List
Subject: Re: [rules-users] Questions on building from source of 4.0.7

Brett M. Bergquist wrote:
 What is the correct way to get the source for the 4.0.7 release.  I
 followed the directions in the documentation and used the SVN repository:

 http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/
http://anonsvn.labs.jboss.com/labs/jbossrules/tags/4.0.7.19894.GA/
The src zip is also available from the downloads site, so you don't have to 
checkout from that tag.

 but is there some release tag that I should be using to ensure that
 the source that I retrieve matches the 4.0.7 bin release?

 A second question, when I build from this source, I get 3 tests
 failing.  I can build with a -Dmaven.skip.test but should there be
 tests failing?




 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Re: Compilation failed on BRMS with multi-consequence DSL phrase

2008-05-14 Thread Benjamin J McMillan
Sorry for all the emails. We figured it out. 

It turns out that the guided editor in the BRMS forces the MVEL dialect
by default. However, if you explicitly set the dialect to java in the
options, it will work (validate). This allows us to call functions in
the DSL phrases rather than being limited to getters/setters via MVEL.

Cheers,
(a much happier) Ben

On Wed, 2008-05-14 at 11:16 -0400, Benjamin J McMillan wrote:
 On Tue, 2008-05-13 at 12:16 -0400, Benjamin J McMillan wrote:
  So, it seems this only affects the BRMS' guided rule editor.

 Apparently, the guided editor's validator only accepts MVEL (bean) style

 The text based (DSL assisted) editor successfully validates the java
 style DSL phrase as used in the same rule. 



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Multithreading Rulebase Parsing Threadsafe

2008-05-14 Thread Barry K

We have an application with 2 rules engines and we load the rules on startup.  
Is creation of a rulebase threadsafe?  
Can I load both rulebases using the code below concurrently in 4.07 ?

I encountered issues multithreading this in 4.01 but in prototyping for our
4.07 upgrade I have not encountered the same issues.

PackageBuilder builder = new PackageBuilder(pkgBuilderCfg); 
builder.addPackageFromDrl( new StringReader(ruleset) );
RuleBase ruleBase = RuleBaseFactory.newRuleBase();

Thanks
Barry


-- 
View this message in context: 
http://www.nabble.com/Multithreading-Rulebase-Parsing-Threadsafe-tp17239987p17239987.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] BRMS Security in Websphere 6.1

2008-05-14 Thread Vikas Phonsa
Hi Everybody,

Has anybody been able to enable BRMS security in Websphere 6.1? If I use
WSLogin I get the exception shown below.


Any ideas?

Thanks in advance.
Vikas



--Exception Stack
Trace-
  SECJ0314W: Current Java 2 Security policy reported a potential
violation of Java 2 Security Permission. Please refer to InfoCenter for
further information.

Permission:

  \C:\Program
Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar : Access
denied (java.io.FilePermission \C:\Program
Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar read)


Code:

 org.jboss.seam.init.DeploymentDescriptor  in  {file:/C:/Documents
and
Settings/vphonsa/RSAWorkspaces/MercuryMisc/.metadata/.plugins/org.eclips
e.wst.server.core/tmp0/drools-jbrmsEAR.ear/drools-jbrms.war/WEB-INF/lib/
jboss-seam-2.0.0.CR2.jar}



Stack Trace:

java.security.AccessControlException: Access denied
(java.io.FilePermission \C:\Program
Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar read)
at
java.security.AccessController.checkPermission(AccessController.java:104
)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at
com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager
.java:189)
at sun.misc.URLClassPath.check(URLClassPath.java:666)
at sun.misc.URLClassPath.checkURL(URLClassPath.java:646)
at java.net.URLClassLoader.findResource(URLClassLoader.java:755)
at
com.ibm.ws.bootstrap.ExtClassLoader.findResource(ExtClassLoader.java:448
)
at java.lang.ClassLoader.getResource(ClassLoader.java:387)
at java.lang.ClassLoader.getResource(ClassLoader.java:382)
at
java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:447)
at
com.ibm.ws.classloader.CompoundClassLoader.getResourceAsStream(CompoundC
lassLoader.java:884)
at
com.ibm.ws.classloader.ReloadableClassLoader.getResourceAsStream(Reloada
bleClassLoader.java:182)
at
com.ibm.ws.classloader.CompoundClassLoader.getResourceAsStream(CompoundC
lassLoader.java:884)
at
org.jboss.seam.init.DeploymentDescriptor.init(DeploymentDescriptor.jav
a:37)
at org.jboss.seam.Seam.getEjbDescriptor(Seam.java:51)
at org.jboss.seam.Seam.getComponentType(Seam.java:102)
at org.jboss.seam.Component.init(Component.java:227)
at org.jboss.seam.Component.init(Component.java:217)
at
org.jboss.seam.init.Initialization.addComponent(Initialization.java:949)
at
org.jboss.seam.init.Initialization.init(Initialization.java:536)
at
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java
:34)
at
com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebA
pp.java:608)
at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.
java:266)
at
com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:272)
at
com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.jav
a:88)
at
com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java
:157)
at
com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
at
com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.ja
va:608)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerI
mpl.java:333)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImp
l.java:549)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl
.java:1295)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectS
tart(DeployedApplicationImpl.java:1129)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl
.java:567)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedAppli
cationImpl.java:814)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Applica
tionMgrImpl.java:948)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(Appli
cationMgrImpl.java:2114)
at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(W
sComponentImpl.java:340)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)


Code Base Location:


[5/14/08 15:03:33:437 PDT] 0014 SecurityManag W   SECJ0314W: Current
Java 2 Security policy reported a potential violation of Java 2 Security
Permission. Please refer to InfoCenter for further information.

Permission:

  \C:\Program
Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar : Access
denied (java.io.FilePermission \C:\Program
Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar read)


Code:

 org.jboss.seam.init.DeploymentDescriptor  in  {file:/C:/Documents
and
Settings/vphonsa/RSAWorkspaces/MercuryMisc/.metadata/.plugins/org.eclips

[rules-users] JRules\Drools benchmarking...

2008-05-14 Thread mmquelo massi
Hi everybody,

I did a benchmark on Drools\Jrules.

I found out that drools is about 2,5-3 times slower than Jrules.

How comes?

The results I got are quite similar to the ones in:

http://images.google.com/imgres?imgurl=http://blogs.ilog.com/brms/wp-content/uploads/2007/10/jrules-perf-manners.pngimgrefurl=http://blogs.ilog.com/brms/category/jrules/h=516w=722sz=19hl=itstart=1um=1tbnid=YBqwC0nwaSLxwM:tbnh=100tbnw=140prev=/images%3Fq%3Dbrms%2Bbencmark%26um%3D1%26hl%3Dit

Any explanations?

Thank you.

Bye

Massi
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] JRules\Drools benchmarking...

2008-05-14 Thread sridhar123

I am trying to evaluate drools vs jrules, the link you sent doesn't have any
related info. Could you please share any of your findings. 

thank you
Sridhar 


mmquelo wrote:
 
 Hi everybody,
 
 I did a benchmark on Drools\Jrules.
 
 I found out that drools is about 2,5-3 times slower than Jrules.
 
 How comes?
 
 The results I got are quite similar to the ones in:
 
 http://images.google.com/imgres?imgurl=http://blogs.ilog.com/brms/wp-content/uploads/2007/10/jrules-perf-manners.pngimgrefurl=http://blogs.ilog.com/brms/category/jrules/h=516w=722sz=19hl=itstart=1um=1tbnid=YBqwC0nwaSLxwM:tbnh=100tbnw=140prev=/images%3Fq%3Dbrms%2Bbencmark%26um%3D1%26hl%3Dit
 
 Any explanations?
 
 Thank you.
 
 Bye
 
 Massi
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://www.nabble.com/JRules%5CDrools-benchmarking...-tp17242826p17243186.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] BRMS Security in Websphere 6.1

2008-05-14 Thread Steven Williams
Hi Vikas,

I haven't used the BRMS in WebSphere but the error you are getting should be
able to be resolved by adding

permission java.io.FilePermission
\C:\ProgramFiles\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar,
read;

in either the file:${application} or file:${jars} sections.

There are also some substitution parameters you can use so something like:

permission java.io.FilePermission
${app.installed.path}\lib\EJBCommandTarget.jar, read;

should also work.

Take a look at
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tsec_waspolicyfile.html


regards
Steve



On Thu, May 15, 2008 at 8:08 AM, Vikas Phonsa [EMAIL PROTECTED]
wrote:

 Hi Everybody,

 Has anybody been able to enable BRMS security in Websphere 6.1? If I use
 WSLogin I get the exception shown below.


 Any ideas?

 Thanks in advance.
 Vikas



 --Exception Stack
 Trace-
  SECJ0314W: Current Java 2 Security policy reported a potential
 violation of Java 2 Security Permission. Please refer to InfoCenter for
 further information.

 Permission:

  \C:\Program
 Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar : Access
 denied (java.io.FilePermission \C:\Program
 Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar read)


 Code:

 org.jboss.seam.init.DeploymentDescriptor  in  {file:/C:/Documents
 and
 Settings/vphonsa/RSAWorkspaces/MercuryMisc/.metadata/.plugins/org.eclips
 e.wst.server.core/tmp0/drools-jbrmsEAR.ear/drools-jbrms.war/WEB-INF/lib/
 jboss-seam-2.0.0.CR2.jar}



 Stack Trace:

 java.security.AccessControlException: Access denied
 (java.io.FilePermission \C:\Program
 Files\IBM\SDP70\runtimes\base_v61\lib\EJBCommandTarget.jar read)
at
 java.security.AccessController.checkPermission(AccessController.java:104
 )
at
 java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at
 com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager
 .java:189)
at sun.misc.URLClassPath.check(URLClassPath.java:666)
at sun.misc.URLClassPath.checkURL(URLClassPath.java:646)
at java.net.URLClassLoader.findResource(URLClassLoader.java:755)
at
 com.ibm.ws.bootstrap.ExtClassLoader.findResource(ExtClassLoader.java:448
 )
at java.lang.ClassLoader.getResource(ClassLoader.java:387)
at java.lang.ClassLoader.getResource(ClassLoader.java:382)
at
 java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:447)
at
 com.ibm.ws.classloader.CompoundClassLoader.getResourceAsStream(CompoundC
 lassLoader.java:884)
at
 com.ibm.ws.classloader.ReloadableClassLoader.getResourceAsStream(Reloada
 bleClassLoader.java:182)
at
 com.ibm.ws.classloader.CompoundClassLoader.getResourceAsStream(CompoundC
 lassLoader.java:884)
at
 org.jboss.seam.init.DeploymentDescriptor.init(DeploymentDescriptor.jav
 a:37)
at org.jboss.seam.Seam.getEjbDescriptor(Seam.java:51)
at org.jboss.seam.Seam.getComponentType(Seam.java:102)
at org.jboss.seam.Component.init(Component.java:227)
at org.jboss.seam.Component.init(Component.java:217)
at
 org.jboss.seam.init.Initialization.addComponent(Initialization.java:949)
at
 org.jboss.seam.init.Initialization.init(Initialization.java:536)
at
 org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java
 :34)
at
 com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebA
 pp.java:608)
at
 com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.
 java:266)
at
 com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:272)
at
 com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.jav
 a:88)
at
 com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java
 :157)
at
 com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
at
 com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.ja
 va:608)
at
 com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerI
 mpl.java:333)
at
 com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImp
 l.java:549)
at
 com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl
 .java:1295)
at
 com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectS
 tart(DeployedApplicationImpl.java:1129)
at
 com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl
 .java:567)
at
 com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedAppli
 cationImpl.java:814)
at
 com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Applica
 tionMgrImpl.java:948)
at
 com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(Appli
 cationMgrImpl.java:2114)
at
 

Re: [rules-users] JRules\Drools benchmarking...

2008-05-14 Thread Edson Tirelli
   The old recurring performance evaluation question... :)

   You know that an explanation can only be made after having looked at the
tests used in the benchmark, the actual rules used by both products,
hardware specs, etc... so, not quite sure what answer do you want?

   For instance, there are a lot of people that think exactly the contrary.
Just one example:
http://blog.athico.com/2007/08/drools-vs-jrules-performance-and-future.html

   My preferred answer is still:

In 99% of the applications, the bottleneck is IO: databases, network, etc.
So, test your use case with both products, make sure it performs well
enough, add to your analysis the products feature set, expressiveness power,
product flexibility, cost, professionals availability, support quality, etc,
and choose the one that best fits you.

   That is because I'm sure, whatever your rules are, in whatever product
you try them, they can be further optimized by having a product expert
looking into them. But what is the point?

   Cheers,
  Edson



2008/5/14 mmquelo massi [EMAIL PROTECTED]:


 Hi everybody,

 I did a benchmark on Drools\Jrules.

 I found out that drools is about 2,5-3 times slower than Jrules.

 How comes?

 The results I got are quite similar to the ones in:


 http://images.google.com/imgres?imgurl=http://blogs.ilog.com/brms/wp-content/uploads/2007/10/jrules-perf-manners.pngimgrefurl=http://blogs.ilog.com/brms/category/jrules/h=516w=722sz=19hl=itstart=1um=1tbnid=YBqwC0nwaSLxwM:tbnh=100tbnw=140prev=/images%3Fq%3Dbrms%2Bbencmark%26um%3D1%26hl%3Dit

 Any explanations?

 Thank you.

 Bye

 Massi

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users