// 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.howto10.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.howto10.a.PaymentServiceBean}. * * @see org.andromda.test.howto10.a.PaymentServiceBean */ public class PaymentServiceDelegate extends ServiceDelegateBase { /** * Default constructor */ public PaymentServiceDelegate() { super(); } /** * Constructor setting the environment properties. * * @param properties */ public PaymentServiceDelegate(Properties properties) { super(properties); } /** * Gets an instance of {@link PaymentServiceRemote} */ private PaymentServiceRemote getPaymentServiceRemote() throws NamingException { return ServiceLocator.getInstance().get_org_andromda_test_howto10_a_PaymentServiceBean_Remote(getProperties()); } /** * Call the session bean operation using appropriate view type * @see org.andromda.test.howto10.a.PaymentServiceBean#register(Person, Car, int) * * @param owner * @param car * @param leasePeriod */ public void register(Person owner, Car car, int leasePeriod) { try { getPaymentServiceRemote().register(owner, car, leasePeriod); } catch (NamingException ex) { throw new PaymentServiceException( "Error performing 'org.andromda.test.howto10.a.PaymentService.register(Person owner, Car car, int leasePeriod)' --> " + ex, ex); } } }