Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-5873

Attributes in Notifier target tag removed (required for NotifyEmail)

    XMLWordPrintable

Details

    Description

      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/schemas/xml/jbossesb-1.1.0.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.1.0.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.1.0.xsd">
      <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@somewhere.com"
      subject="test" from="other@somewhere.com" />
      </NotificationList>
      </property>
      </action>
      </actions>
      </service>
      </services>
      </jbossesb>

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            matsonb_jira Bill Matson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: