Package org.hornetq.javaee.example.server2

Examples of org.hornetq.javaee.example.server2.StatelessSenderService


      {
         //Step 1. Create an initial context to perform the JNDI lookup.
         initialContext = new InitialContext();

         //Step 2. Getting a reference to the Stateless Bean
         StatelessSenderService sender = (StatelessSenderService)initialContext.lookup("jca-config-example2/StatelessSender/remote");

         //Step 3. Calling a Stateless Session Bean. You will have more steps on the SessionBean
         sender.sendHello("Hello there MDB!");

         System.out.println("Step 3: Invoking the Stateless Bean");

         initialContext.close();
      }
View Full Code Here

TOP

Related Classes of org.hornetq.javaee.example.server2.StatelessSenderService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.