1 22 package org.jboss.tutorial.consumer_deployment_descriptor.bean; 23 24 import java.util.Map ; 25 import javax.ejb.ActivationConfigProperty ; 26 import javax.jms.Message ; 27 import org.jboss.annotation.ejb.Consumer; 28 import org.jboss.annotation.ejb.CurrentMessage; 29 30 public class ExampleConsumerBean implements ExampleProducerRemote, ExampleProducerLocal, ExampleProducerXA 31 { 32 private Message currentMessage; 35 36 public void method1(String msg, int val) 37 { 38 System.out.println("method1(" + msg + ", " + val + ")"); 39 } 40 public void method2(String msg, Map <String , String > map) 41 { 42 System.out.println("method2: " + msg); 43 for (String key : map.keySet()) 44 { 45 System.out.println("method2 key/val: " + key + ":" + map.get(key)); 46 } 47 } 48 49 } 50 | Popular Tags |