Another approach to solving a problem like this is to write a custom connector as specified by the Java EE connector spec. Connectors are the portable and spec-compliant way of allowing applications to exchange information with the outside world in ways other than web pages, databases, etc.
JSR 112 [
http://jcp.org/en/jsr/detail?id=112] describes the Java EE Connector Architecture, which GlassFish supports. There is a 1.6 revision in process (JSR 322) but it is not final yet.
- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]
http://forums.java.net/jive/thread.jspa?messageID=253753