1 25 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view; 26 27 import java.rmi.RemoteException ; 28 29 import javax.ejb.CreateException ; 30 import javax.ejb.Init ; 31 import javax.ejb.Local ; 32 import javax.ejb.LocalHome ; 33 import javax.ejb.Remote ; 34 import javax.ejb.RemoteHome ; 35 import javax.ejb.Stateful ; 36 37 43 @Stateful (name = "SimpleEjb2Bean") 44 @Remote (SimpleEjb2.class) 45 @Local (SimpleEjb2Local.class) 46 @RemoteHome (SimpleEjb2Home.class) 47 @LocalHome (SimpleEjb2LocalHome.class) 48 public class SimpleEjb2Bean extends SimpleEjb2BeanBase{ 49 50 57 @Override 58 @Init 59 public void init(final int code, final String name) throws CreateException , RemoteException { 60 super.init(code, name); 61 } 62 63 69 @Override 70 @Init 71 void init(final String name) throws CreateException { 72 super.init(name); 73 } 74 } 75 | Popular Tags |