1 22 package org.jboss.ejb3.test.regression.salesforce7123; 23 24 import java.util.List ; 25 import java.util.ArrayList ; 26 import javax.ejb.Stateless ; 27 import javax.ejb.TransactionAttribute ; 28 import javax.ejb.TransactionAttributeType ; 29 import javax.ejb.EJB ; 30 31 37 @Stateless 38 public class MyBusinessSessionBean implements MyBusinessSessionRemote 39 { 40 @EJB DataAccess dao; 41 42 @TransactionAttribute (TransactionAttributeType.NOT_SUPPORTED) 43 public List getMyBeans() 44 { 45 List nodeList = new ArrayList (); 46 List data = dao.findMyBeans(); 47 48 int counter = 0; 49 for (Object obj : data) 50 { 51 BaseData d = (BaseData)obj; 52 d.prepareTransport(); 53 nodeList.add(d); 54 d.setName(((Integer )(counter++)).toString()); 56 } 57 return nodeList; 58 } 59 } 60 | Popular Tags |