01: /* EventAuditFilterBuilderEJBBean.java */
02: package org.enhydra.shark.ejb;
03:
04: import java.rmi.RemoteException;
05:
06: import javax.ejb.EJBException;
07: import javax.ejb.EJBObject;
08: import javax.ejb.SessionBean;
09: import javax.ejb.SessionContext;
10:
11: import org.enhydra.shark.ws.EventAuditFilterBuilderWrapper;
12:
13: /**
14: *
15: * @ejb.bean
16: * name="EventAuditFilterBuilderEJB"
17: * type="Stateless"
18: * display-name="Event Audit Filter Builder"
19: * jndi-name="org/enhydra/shark/ejb/EventAuditFilterBuilderEJB"
20: * local-jndi-name="org/enhydra/shark/ejb/EventAuditFilterBuilderEJBLocal"
21: * transaction-type="Container"
22: * view-type="all"
23: * local-business-interface="org.enhydra.shark.api.common.EventAuditFilterBuilder"
24: *
25: * @ejb.interface
26: * extends="org.enhydra.shark.api.common.EventAuditFilterBuilder,javax.ejb.EJBObject"
27: * generate="local,remote,service-endpoint"
28: * service-endpoint-class="org.enhydra.shark.ejb.EventAuditFilterBuilderEJBEndpoint"
29: *
30: * @ejb:transaction
31: * type="Required"
32: *
33: * @jonas:bean
34: * ejb-name="EventAuditFilterBuilderEJB"
35: * jndi-name="org/enhydra/shark/ejb/EventAuditFilterBuilderEJB"
36: *
37: * @wsee.port-component
38: * name="EventAuditFilterBuilderEJBEndpoint"
39: *
40: * @wsee.jaxrpc-mapping
41: * root-type-qname="EventAuditFilterBuilderEJBEndpoint"
42: *
43: * @author Vladimir Puskas
44: * @author T.Jovanovic
45: * @version 0.1
46: */
47: public abstract class EventAuditFilterBuilderEJBBean extends
48: EventAuditFilterBuilderWrapper implements SessionBean {
49:
50: private SessionContext context;
51:
52: /**
53: *
54: * @ejb.interface-method
55: * view-type="both"
56: **/
57: public EJBObject getPassedEJBObject() throws EJBException {
58: try {
59: return context.getEJBObject();
60: } catch (Exception ex) {
61: throw new EJBException(ex);
62: }
63: }
64:
65: public void setSessionContext(SessionContext ctx)
66: throws EJBException, RemoteException {
67: context = ctx;
68: }
69:
70: /**
71: * @ejb:create-method
72: */
73: public void ejbCreate() {
74: }
75:
76: /* (non-Javadoc)
77: * @see javax.ejb.SessionBean#ejbActivate()
78: */
79: public void ejbActivate() throws EJBException, RemoteException {
80: }
81:
82: /* (non-Javadoc)
83: * @see javax.ejb.SessionBean#ejbPassivate()
84: */
85: public void ejbPassivate() throws EJBException, RemoteException {
86: }
87:
88: /* (non-Javadoc)
89: * @see javax.ejb.SessionBean#ejbRemove()
90: */
91: public void ejbRemove() throws EJBException, RemoteException {
92: }
93:
94: }
|