Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created January 28, 2015 10:23
Show Gist options
  • Save abhirockzz/e24cf293608ca0a8acd2 to your computer and use it in GitHub Desktop.
Save abhirockzz/e24cf293608ca0a8acd2 to your computer and use it in GitHub Desktop.
POJO powered by @stateless exposed as a SOAP end point via @webservice
//not perfect - but better than just @WebService
//will recieve free services from the EJB container, courtsey @Stateless !
@Stateless
@WebService
public class POJO_EJB_and_SOAP {
public String fetchDate(){
System.out.println("hashCode -- "+ this.hashCode());
return new Date().toString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment