Broker 10.5 | webMethods Broker Documentation | webMethods Broker Messaging Programmer's Guide | JMS Marshalling | Marshalling and Message Processing
Marshalling and Message Processing
Passing a message through the marshalling routines for processing constitutes the run-time component of your JMS marshalling code. The passing of messages through the routines is done on a per JMS message or Broker event basis.
Following is a simple example of a class that you can use with marshalling, to count the number of messages sent or received (or both).
class Counter
private int _counter;
public Counter() { _counter = 0; }
public Counter(int start) { _counter = start; }
public synchronized int getValue() { return _counter; }
public synchronized void increment() { _counter++; }