View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.ejb;
8   
9   import org.mule.container.DummyEjb;
10  
11  import java.rmi.RemoteException;
12  
13  /**
14   * A test component that uses an EJB binding
15   */
16  public class TestComponentWithBinding
17  {
18      private DummyEjb binding;
19  
20      public DummyEjb getBinding()
21      {
22          return binding;
23      }
24  
25      public void setBinding(DummyEjb binding)
26      {
27          this.binding = binding;
28      }
29  
30      public String process(String data) throws RemoteException
31      {
32          return binding.reverseString(data);
33      }
34  }