Uploaded image for project: 'JBoss Remoting (3+)'
  1. JBoss Remoting (3+)
  2. REM3-90

Simple static API to easily create simple clients

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 3.0.0-M2
    • 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...

              Unassigned Unassigned
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: