You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2008/11/12 00:18:05 UTC

[jira] Commented: (SM-1683) Setting XML Attributes in Messages & Auto Reply to support InOut w/o calling answer()/route() in .drl files

    [ https://issues.apache.org/activemq/browse/SM-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47270#action_47270 ] 

Gert Vanthienen commented on SM-1683:
-------------------------------------

Brian,

If you were able to run 'mvn install' on these changes, you have also run the unit tests.  There is no need to create jndi.xml or servicemix.xml files, the container can be started in-memory from within the tests without any further configuration.

I can try to apply this on Thursday, but it would be awesome if you could provide a patch file for this (would make the job much easier).  

In order to do so:
- run 'svn add <name of file>' for every file you added 
- afterwards, run 'svn diff' from the servicemix-drools source folder   It's the output from the svn diff command we are interested in.

Regards,

Gert

> Setting XML Attributes in Messages & Auto Reply to support InOut w/o calling answer()/route() in .drl files
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: SM-1683
>                 URL: https://issues.apache.org/activemq/browse/SM-1683
>             Project: ServiceMix
>          Issue Type: Improvement
>          Components: servicemix-drools
>    Affects Versions: 3.2.3
>         Environment: Patch to Drools SE build 3.2.2-712210
>            Reporter: Brian Taylor
>            Assignee: Gert Vanthienen
>             Fix For: 3.2.3
>
>         Attachments: AutoReply.drl, DroolsComponentTest.java, DroolsEndpoint.java, DroolsExecutionContext.java, Exchange.java, JbiHelper.java, Message.java, XPathAttrMod-StringValue.drl, XPathAttrMod-XPathAttr.drl
>
>
> Wasn't able to test because I couldn't get a JBI instance to initialize (jbi.ini()) in the DroolsComponentTest.
> XML Attribute updating ability:
> Message.java:
> +Added setAttributeWithValue() & setAttributeWithAttribute()
> Auto Reply:
> DroolsEndpoint.java:
> +Added feature to drools()
> DroolsExecutionContext.java
> +Added answer() as wrapper to JbiHelper to support Auto Reply
> Improve Consistency:
> Exchange.java:
> +Added IN_MESSAGE & OUT_MESSAGE
> JbiHelper.java:
> +Used Exchange.IN_MESSAGE & Exchange.OUT_MESSAGE
> +Added JBI_HELPER_KEY
> Testing:
> DroolsComponentTest.java
> +Added testAutoReply(), testModifyXMLWithAValue(), testModifyXMLWithAnAttribute()
> AutoReply.drl, XPathAttrMod-StringValue.drl, XPathAttrMod-XPathAttr.drl

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.