rmi

Java RMI: Sniffer needed

How can I sniff and analyze Java RMI traffic ? There is only very partial solution in wireshark. I need to know exactly which methods where called and which args where passed by sniffing the TCP connection. ...

java RMI via SSH v2 protocol

Hi All , How to implement java RMI over SSH v2 protocol.Is this possible?.If its not possible then can i achieve this using raw socket communication?.Simply i want to transmit my data via RMI but it should be encrypted as SSH v2 packets . ...

JMX Connectivity Issue

HI, This is Rajesh, I have web application. Server is Tomcat. We are using the JMX for monitoring client activities. client is standalone application. In windows its working fine with out any issue. but in linux. its giving exceptions. like service:jmx:rmi:///jndi/rmi://127.0.0.1:9998/server java.io.IOException: Failed to retrieve RM...

Should references in RMI exposed services be transient?

I'm exposing some services using RMI on Spring. Every service has a dependency to other service bean which does the real processing job. For example: <bean id="accountService" class="example.AccountServiceImpl"> <!-- any additional properties, maybe a DAO? --> </bean> <bean id="rmiAccount" class="example.AccountRmiServiceImpl"/> <...

How to store rmi connections in java?

I'm with a problem here. I have a client A code that calls a B via RMI. After that I'm sending a queue request via JMS to the real implementation C. However, I don't know the "address" of A. Is there a way to store the connection data somehow so that I can return the data to A later? Basically the thing is that B can have tons of reques...

Do RMI and web services both use a socket connection?

In another question I was worried about using a web service that takes a five minutes to complete. I was thinking about using RMI instead of web services for this use case.. but at the end of the day, do both a web service and RMI use a TCP socket for the underlying connection? Is there any reason why a web service call taking 5 min...

Class.forName not working in Java RMI call

Hi, What effect will Java RMI have on the following line of code? Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); Its not working for me in an RMI call. I am new to java and RMI so please elaborate your answer in detail. Edit: //String connect to SQL server String url = "jdbc:sqlserver://" + strServerIPAddress + ":143...

How to generate JAVA RMI stubs and skeletons from Interface?

Is there an action (menu / shortcut) that I miss or plug-in to add to a basic JavaEE distribution of Eclipse 3.5 that will allow to generate / regenerate files that usualy done from command line call for rmic? I am aware of the "RMI Plug-in for Eclipse version 2.0" I am looking for a free one. ...

Java RMI - Client Timeout

I'm building a Distributed System using Java RMI and it must support a server loss. If my client is connected to a Server using RMI, if this server goes down (cable problems for example), my client should get an exception so it can connect to other server. But when the server goes down, nothing happens to my client, he keeps waiting fo...

Rmi connection refused with localhost

I have a problem using java rmi: When I'm trying to run my server, I get a connectException (see below). Exception happens when executing the rebind method: Runtime.getRuntime().exec("rmiregistry 2020"); MyServer server = new MyServer(); Naming.rebind("//localhost:2020/RemoteDataPointHandler", server); when using rmi://localhost:202...

remote and dynamic proxy

i understand that ,once, developing remote proxy included generating stub/skeleton , though today this is no longer needed thanks to reflection. (dynamic proxy) i want to get a clear explanation as to why and how reflection replaces this need. for example i understood the stub was suppose to handle the communication over the network (...

building connection to com.ibm.lang.management MXBeans

Hello, I'm trying to build a jconsole-like application which is able to remote-monitor a jvm.. so far i've get it working for "every" sun-jvm.. now my boss wants me to monitor a ibm j9 jvm.. which doesn't work.. i have this simple test code: import java.io.IOException; import java.lang.management.ManagementFactory; import javax.manage...

Calling equals on an ArrayList After Serialization

I am hitting a strange problem in relation to equals on an object transported over RMI. This has been wrecking my head for a few days now and I was wondering if anyone can help shed some light on the Problem. I have a Garage Class (that is also a JPA entity in case its relevant) that I push to a java process called X over RMI (So this o...

java.rmi.UnmarshalException: unable to pull client classes by server

Hi, I have an RMI client/server set-up on two machines that works fine in a simple situation when the server doesn't require a client-side defned class. However, when I need to use a class defined on the client side I am unable to have the server unmarshall those classes. I suspect this is an issue with my java.rmi.server.codebase prop...

RMI and CORBA Differences?

I am studying for a final and have a few questions about RMI and CORBA. These are discussion questions taken from a study guide so there is no real application context around them. Why are RMI and CORBA based on TCP? The question states to answer in terms of invocation semantics. What I have thought of so far is that TCP is going to...

Asynchronous Java RMI

Recently I have needed to use RMI, and I know enough for what I need to do, but one thing is intriguing me as I revisit this topic. Is it possible to make asynchronous RMI calls to the same service on the server? Let's say I have n threads on the client and a single server-side object--call it S. S has a single method that I want to ca...

RMI registry is empty after restart

I am using this plugin (it's pretty cool). Needless to say, I am an RMI novice. I followed the tutorials and was able to put together a sample application. I do not understand though why every time I stop and restart my local RMI registry the remote objects that were bound to it just vanish. Is this normal behavior? I was under the imp...

C++ client for Java RMI? Or any other way to use Java from C++?

Hi, We need to use a Java library from C++ code. An idea that I had is that if we could build a C++ client for Java RMI (ideally using some framework or wizard), than we could run the Java lib as a separate server. This seem cleaner than trying to run Java VM within a C++ application. Alternatively, if you have any other idea on how t...

Does SOAP have "remote objects"?

SOAP is continuing to confuse me. In RMI, there are remote objects, which live on the remote server. You can pass them around, but this will just create stubs locally. The stubs delegate all method calls over the wire. This is quite different from pure data objects, which are serialized and sent as a copy. Are there remote objects in ...

Java: RMI vs Web Services

Hi, I need to create a distributed application consisting of multiple clients that send files (plus info about files) to one server, also query that server. Clients must access to that Web Server from inside the company for sending the files. But, occasionally some specific queries must run outside the company. I think, given what I k...