Created
January 28, 2015 10:23
-
-
Save abhirockzz/e24cf293608ca0a8acd2 to your computer and use it in GitHub Desktop.
POJO powered by @stateless exposed as a SOAP end point via @webservice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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