01: /* XPDLBrowserEJBBean.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.XPDLBrowserWrapper;
12:
13: /**
14: * @ejb.bean
15: * name="XPDLBrowserEJB"
16: * type="Stateless"
17: * display-name="Shark XPDL Browser"
18: * jndi-name="org/enhydra/shark/ejb/XPDLBrowserEJB"
19: * local-jndi-name="org/enhydra/shark/ejb/XPDLBrowserEJBLocal"
20: * transaction-type="Container"
21: * view-type="all"
22: * local-business-interface="org.enhydra.shark.api.client.wfservice.XPDLBrowser"
23: *
24: * @ejb.interface
25: * extends="org.enhydra.shark.api.client.wfservice.XPDLBrowser,javax.ejb.EJBObject"
26: * generate="local,remote,service-endpoint"
27: * service-endpoint-class="org.enhydra.shark.ejb.XPDLBrowserEJBEndpoint"
28: *
29: * @ejb:transaction
30: * type="Required"
31: *
32: * @jonas:bean
33: * ejb-name="XPDLBrowserEJB"
34: * jndi-name="org/enhydra/shark/ejb/XPDLBrowserEJB"
35: *
36: * @wsee.port-component
37: * name="XPDLBrowserEJBEndpoint"
38: *
39: * @wsee.jaxrpc-mapping
40: * root-type-qname="XPDLBrowserEJBEndpoint"
41: *
42: * @author Sasa Bojanic
43: * @author T.Jovanovic
44: * @version 0.1
45: */
46: public abstract class XPDLBrowserEJBBean extends XPDLBrowserWrapper
47: implements SessionBean {
48:
49: private SessionContext context;
50:
51: /**
52: *
53: * @ejb.interface-method
54: * view-type="both"
55: **/
56: public EJBObject getPassedEJBObject() throws EJBException {
57: try {
58: return context.getEJBObject();
59: } catch (Exception ex) {
60: throw new EJBException(ex);
61: }
62: }
63:
64: public void setSessionContext(SessionContext ctx)
65: throws EJBException, RemoteException {
66: context = ctx;
67: }
68:
69: /**
70: * @ejb:create-method
71: */
72: public void ejbCreate() {
73: }
74:
75: /* (non-Javadoc)
76: * @see javax.ejb.SessionBean#ejbActivate()
77: */
78: public void ejbActivate() throws EJBException, RemoteException {
79: }
80:
81: /* (non-Javadoc)
82: * @see javax.ejb.SessionBean#ejbPassivate()
83: */
84: public void ejbPassivate() throws EJBException, RemoteException {
85: }
86:
87: /* (non-Javadoc)
88: * @see javax.ejb.SessionBean#ejbRemove()
89: */
90: public void ejbRemove() throws EJBException, RemoteException {
91: }
92:
93: }
|