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