1 package org.apache.juddi.registry.rmi;
2
3 import java.rmi.RemoteException;
4 import java.rmi.server.UnicastRemoteObject;
5
6 import org.w3c.dom.Element;
7 import org.w3c.dom.Node;
8
9 public class PublishService extends UnicastRemoteObject
10 implements Publish
11 {
12
13 private static final long serialVersionUID = 1L;
14
15 public PublishService() throws RemoteException {
16 super();
17
18 }
19
20 public Node publish(Element request) throws RemoteException {
21 Node response = null;
22 org.apache.juddi.registry.local.PublishService publishService =
23 new org.apache.juddi.registry.local.PublishService();
24 try {
25 response = publishService.publish(request);
26 } catch (Exception e) {
27 throw new RemoteException(e.getLocalizedMessage(), e);
28 }
29 return response;
30 }
31
32
33
34 }