Bug 777930 (SOA-459) - notifications quickstart references a message property that is not set
Summary: notifications quickstart references a message property that is not set
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-459
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Examples
Version: 4.2 GA
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.2 CP01
Assignee: trev
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-06 21:57 UTC by Len DiMaggio
Modified: 2010-01-26 03:02 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
/opt/GA/soa-4.2.0.GA.zip /opt/GA/standalone-soa-4.2.0.GA.zip
Last Closed: 2008-04-01 15:01:21 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBESB-3153 0 Minor Closed {jbossesb.message.id} property not resolved in filenames resulting from FTP notifier 2012-12-04 14:54:43 UTC
Red Hat Issue Tracker SOA-459 0 Minor Closed notifications quickstart references a message property that is not set 2012-12-04 14:54:43 UTC

Description Len DiMaggio 2008-03-06 21:57:39 UTC
project_key: SOA

notifications quickstart references a message property that is not set 

The quickstart references the jbossesb.message.id property:

		       <!-- send notification to FTP server by way of file transfer -->
		       <!-- this requires an active ftp server with appropriate user account -->
                        <target class="NotifyFTP">
		         <ftp URL="ftp://jboss:jboss@localhost/remote/dir" filename="{jbossesb.message.id}.txt"/>
		       </target>  

And the same property is refernenced in the javadocs for:
   /product/rosetta/src/org/jboss/soa/esb/notification/NotifyFTP.java

Comment 1 Len DiMaggio 2008-03-06 22:00:48 UTC
The javadoc is:

 * Sends a message to an outgoing FTP server. The outgoing filename can have
 * values of message properties injected into it to make it unique. The
 * notification-details property looks something like:
 * 
 * <code>
 *              <NotificationList type="OK" xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd">
 *                      <target class="NotifyFTP">
 *                              <ftp URL="ftp://username:pwd@server.com/remote/dir" filename="{jbossesb.message.id}.txt"/>
 *                      </target>
 *              </NotificationList>
 * </code>
 * 
 * @author <a href="rex.sheridan">Rex Sheridan</a>
 */
public class NotifyFTP extends NotificationTarget {


Comment 2 Len DiMaggio 2008-03-07 17:37:22 UTC
SOA-459

Committing fix for: http://jira.jboss.com/jira/browse/SOA-459

To branch: https://svn.labs.jboss.com/labs/jbossesb/workspace/platform/JBESB_4_2_1_SOA_4_2/

Corrected reference to jbossesb.message.id property (was incorrectly listed as jboss.message.id) - added action handler to set the jbossesb.message.id
property

[ldimaggi@ldimaggi notifications]$ svn commit
Sending        notifications/jboss-esb.xml
Adding         notifications/src/org/jboss/soa/esb/samples/quickstart/notifications/MyAction.java
Transmitting file data ..
Committed revision 18763.


Comment 3 Len DiMaggio 2008-04-01 15:01:20 UTC
Verified fixed in CP01

There is one other problem - will log a separate JIRA - there's an extra "<" in jboss-esb.xml

                       <!-- send notification to FTP server by way of file transfer -->
                       <!-- this requires an active ftp server with appropriate user account 
                       <target class="NotifyFTP">
                         < <ftp URL="ftp://username:pwd@server.com/remote/dir" filename="{jbossesb.message.id}.txt"/>
                       </target>
                       -->


Comment 4 Len DiMaggio 2010-01-26 03:02:10 UTC
Link: Added: This issue related JBESB-3153



Note You need to log in before you can comment on or make changes to this bug.