cancel
Showing results for 
Search instead for 
Did you mean: 

Creating own RMI Registry- java.net.ConnectException

Former Member
0 Kudos

I need to create my own RMI- registry from a class running in Web AS. I call this:

 
if(LocateRegistry.getRegistry(rmiPort)==null){
  registry = LocateRegistry.createRegistry(rmiPort);
} else {
  registry = LocateRegistry.getRegistry(rmiPort);
}

I get an registry, but it's not callable and I get a java.net.ConnectException: Connection refused: - Exception.

Running the code outside the Web AS is doing fine.

Does anyone know where's the problem and how I can solve it?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

good

go through this link i hope these ll give you some idea to solve your problem

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/095b5f78-0801-0010-e6ad-837...

thanks

mrutyun^

Former Member
0 Kudos

I forgot to say:

I get allways a registry, but if i scan for open ports I get by running the standalone application an open port and by running it inside Web AS nothing.

Is there a need to configure a port in Web AS?

Former Member
0 Kudos

> I forgot to say:

>

> I get allways a registry, but if i scan for open

> ports I get by running the standalone application an

> open port and by running it inside Web AS nothing.

>

> Is there a need to configure a port in Web AS?

If you do not want to go via the j2ee context and want your own RMI registry you will need to open the security for the specific url and port, allow access resolve and a lot more.

It has all to do with the security settings...

Enjoy

Former Member
0 Kudos

Where ca I configure such security settings?