[
https://jira.jboss.org/jira/browse/JBIDE-5873?page=com.atlassian.jira.plu...
]
Viacheslav Kabanovich commented on JBIDE-5873:
----------------------------------------------
Bill, this case is treated correctly in JBoss ESB 1.2 editor used for files with
jbossesb-1.2.0.xsd (see screenshot NotifyEmail_In_ESB1_2Editor.jpg).
If you use ESB 4.7, then you can migrate your config to 1.2.0 schema just by replacing all
jbossesb-1.1.0.xsd with jbossesb-1.2.0.xsd.
If you use ESB 4.6, you still can try the config migrating as workaround because new
schema is backward compatible for most features.
Max, yes, now implementation for a 'generic' target expects any child nodes but
not attributes. For 1.2 editor, specific targets are implemented according to Programmers
Guide 4.7. I think we can do the same for ESB 4.6, that is for 1.1.0 schema editor. And
fix 'generic' target to read any attributes.
Attributes in Notifier target tag removed (required for NotifyEmail)
--------------------------------------------------------------------
Key: JBIDE-5873
URL:
https://jira.jboss.org/jira/browse/JBIDE-5873
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: XML Structured Editor
Affects Versions: 3.1.0.CR1
Environment: JBoss ESB 4.5, tried on both the CR1 version of tools and the
current trunk build.
Reporter: Bill Matson
Assignee: Viacheslav Kabanovich
Priority: Critical
Fix For: 3.1.1
Attachments: NotifyEmail_In_ESB1_2Editor.jpg
The NotifyEmail notification target takes much of its configuration from attributes on
the <target> tag. The 3.1 version of the tools appears to not support attributes on
the <target> tag inside of a notifier action. They can be entered in the XML by
hand, however they do not appear to be maintained when changes are made using the
graphical editor.
Since the NotifySqlTable is also configured via attributes on the <target> tag, it
probably exhibits the same behavior (I haven't tested this one)....
Sample one-action ESB service below. If you do the following you'll see the
behavior:
1) Copy and paste ESB config into the XML editor.
2) Switch to the Tree view and change pretty much anything (i.e. change the name of the
action from "TestNotifier" to anything else) and save
3) Switch back to XML view and that attributes on the <target> tag are gone.
Sample ESB:
<?xml version="1.0"?>
<jbossesb parameterReloadSecs="5"
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trun...
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...
<services>
<service category="TestCategory" description="Test"
invmScope="GLOBAL" name="TestService">
<actions>
<action class="org.jboss.soa.esb.actions.Notifier"
name="TestNotifier">
<property name="destinations">
<NotificationList type="OK">
<target class="NotifyEmail" sendTo="someone(a)somewhere.com"
subject="test" from="other(a)somewhere.com" />
</NotificationList>
</property>
</action>
</actions>
</service>
</services>
</jbossesb>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira