Is there any information anywhere on deploying EJB3 session beans as web services using JSR 181? I would have thought that something like the following should create the session bean and deploy it as a web service:
@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.ENCODED)
@Stateless
public class BaseObjectDAOBean implements BaseObjectDAO{
@Inject
protected EntityManager _manager;
public BaseObject create(String name) {
BaseObject bObj=new BaseObject();
bObj.setName(name);
_manager.persist(bObj);
return bObj;
}
@WebMethod
public BaseObject find(@WebParam long id) {
return _manager.find(BaseObject.class,id);
}
}Man this is pretty advanced and certainly the way this should work. We don't have it yet. You can checkout the JBossWS road map for the current status.