Java Code Examples for javax.ejb.EJBObject#remove()

The following examples show how to use javax.ejb.EJBObject#remove() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From spring-analysis-note with MIT License 5 votes vote down vote up
/**
 * Remove the given EJB instance.
 * To be invoked by concrete remote SLSB invoker subclasses.
 * @param ejb the EJB instance to remove
 * @see javax.ejb.EJBObject#remove
 */
protected void removeSessionBeanInstance(@Nullable EJBObject ejb) {
	if (ejb != null && !this.homeAsComponent) {
		try {
			ejb.remove();
		}
		catch (Throwable ex) {
			logger.warn("Could not invoke 'remove' on remote EJB proxy", ex);
		}
	}
}
 
Example 2
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From java-technology-stack with MIT License 5 votes vote down vote up
/**
 * Remove the given EJB instance.
 * To be invoked by concrete remote SLSB invoker subclasses.
 * @param ejb the EJB instance to remove
 * @see javax.ejb.EJBObject#remove
 */
protected void removeSessionBeanInstance(@Nullable EJBObject ejb) {
	if (ejb != null && !this.homeAsComponent) {
		try {
			ejb.remove();
		}
		catch (Throwable ex) {
			logger.warn("Could not invoke 'remove' on remote EJB proxy", ex);
		}
	}
}
 
Example 3
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Remove the given EJB instance.
 * To be invoked by concrete remote SLSB invoker subclasses.
 * @param ejb the EJB instance to remove
 * @see javax.ejb.EJBObject#remove
 */
protected void removeSessionBeanInstance(EJBObject ejb) {
	if (ejb != null && !this.homeAsComponent) {
		try {
			ejb.remove();
		}
		catch (Throwable ex) {
			logger.warn("Could not invoke 'remove' on remote EJB proxy", ex);
		}
	}
}
 
Example 4
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
/**
 * Remove the given EJB instance.
 * To be invoked by concrete remote SLSB invoker subclasses.
 * @param ejb the EJB instance to remove
 * @see javax.ejb.EJBObject#remove
 */
protected void removeSessionBeanInstance(EJBObject ejb) {
	if (ejb != null && !this.homeAsComponent) {
		try {
			ejb.remove();
		}
		catch (Throwable ex) {
			logger.warn("Could not invoke 'remove' on remote EJB proxy", ex);
		}
	}
}