HiveMind
  1. HiveMind
  2. HIVEMIND-50

Create JaxRpcServiceImplementationFactory implementation

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Create a service implementation factory which returns JAX-RPC-based service objects implementing the service interface. I have written a similar class in the past, so I will probably be able to provide a patch pretty soon for this. I just wanted to post this request so that you guys could start chewing on the idea a bit. Please add a comment if any of you feel there would be any concerns with using JAX-RPC service objects as HiveMind services. Or, if anyone has already implemented something along these lines, please feel free to post some code. Any ideas on how to unit test this would also be GREATLY appreciated.

      1. src.zip
        5 kB
        James Carman

        Activity

        James Carman created issue -
        Hide
        James Carman added a comment -

        Sorry, I forgot to change the priority of this one. It's not a major one, but it would be a "nice to have" especially with the popularity of web services growing like it is.

        Show
        James Carman added a comment - Sorry, I forgot to change the priority of this one. It's not a major one, but it would be a "nice to have" especially with the popularity of web services growing like it is.
        Hide
        Johan Lindquist added a comment -

        I have a few things exposed as web-services and have been trying this out already using the Axis libraries and it is working relatively smoothly ... It is simple dynamic proxy invocation (only using basic types) just now, but it's a start ... It does bring a dependancy on Axis, which probably doesn't make it a candidate for hivemind-lib just now ... Or what do people think?

        Show
        Johan Lindquist added a comment - I have a few things exposed as web-services and have been trying this out already using the Axis libraries and it is working relatively smoothly ... It is simple dynamic proxy invocation (only using basic types) just now, but it's a start ... It does bring a dependancy on Axis, which probably doesn't make it a candidate for hivemind-lib just now ... Or what do people think?
        Hide
        James Carman added a comment -

        There is a way to do it using the JAX-RPC classes only. You use the ServiceFactory.createService().getPort() methods. The service implementation object would be what's returned from the getPort() method. Of course, we'll have to put in params for all the QNames and the wsdlDocumentLocation for customization.

        Show
        James Carman added a comment - There is a way to do it using the JAX-RPC classes only. You use the ServiceFactory.createService().getPort() methods. The service implementation object would be what's returned from the getPort() method. Of course, we'll have to put in params for all the QNames and the wsdlDocumentLocation for customization.
        Hide
        Johan Lindquist added a comment -

        Ok, thanks for that James - have reworked it as you suggested and it now works for basic types at least. Need to confirm how it handles more complex ones though, so bear with me ... And figure out the best way to register custom serializers/deserializers ...

        Show
        Johan Lindquist added a comment - Ok, thanks for that James - have reworked it as you suggested and it now works for basic types at least. Need to confirm how it handles more complex ones though, so bear with me ... And figure out the best way to register custom serializers/deserializers ...
        Hide
        James Carman added a comment -

        Here's an example of the JaxRpcImplementationFactory.

        Show
        James Carman added a comment - Here's an example of the JaxRpcImplementationFactory.
        James Carman made changes -
        Field Original Value New Value
        Attachment src.zip [ 18500 ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]

          People

          • Assignee:
            Unassigned
            Reporter:
            James Carman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development