Simple static API to easily create simple clients
-------------------------------------------------
Key: JBREM-882
URL:
http://jira.jboss.com/jira/browse/JBREM-882
Project: JBoss Remoting
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: David Lloyd
Priority: Minor
Fix For: Remoting 3 M2
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...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira