yes there are some examples of using Pure Java, no J2EE.
and
Essentially, you'll need the dependent jar files.
once, you have the jar files you need to configure your class so you can get an Endpoint
once you have the endpoint you can use the endpoint in one of the top level services such as ForumsService
then you can use the ForumsService to call back to Connections