I have a client-side security policy, with a statement that grants permissions. I want to be able to specify it to grant the set of permissions for an RMI server only. For example this works:
grant{
//my permissions
};
But I cant figure out how to link the set of permissions so that they apply to my codebase on the server....
I have two applications communicating via RMI, a slave server (of which there will be multiple) and a master server.
Following good abstract design, I'd like to implement the slave in a way that it doesn't know that when talking to the master, it's using RMI (so that the two apps can also be run inside the same JVM, for instance):
publ...
Scenario:
Client C connects to Server S via RMI
C asks S to create a handler H, S returns H to C
C then talks to H
Now I could do this in two ways:
Make the handler a Remote and let S return the stub to it, so C can directly talk to that (h.say(String msg);)
Give the handler an ID and return that to C. C will talk to H via S (s.say...
I'm implementing an hybrid server application that mixes a Web-Servlet and a plain Java application.
The java application manages thousands of sockets for remote devices, while the Web application interacts with the user to set/read the state of any socket. Java NIO, or Apache-MINA vs Jboss-Netty, seems to be good options for the socket...
Hi,
I was wondering if there are any known issues about running RMI on a Tomcat server. If yes, then would appreciate if anybody could give some description of the issues with sample code examples.
THanks
...
On the server-side I have a ListenerManager which fires callbacks to its Listeners. The manager is exported using a Spring RmiServiceExporter
On the client-side I have a proxy to the manager created by an RmiProxyFactoryBean, and a Listener implementation registered through this proxy with the manager on the server side.
So far so good...
Hi, I'm trying to call a MBean deployed in JBoss, but i'm having this exception:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: org.jboss.security.auth.callback.SecurityAssociationHandler; org.jboss.security.auth.callback.SecurityAssociationHandler; class invalid for...
What do I need to worry about when doing callbacks in RMI? I just need a simple client notification mechanism to avoid excessive polling.
I found an online example and it looks pretty straightforward, the client just implements an interface that extends Remote (like the server does) and passes it to the server, which can then call back ...
I have an application FooApplication (code in foo.jar) with a plugin BarPlugin (code in foo-bar-plugin.jar). The application instantiates an instance of the plugin dynamically. It works great.
FooApplication has some functionality accessible via an RMI interface FooRemote. That also works great, except for one thing. FooRemote has a me...
I am working on a java distributed application that consists of a variety of RMI servers running on a collection of processors in an embedded system. The system reports status through a color-coded GUI which underneath periodically polls the RMI servers for their status (UP, DOWN, DEGRADED, etc.) using a defined Interface. Additionally, ...
I'm using RMI to allow access to my Java application via MATLAB, which runs in another JVM. MATLAB has a nice interface to print the methods of a Java object. But it fails with RMI, because the object it gets is a proxy.
So I would like to add my own method to extract/print the capability of a remote interface (RMI obviously can't direc...
Hi Everyone,
I'm thinking about developing a Java Web Service using RESTEasy. I am going to follow this example: http://technicalmumbojumbo.wordpress.com/2009/10/13/restful-webservices-using-jboss-resteasy-tutorial/
Now, that's very well and good for getting the server to reply back with a simple response, however how do I get some "ba...
Hi,
Is it possible to communicate with non java entity sing RMI protocol
What is special about RMI IIOP?
Thx
...
I've wrote simple RMI code to learn how it works. While everything works fine compiling java code, rmic it and run rmiregistry and run client code from console works fine, but when I choose to "run as Java application" on the client code from Eclipse, it throws MarshallException.
My guess is somewhat Eclipse is compiling with different ...
We are seeing Spring in school right now but we don't have the time to wait till the end of the semester to start developing an application. We continue using an app we made last year, and are writing the service layer right now.
The problem is our "client" wants to have a desktop client and a webpart, which used the same dtatabase. Thi...
Dear Experts,
I am working on a distributed animation of moving BALLS with RMI.
My goal is to move multiple balls in a way, so that multiple clients observe the same movement/position of balls, i m using ball object which is remote object.
The ball is moving fine, when it is only one, but when i m trying to increase the number of bal...
Dear Experts,
i am stuck in a situation, where i need to move balls in multi-user way, i m using RMI
in a distributed animation of moving BALLS .
My goal is to move multiple balls in a way, so that multiple clients observe the same movement/position of balls, i m using ball object which is remote object.
My problem is: i am calling t...
Dear Experts,
my problem is: this design is working fine for one ball but i m unable to get it work for multiple balls, i have basically problem in replacing the "this" keyword in updateClients ().
i thought i need to do something like this but i m failed:
System.out.println("in ballimpl" + j.size());
for (ICallback aClie...
I am writing a RMI chat program. In my program I am able to receive and send messages, but i am not able to display it in the TextArea. I am not sure what is the error. I tried using Event Dispatch method also. It doesn't help.
public class client extends javax.swing.JFrame implements inter {
public client() {
initComponents();
}
...
Hi,
I am using the basic RMI-based client/server app shown in Java Tutorials. I am running the server and client on different machines. I also export the remote objects for both the server and client, and make them available to each other.
However, there is a firewall turned on the client side and so the RMI calls fail (from client t...