1 Reply Latest reply on Feb 3, 2015 9:48 AM by Avinash Annamaneni

    Resolving Service's category and name inside Action

    Marko S Newbie

      I should find out in what service the current action is. Is there anyway to do it? ESB version is 4.12 and AS is 6.1.

      Given jboss-esb.xml snippet:

      ..
      <services>
        <service category="MyCategory"
         description="MyTestDescription" name="MyName">
         <listeners>
          <jms-listener busidref="my_jms" name="my_jms">
           <jms-message-filter dest-name="queue/my_jms" dest-type="QUEUE"/>
          </jms-listener>
         </listeners>
         <actions mep="RequestResponse">
          <action
           class="my.package.MyAction" name="MyActionName"/>
         </actions>
        </service>
       .. 
      

       

      ..And MyAction is:

       

      public class MyAction {
      
        public MyAction() {}
      
        @Process
        public Message process(Message message) {
        // How to resolve these?
        String serviceCategory,serviceName;
       }
      ...
      

       

      Any pointers how to get service's category and name would be useful! Thanks!