on 11-02-2006 10:18 AM
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?
hi
good
go through this link i hope these ll give you some idea to solve your problem
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> 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
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.