rmi

RMI/Event listeners with abstract class?

Hi, Generally we are using interface concept for RMI implementation also in Event listening ,we are using interfaces .Why cant we use abstract classes in both theses cases. ...

Stop JButton repainting on mouse over?

I have created a custom JButton class for representing spaces on a monopoly board. The game is multiplayer so a lot of the information needed to draw the button is held on the server (accessed via RMI). My problem is that when I mouse over the button it automatically seems to call repaint() (and draws a border). This makes the program ...

Spring Distributed Transaction Involving RMI calls possible?

Background I have Spring Client application that provisions a service to two servers using RMI. In the the client I save an entity to the database (easy) and make rmi calls to two servers with details of the entity. I am using Spring 3.0.2 on the servers and the client is a simple Spring-mvc site. Requirements My requirement is that ...

Convert a Ruby on Rails project to a JRuby on Rails project

Hi, is there any particular way to convert a Ruby on Rails project to a JRuby on Rails project? There now is a need to get the Rails side to talk to a Java server via RMI so was wondering how to make the conversion. Thanks. ...

Java RMI: How to pass a POJO

Hi, I successfully created an RMI service and client. I can call methods and so on. But now I wanted to try the following: I wanted a standard Java object like a LinkedList to be hosted on the service. Also, I wanted to 'pretend' I already had existing code that uses a LinkedList. What I want is to get a LinkedList that is actually mana...

RMI question: what happens to an object reference after server goes down?

Could someone help on this , please? Q: An application server registers an object in RMI Registry by calling Naming.rebind(). After a while, the server app goes down. Explain what will happen to the object reference registered in the Registry. A: I think the reference is kept in the Registry for a while, but after that period ("lease p...

Java RMI error in HP BSAE 2.0 configuration migration log

I'm attempting to track this issue with HP's Enterprise Support as well, but am not familiar with Java's RMI context, and am hoping the community can provide some assistance, too. Context: recently upgraded the reporting tool for HP's BSA (Business Service Automation) Suite from SAR (Service Automation Reporting) 7.81 to BSAE (BSA Essen...

about java-RMI concept

my prof. asked me execute a RMI program. the compilation of client and server programs are perfect.it didn't generate any error. but when i give 'rmic implementation class-name',it shows that no class found. i was thought that,the implementation program will be automatically compiled when client and server program is compiled.After comp...

Remote lookup of slsb failing from jar file, although very similar lookup from a jar file being called from same place works.

I have a a number of jar files that perform rmi. These are all working except one, the problematic one attempts to look up a remote slsb in a different project. So the code is the same here: machineNameOrAddress = args[0]; jndiPortNumber = args[1]; action = args[2]; Properties properties = new Properties(); properties.setPrope...

How to do parallel programming in Java?

Hi I am developing an algorithm to find out a fraud-detecting system using a math formula. I need to work the program in different computer. How can I do that in Java? How can I do parallel programing in java? using RMI? or any other method? can u guys give me a code sample? ...

Java RMI via Webservice?

Hi there, I'm searching for a possibility to run a java RMI application via webservice or an internet protocol. is there any framwork or solution that says "I can run RMI as WebService with WS-Security" or "I can run RMI via HTTPS" etc. or is tunneling RMI over HTTP or SSH the only way? thx, axel ...

Keeping the same thread name over RMI

Is there any tidy way to keep the same thread name when making an RMI call? At the moment if I have a named thread that makes an RMI call, on the server side of the RMI call, Thread.currentThread().getName() returns something un-illuminating like "RMI TCP Connection(4)-10.0.0.2". Of course, I could go and add to all my RMI methods a par...

Is there a way to send an event through an RMI object?

I have several clients all referencing the same remote object through RMI, and I was wondering if it is possible to send an event to the stub object in all of the clients when one of them runs a remote method on it. For example, if the remote object "obj" has an "updateValue()" method and client A is running it through the stub object, ...

java.lang.outofmemoryError: java heap space problem

hello, I have to create a RMI program,when i run this program it will run only few minutes then show "java.lang.outofmemoryError: java heap space" problem. I have to use Window 7 with 1.5 GB RAM and JDK1.6 Thanks, ...

How do I test if a Java RMI object is alive?

How can I test if my reference to an remote object is still alive? ...

Questions about Java EE ?

In wiki, it says: Java Platform, Enterprise Edition [...] to deploy [...] distributed, multi-tier Java software, based largely on modular components running on an application server. As far as i know, distributed means "multiple computers" which is equal to "multiple servers", so why it says in the end "running on an application server...

Why should I use JMS and not RMI+Queue?

At the moment I am using RMI or hessian library to communicate between my server and clients (via a LinkedBlockingQueue). Now I read about JMS which could be used in this area too. Is this correct? If yes, would you mind to give me a simple list of advantages/disadvantages, because it seems to be a pretty complicated and 'fullblown-enter...

Implementing a IM platform in Java

If creating an IM platform in Java, which would be a better way to implement communications between the clients and server? I was thinking either RMI or just a socket connection... Advice please, Thanks ...

Is it possible to run the RMI Registry as a daemon

Is it possible to run the RMI Registry on a daemon thread? I'd like for it to shut down automatically when my unit tests are finished without calling a System.exit. ...

Is it possible for a thread to Deadlock itself?

Is it technically possible for a thread in Java to deadlock itself? I was asked this at an interview a while back and responded that it wasn't possible but the interviewer told me that it is. Unfortunately I wasn't able to get his method on how to acheive this deadlock. This got me thinking and the only situation that I can think of is...