-
Feature Request
-
Resolution: Done
-
Minor
-
None
-
None
-
Medium
Right now the user has to create an endpoint, register protocol handler support, open a session, locate a service, and only then can they open contexts. This is fine in a container where all that stuff would be managed for you. But for trivial clients it's a PITA.
Some kind of simple static method for trivial clients would be nice:
ContextSource<RequestType, ReplyType> source = Remoting.connectToService(uri, userName, password, serviceType, RequestType.class, ReplyType.class);
Context<RequestType, ReplyType> context = source.openContext();
ReplyType r = context.invoke(context.createRequest(new RequestType(...))).getBody();
Maybe even provide some behind-the-scenes session pooling or something...