[JBoss JIRA] Commented: (JBRULES-46) Prolog Style Query Based Backward Chaining
by Michael Anstis (JIRA)
[ https://issues.jboss.org/browse/JBRULES-46?page=com.atlassian.jira.plugin... ]
Michael Anstis commented on JBRULES-46:
---------------------------------------
Won't this achieve what you need:-
rule "UpdateCounter"
salience 10000
when
$c : Counter( .... , $value : value)
$o : BusinessObject( $something : something, .... )
then
$o.setValue($something + $value);
update($o);
end
rule "CheckCounter"
when
$o : BusinessObject(value > 1234)
then
Alerts.addNew(...);
end
> Prolog Style Query Based Backward Chaining
> ------------------------------------------
>
> Key: JBRULES-46
> URL: https://issues.jboss.org/browse/JBRULES-46
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Mark Proctor
> Assignee: Mark Proctor
>
> Forward Chaining means that facts are asserted and propgated forward throughout the network, during forward propagation matching takes place which results in rules being fired - the rules are event based, in that they are fired in response to changed in the working memory.
> Backward chaining is query based. Rules attempt to fire first but do not have the necessary matched facts, so facts are pulled in from an external source.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Commented: (JBRULES-46) Prolog Style Query Based Backward Chaining
by Mark Proctor (JIRA)
[ https://issues.jboss.org/browse/JBRULES-46?page=com.atlassian.jira.plugin... ]
Mark Proctor commented on JBRULES-46:
-------------------------------------
"Other vendors has a sequential mode in which facts updates in first rules are taken in account for rules triggered after (BlazeAdvisor does this, not sure about JRules).
Anyway, it could be an interresting feature.
Drools sequential mode collects all t-uples, then apply rules. This prevents 'first' rules to do some updates that could change one t-uple value or even trigger (or not trigger) other rules that comes after in the rule sequence."
Currently our sequential mode works as single pass, but it has no inference as rete join memory is turned off. So it produces all the conflict set more efficiently, and then it uses rule order for the execution order of the conflict set. However changes in the current rule are not recognised by the later rules. That is planned though by "partinioning" the sequential engine around the modify statements. The advantage to this is we keep a single algorithm that is just configured slightly to provide different behaviours. Rather than two competely different engines.
> Prolog Style Query Based Backward Chaining
> ------------------------------------------
>
> Key: JBRULES-46
> URL: https://issues.jboss.org/browse/JBRULES-46
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Mark Proctor
> Assignee: Mark Proctor
>
> Forward Chaining means that facts are asserted and propgated forward throughout the network, during forward propagation matching takes place which results in rules being fired - the rules are event based, in that they are fired in response to changed in the working memory.
> Backward chaining is query based. Rules attempt to fire first but do not have the necessary matched facts, so facts are pulled in from an external source.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-9324) Fix race condition between Infinispan channel creation and JGroups ChannelFactory availability
by Paul Ferraro (JIRA)
Fix race condition between Infinispan channel creation and JGroups ChannelFactory availability
----------------------------------------------------------------------------------------------
Key: JBAS-9324
URL: https://issues.jboss.org/browse/JBAS-9324
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Fix For: 7.0.0.Beta3
Currently, the EmbeddedCacheManagerService depends on the ChannelFactoryRegistry. Consequently, the referenced ChannelFactory may not yet exist when the cache manager starts. Instead, the dependency should be on the specific ChannelFactory, although the ChannelFactoryRegistry dependency may need to persist, to obtain the default stack if none was specified.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-9042) Smoke tests hang in management request handling code
by Brian Stansberry (JIRA)
Smoke tests hang in management request handling code
----------------------------------------------------
Key: JBAS-9042
URL: https://issues.jboss.org/browse/JBAS-9042
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Domain Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Priority: Blocker
I'm seeing hangs in the smoke tests where threads are all blocking in the management request handling code. Thread dump attached.
One thing that stands out is the large number of threads in this state:
"pool-1-thread-7" prio=5 tid=102be5800 nid=0x10f377000 in Object.wait() [10f376000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <7f5235be8> (a java.lang.Object)
at java.lang.Object.wait(Object.java:485)
at org.jboss.as.protocol.Pipe$1.read(Pipe.java:75)
- locked <7f5235be8> (a java.lang.Object)
at org.jboss.as.protocol.ConnectionImpl$MessageInputStream.close(ConnectionImpl.java:302)
at org.jboss.as.protocol.StreamUtils.safeClose(StreamUtils.java:294)
at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:65)
at org.jboss.as.protocol.ConnectionImpl.safeHandleMessage(ConnectionImpl.java:254)
at org.jboss.as.protocol.ConnectionImpl$1$1.run(ConnectionImpl.java:213)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
I don't see how there would be that many concurrent requests going on; what I *suspect* is happening is those threads are handling requests from different test cases and are hanging. Eventually the pool is exhausted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-9236) Resource injection ends up searching for wrong target method when a resource type is specified
by jaikiran pai (JIRA)
Resource injection ends up searching for wrong target method when a resource type is specified
----------------------------------------------------------------------------------------------
Key: JBAS-9236
URL: https://issues.jboss.org/browse/JBAS-9236
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: EE
Affects Versions: 7.0.0.Beta2
Reporter: jaikiran pai
Assignee: jaikiran pai
Fix For: 7.0.0.Beta3
Consider either of the following examples:
{code}
@Resource (type=ChildClass.class)
public void setSomeValue(ParentClass b);
{code}
@EJB (beanInterface=SpecificBeanClassImpl.class)
public void setSomeEjb(ParentClass b);
{code}
The resource injection framework ends up searching for an (incorrect) method whose paramtype is ChildClass/SpecificBeanImplClass and doesn't find such a method. As a result, the deployment fails with exception like:
{code}
Caused by: java.lang.IllegalArgumentException: Invalid injection - Method void setSomeEjb(SpecificBeanImplClass) not found on class blah.blah.SomeClass
at org.jboss.as.ee.component.ResourceInjection$Factory.create(ResourceInjection.java:88)
at org.jboss.as.ee.component.JndiInjectionPointStore.applyInjections(JndiInjectionPointStore.java:98)
at org.jboss.as.ee.component.ComponentInstallProcessor.deployComponent(ComponentInstallProcessor.java:206)
at org.jboss.as.ee.component.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:67)
... 5 more
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months