File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Glasshfish InitialContext Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply Bookmark "Glasshfish InitialContext" Watch "Glasshfish InitialContext" New topic
Author

Glasshfish InitialContext

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 72
Hello all,

I have in my webapp a JMXClient which must connect to a remote JMX server implemented with RMI.

In tomcat the connection correctly work, but in glassfish when the jmx client try to recover the RMI registry

of my remote application, glassfish return its initialContext and the connection isn't try. The initialContext

of glassfish doesn't own the RMI server stub of my remote application and in my webapp a:

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: rmi:

is returned ...

Anyone have a idea to correct the problem or override the glassfish initialcontext ?

Thank

Adryen


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Glasshfish InitialContext
 
Similar Threads
java.rmi.ConnectException: Connection refused to host
I am getting ClassNotFoundException for stub file
JMX cannot get connected, Maybe due wrong stub???
JMX + RMIConnector
Connecting JBoss with JMXConnectorFactory