[JBoss JIRA] (WFLY-2164) Read only App, Module and Comp Naming Contexts
by Eduardo Martins (JIRA)
[ https://issues.jboss.org/browse/WFLY-2164?page=com.atlassian.jira.plugin.... ]
Eduardo Martins updated WFLY-2164:
----------------------------------
Description:
Java EE 7 (and its TCK) mandates that java:app, java:module and java:comp contexts to be read only.
was:Wildfly allows EE components to modify their naming environment (and every other naming context too), and such behaviour may be undesirable, thus the EE subsystem configuration should include an attribute to globally turn on or off such functionality.
> Read only App, Module and Comp Naming Contexts
> ----------------------------------------------
>
> Key: WFLY-2164
> URL: https://issues.jboss.org/browse/WFLY-2164
> Project: WildFly
> Issue Type: Feature Request
> Components: EE, Naming
> Reporter: Eduardo Martins
> Assignee: Eduardo Martins
>
> Java EE 7 (and its TCK) mandates that java:app, java:module and java:comp contexts to be read only.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (DROOLS-280) lock-on-active broken
by Anthony Patricio (JIRA)
[ https://issues.jboss.org/browse/DROOLS-280?page=com.atlassian.jira.plugin... ]
Anthony Patricio updated DROOLS-280:
------------------------------------
Description:
Hi,
lock-on-active is not working as expected.
I seems to work as activation-group.
Works fine with 5.x
Fails with 6.0.0 CR3 and CR4
Fact:
{code:java}
public class Poc implements Serializable {
private static final long serialVersionUID = 1L;
private long id = 1;
private boolean test1 = false;
private boolean test2 = false;
private int foundTest = 0;
...
}
{code}
Rule:
{code:java}
rule "test1"
lock-on-active
dialect "mvel"
when
$poc:Poc( isTest1() )
then
System.out.println("test1 found");
modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
end
rule "test2"
lock-on-active
dialect "mvel"
when
$poc:Poc( isTest2() )
then
System.out.println("test2 found");
modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
end
{code}
Test:
{code:java}
@Test
public void lockOnActiveTest() {
// Get the Knowledge base from the DRL file
KieSession kSession = getSF();
Poc poc = new Poc();
poc.setTest1(true);
poc.setTest2(true);
kSession.insert(poc);
// Fire the rules
kSession.fireAllRules();
assertTrue("broken",poc.getFoundTest()==2);
// Clean up
kSession.dispose();
}
{code}
was:
Hi,
lock-on-active is not working as expected.
I seems to work as activation-group.
Works fine with 5.x
Fails with 6.0.0 CR3 and CR4
Fact:
public class Poc implements Serializable {
private static final long serialVersionUID = 1L;
private long id = 1;
private boolean test1 = false;
private boolean test2 = false;
private int foundTest = 0;
...
}
Rule:
rule "test1"
lock-on-active
dialect "mvel"
when
$poc:Poc( isTest1() )
then
System.out.println("test1 found");
modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
end
rule "test2"
lock-on-active
dialect "mvel"
when
$poc:Poc( isTest2() )
then
System.out.println("test2 found");
modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
end
Test:
@Test
public void lockOnActiveTest() {
// Get the Knowledge base from the DRL file
KieSession kSession = getSF();
Poc poc = new Poc();
poc.setTest1(true);
poc.setTest2(true);
kSession.insert(poc);
// Fire the rules
kSession.fireAllRules();
assertTrue("broken",poc.getFoundTest()==2);
// Clean up
kSession.dispose();
}
> lock-on-active broken
> ---------------------
>
> Key: DROOLS-280
> URL: https://issues.jboss.org/browse/DROOLS-280
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 6.0.0.CR4
> Reporter: Anthony Patricio
>
> Hi,
> lock-on-active is not working as expected.
> I seems to work as activation-group.
> Works fine with 5.x
> Fails with 6.0.0 CR3 and CR4
> Fact:
> {code:java}
> public class Poc implements Serializable {
> private static final long serialVersionUID = 1L;
> private long id = 1;
> private boolean test1 = false;
> private boolean test2 = false;
> private int foundTest = 0;
> ...
> }
> {code}
> Rule:
> {code:java}
> rule "test1"
> lock-on-active
> dialect "mvel"
> when
> $poc:Poc( isTest1() )
> then
> System.out.println("test1 found");
> modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
> end
> rule "test2"
> lock-on-active
> dialect "mvel"
> when
> $poc:Poc( isTest2() )
> then
> System.out.println("test2 found");
> modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
> end
> {code}
> Test:
> {code:java}
> @Test
> public void lockOnActiveTest() {
> // Get the Knowledge base from the DRL file
> KieSession kSession = getSF();
>
> Poc poc = new Poc();
> poc.setTest1(true);
> poc.setTest2(true);
>
> kSession.insert(poc);
>
> // Fire the rules
> kSession.fireAllRules();
>
> assertTrue("broken",poc.getFoundTest()==2);
>
> // Clean up
> kSession.dispose();
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (WFLY-2164) Read only App, Module and Comp Naming Contexts
by Eduardo Martins (JIRA)
[ https://issues.jboss.org/browse/WFLY-2164?page=com.atlassian.jira.plugin.... ]
Eduardo Martins updated WFLY-2164:
----------------------------------
Summary: Read only App, Module and Comp Naming Contexts (was: EE subsystem config to define if EE naming contexts are modifiable by EE components)
> Read only App, Module and Comp Naming Contexts
> ----------------------------------------------
>
> Key: WFLY-2164
> URL: https://issues.jboss.org/browse/WFLY-2164
> Project: WildFly
> Issue Type: Feature Request
> Components: EE, Naming
> Reporter: Eduardo Martins
> Assignee: Eduardo Martins
>
> Wildfly allows EE components to modify their naming environment (and every other naming context too), and such behaviour may be undesirable, thus the EE subsystem configuration should include an attribute to globally turn on or off such functionality.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (DROOLS-280) lock-on-active broken
by Anthony Patricio (JIRA)
[ https://issues.jboss.org/browse/DROOLS-280?page=com.atlassian.jira.plugin... ]
Anthony Patricio updated DROOLS-280:
------------------------------------
Affects Version/s: 6.0.0.CR4
> lock-on-active broken
> ---------------------
>
> Key: DROOLS-280
> URL: https://issues.jboss.org/browse/DROOLS-280
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 6.0.0.CR4
> Reporter: Anthony Patricio
>
> Hi,
> lock-on-active is not working as expected.
> I seems to work as activation-group.
> Works fine with 5.x
> Fails with 6.0.0 CR3 and CR4
> Fact:
> public class Poc implements Serializable {
> private static final long serialVersionUID = 1L;
> private long id = 1;
> private boolean test1 = false;
> private boolean test2 = false;
> private int foundTest = 0;
> ...
> }
> Rule:
> rule "test1"
> lock-on-active
> dialect "mvel"
> when
> $poc:Poc( isTest1() )
> then
> System.out.println("test1 found");
> modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
> end
> rule "test2"
> lock-on-active
> dialect "mvel"
> when
> $poc:Poc( isTest2() )
> then
> System.out.println("test2 found");
> modify($poc) { setFoundTest($poc.getFoundTest() + 1) }
> end
> Test:
> @Test
> public void lockOnActiveTest() {
> // Get the Knowledge base from the DRL file
> KieSession kSession = getSF();
>
> Poc poc = new Poc();
> poc.setTest1(true);
> poc.setTest2(true);
>
> kSession.insert(poc);
>
> // Fire the rules
> kSession.fireAllRules();
>
> assertTrue("broken",poc.getFoundTest()==2);
>
> // Clean up
> kSession.dispose();
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months