I'm designing a game where players are programmed bots competing in a programming contest. The bots can be programmed in any language - Java, Ruby, Python, C#. I'm looking for some way to transmit game data across the network or some way by which the game server can talk to the bots. What would be a better choice for this? Should i use X...
Hi,
I have this strange problem with ehcache 2.0 that I hope someone can help me with. I have set up a cluster of two hosts, A and B. I can see that heartbeats are received at both ends, so I'm pretty sure the networking and multicast stuff is working. The problem is that is I put an element into the cache at host A, I can see in the lo...
I'm taking my first steps with JCS (Java caching system by Apache). I set up two remote cache clients in a cluster and wrote a simple cache client. Everything seems to work fine, except that the process never finishes.
Here's a minimal client:
cache.ccf:
jcs.default=RFailover
jcs.default.cacheattributes=org.apache.jcs.engine.Composite...
I've setup RMI + SSL. This works great. But it doesn't seem possible to slip compression in between RMI and SSL. So that the RMI requests are compressed before they're sent over SSL.
I've seen some posts online suggest using SSLSocketFactory.createSocket() which takes a Socket to wrap SSL over a compressing socket. But that seems like i...
Hi,
I am just starting Java RMI and have some problems with when to use java.io.Serializable, so can anyone give me a RMI example that java.io.Serializable has to be implemented.
Thanks!!!
UPDATE:
i had made a simple example, however, i think there are still problems as the output is not correct.
Person Interface
package server;
im...
I am currently using java RMI for a client server style architecture however I want to replicate the servers using JGroups and as I have never dealt with replication before I was wondering what options do I have with RMI to switch connection between two servers when one dies given passive replication and how will I know as soon as the co...
I am trying to some pretty basic RMI:
// Context namingContext = new InitialContext();
Registry reg = LocateRegistry.createRegistry(9999);
for ( int i = 0; i < objs.length; i++ ) {
int id = objs[i].getID();
// namingContext.bind( "rmi:CustomObj" + id , objs[i] );
reg.bind( "CustomOb...
I have a client that connects to an RMI registry over SSL, so as far as I know on the server side I have to use LocateRegistry.createRegistry(). However how would I get another Server to bind interfaces to the same registry, and have them being accessible even when the first server is closed.
Any help would be greatly appreciated.
Tha...
Hey im getting a AccessControlException: access denied when attempting to start up a RMI app im writing, I cant work out why I get this exception if I open it on the default port 1099, or on another dynamic port, my policy file currently grants everything (will change when app is finished).
I am stuck as to where It is going wrong, any...
J2SE Client Server App: Client calls RMI message. Server handles RMI method and returns, but Client never receives it.
Any ideas how this could happen? Our attempted solution is to set client read timeouts and come up with a framework for resending requests or otherwise handling those failures gracefully.
But really, I'd like to k...
I know my RMI app works correctly - it works fine when the server is on localhost and inside the LAN but when connecting to an external RMI server it fails when trying to make stub calls
So the server is bound to localhost (an internal IP - 192.168.1.73) but the client is specifying an external IP (45.4.234.56) - which then gets forwar...
Our system setup consists of two Weblogic 10.3 servers: one hosts the presentation layer and the other hosts the EJBs. The system runs fine under moderate load for some time (one to several days) after which EJB method calls from the presentation server to the EJB server start to fail with the following error:
java.rmi.RemoteException: ...
We can run RMI in netbeans by following steps.
Right click build.xml -> Run target -> Other targets -> startRMI
But what i need is to start RMI registry through Java code. Is it possible? Help me.
...
I'm working on a Java application that uses JavaSpace. We're developing this in Eclipse. There are a couple instances where we are inserting code into the JavaSpace to do some more advanced space notification logic. Doing this requires that we generate stubs for the classes used within the JavaSpace. We use an external script to gene...
Hi,
How can two/multiple JVMs running in a same machine communicate without RMI?.
Thx
...
Let's say I want my corporate server to communicate with Google App Engine and vice versa. I know that GAE does not support JMS,RMI etc. What is the best alternative for this kind of communication? Use task queue? (I think HTTP get() is not suitable for this kind of communication).
Both my corporate server and GAE application use Spri...
I have J2EE application deployed on JBoss AS. There is a EJB3 stateless session bean in this app.
I need to write dll that will wrap the methods of that stateless session bean. There will be just standard data types as arguments, so I don't need to pass some specific objects as an arguments.
Is that possible?
...
i m creating a Client/Server application in which my server and client can be on the same or on different machines but both are under ISP.
My RMI programs:-
-Remote Intreface:-
//Calculator.java
public interface Calculator
extends java.rmi.Remote {
public long add(long a, long b)
throws java.rmi.RemoteException;
publ...
When designing an distributed application in Java there seem to be a few technologies that address the same kind of problem. I have briefly read about Java Remote Method Invocation and Java Message Service, but it is hard to really see the difference. Java RMI seems to be more tightly coupled than JMS because JMS uses asynchronous commun...
I'm creating a Java application that requires master-slave communication between JVMs, possibly residing on the same physical machine. There will be a "master" server running inside a JEE application server (i.e. JBoss) that will have "slave" clients connect to it and dynamically register itself for communication (that is the master wil...