• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI from Webservice

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one help me to invoke RMI Server program from my web service.
I am using axis to create wsdl file.while trying for adding a new Wsdd file into the service all the other wsdl files seems vanished.
Please help dear friends
Thanks in advance
Ajay
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to Javaranch Ajay.

Originally posted by ajay fra:
Can any one help me to invoke RMI Server program from my web service.


I really dont understand the context here. Could you please explain from where you are invoking an rmi, that is from client or from server??

Originally posted by ajay fra:

while trying for adding a new Wsdd file into the service all the other wsdl files seems vanished.
Please help dear friends
Thanks in advance
Ajay


Again, the question is not very clear. Why you are adding a new wsdd file ? Please brief us what you tried to do and at what stage your lost the other wsdl files.
This would help us to understand your question clearly.
 
ajay fra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dear friends
i tried to invoke RMI server with RMI client inside a a method and when i tried to make that method which calling the RMI Client program all my deployed WSDD's vanished from http://localhost:8080/axis/servlet/AxisServlet.

public void add(){
.....
rmiServer=(ReceiveMessageInterface)(registry.lookup("rmiServer"));
registry=LocateRegistry.getRegistry(
serverAddress,
(new Integer(serverPort)).intValue());
...
Document document = getSOAPDoc("ajay","siju");
rmiServer.receiveMessage(document);
Document SOAPDoc =(Document)rmiServer.getSOAPDoc();
XMLOutputter fmt = new XMLOutputter();
fmt.output(SOAPDoc, System.out);
}
where i made mistake?.can i invoke RMI from a webservice?
Thanks in advance
Ajay
 
ajay fra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends ,
I got the answer,i was trying to call RMI methods through WebService,and trying to send SOAP context as JDOM Document through RMI.There i missed to put jdom.jar file in axis lib directory.
Thank you for all,
Regards
Ajay.
 
reply
    Bookmark Topic Watch Topic
  • New Topic