{
//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();
}