Announcement Announcement Module
Collapse
No announcement yet.
RMI Inboud gatway Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RMI Inboud gatway

    Hi there,

    It's my first time using Spring-Integration and Spring framework in general, I've been playing around with the integration and so far i've been able to figure out most of the stuff except how to use the rmi:inbound-gateway. Is there any sample out there that I can follow ?

    Thanks

  • #2
    okay so I figured out how to call my rmi service via the following

    Code:
    RmiInvocationHandler handler = (RmiInvocationHandler) Naming
    		.lookup("rmi://" + host + ":" + port + "/org.springframework.integration.rmiGateway.mychannel");
    
    Message message = (Message) handler.invoke(new RemoteInvocation("handle", new Class[] { org.springframework.integration.core.Message.class},
    					new Object[] { new  GenericMessage(myInstance) }));
    this works fine, but i was wondering if this is the correct approach. Client will not be using spring framework.

    Comment

    Working...
    X