Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

RMI from Webservice

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic