// license-header java merge-point // // Attention: Generated code! Do not modify by hand! // Generated by ServiceDelegate.vsl in andromda-ejb3-cartridge on 09/18/2014 16:56:08. // package org.andromda.test.howto18.a; import java.util.Properties; import javax.naming.NamingException; import org.andromda.test.ServiceDelegateBase; import org.andromda.test.ServiceLocator; /** * Web service delegator for {@link org.andromda.test.howto18.a.UserEndPointServiceBean}. * * @see org.andromda.test.howto18.a.UserEndPointServiceBean */ public class UserEndPointServiceDelegate extends ServiceDelegateBase { /** * Default constructor */ public UserEndPointServiceDelegate() { super(); } /** * Constructor setting the environment properties. * * @param properties */ public UserEndPointServiceDelegate(Properties properties) { super(properties); } /** * Gets an instance of {@link UserEndPointServiceRemote} */ private UserEndPointServiceRemote getUserEndPointServiceRemote() throws NamingException { return ServiceLocator.getInstance().get_org_andromda_test_howto18_a_UserEndPointServiceBean_Remote(getProperties()); } /** * Call the session bean operation using appropriate view type * @see org.andromda.test.howto18.a.UserEndPointServiceBean#addUser(String) * * @param name * @throws UserException */ public void addUser(String name) throws UserException { try { getUserEndPointServiceRemote().addUser(name); } catch (UserException ex) { throw ex; } catch (NamingException ex) { throw new UserEndPointServiceException( "Error performing 'org.andromda.test.howto18.a.UserEndPointService.addUser(String name)' --> " + ex, ex); } } /** * Call the session bean operation using appropriate view type * @see org.andromda.test.howto18.a.UserEndPointServiceBean#getUser(Long) * * @param id * @return User * @throws UserException */ public User getUser(Long id) throws UserException { try { return getUserEndPointServiceRemote().getUser(id); } catch (UserException ex) { throw ex; } catch (NamingException ex) { throw new UserEndPointServiceException( "Error performing 'org.andromda.test.howto18.a.UserEndPointService.getUser(Long id)' --> " + ex, ex); } } }