rmi

RMI with SSL - Handshake Exception (no cipher suites in common) when Server starts

本小妞迷上赌 提交于 2019-12-23 04:45:34
问题 Updated! I'm getting an SSL Handshake Exception ( javax.net.ssl.SSLHandshakeException: no cipher suites in common ) when I try to run the server. The remote method only adds two integers and should return the result. This is the exception with the debug set to "all" (this is for academic purposes): f4e@ubuntu:~/src$ java -cp /home/f4e/src:/home/f4e/public_html/classes/compute.jar -Djavax.net.debug=all JavaMainServer keyStore is : /home/f4e/src/serverkeystore keyStore type is : jks keyStore

Java: garbage collection for RMI target object?

為{幸葍}努か 提交于 2019-12-23 04:11:56
问题 While getting my hands dirty with RMI, I got a java.rmi.NoSuchObjectException exception, which led me to this question: java.rmi.NoSuchObjectException: no such object in table but my question is different . I'm creating the impl object in my main method and hence in the main thread. If I do this: FooImpl fi = new FooImpl(); foo = (Foo) UnicastRemoteObject.exportObject(fi, 0); things work fine. If I do this: foo = (Foo) UnicastRemoteObject.exportObject(new FooImpl(), 0); I see that FooImpl

Network communication options in Java (Client/Server)

给你一囗甜甜゛ 提交于 2019-12-23 03:23:08
问题 There is RMI, which I understand to be relatively fragile, direct Socket connections, which is rather low level, and Strings, which while about as solid as it gets seems to be the metaphorical PHP. What less basic options do I have for internet based Client/Server communication ? What are the advantages/disadvantages ? What are some concerns I should take into consideration ? Third party library suggestions are fine, as long as they stay platform independent (i.e. no restrictive native code).

why java RMI can't get return value by reference

拟墨画扇 提交于 2019-12-23 02:07:09
问题 In RMI, I can only get return value by InetSocketAddress address = new InetSocketAddress(hostname, port); Server server = Stub.create(Server.class, address); int return = server.getValue(); But, I can't get it by public class Return { int value; } InetSocketAddress address = new InetSocketAddress(hostname, port); Server server = Stub.create(Server.class, address); Return return = new Return(); server.getValue(return); I know arguments will be serialized and deserialized, but that's not my

Simple entry point for single RMI service?

断了今生、忘了曾经 提交于 2019-12-22 14:12:34
问题 I have several services which export an RMI interface. They used to offer this by creating their own registry (with LocateRegistry.createRegistry ) and binding it there. However, that became impossible when the services were moved to run as separate applications in the same VM (Tomcat), because for some reason only one registry can be present there. I worked around this by using a central registry for all the services. Even then, I'm not really interested in the multi-object registry role of

Spring + Websphere 8.5: Unable to lookup JNDI name [java:comp/websphere/ExtendedJTATransaction]

六眼飞鱼酱① 提交于 2019-12-22 14:06:13
问题 There is a Websphere AS 8.5 where runs XA Datasource. Also there is a Spring application which must work in this environment and connect to the datasource. An application context is loaded by a servlet and the application uses RmiExporters to provide RMI access to some services (which are shared in the separate thread) and all DAOs' methods are marked with @Transactional . If I try to write something to the database from the main thread (e.g. during initialization of any class), it works

Spring + Websphere 8.5: Unable to lookup JNDI name [java:comp/websphere/ExtendedJTATransaction]

我的未来我决定 提交于 2019-12-22 14:05:39
问题 There is a Websphere AS 8.5 where runs XA Datasource. Also there is a Spring application which must work in this environment and connect to the datasource. An application context is loaded by a servlet and the application uses RmiExporters to provide RMI access to some services (which are shared in the separate thread) and all DAOs' methods are marked with @Transactional . If I try to write something to the database from the main thread (e.g. during initialization of any class), it works

Apache Spark and Remote Method Invocation

只谈情不闲聊 提交于 2019-12-22 13:58:33
问题 I am trying to understand how Apache Spark works behind the scenes. After coding a little in Spark I am pretty quite sure that it implements the RDD as RMI Remote objects , doesn't it? In this way, it can modify them inside transformation, such as map s, flatMap s, and so on. Object that are not part of an RDD are simply serialized and sent to a worker during execution. In the example below, lines and tokens will be treated as remote objects , while the string toFind will be simply serialized

Apache Spark and Remote Method Invocation

陌路散爱 提交于 2019-12-22 13:58:16
问题 I am trying to understand how Apache Spark works behind the scenes. After coding a little in Spark I am pretty quite sure that it implements the RDD as RMI Remote objects , doesn't it? In this way, it can modify them inside transformation, such as map s, flatMap s, and so on. Object that are not part of an RDD are simply serialized and sent to a worker during execution. In the example below, lines and tokens will be treated as remote objects , while the string toFind will be simply serialized

Is there a way to completely disable RMI in a java application?

青春壹個敷衍的年華 提交于 2019-12-22 10:54:05
问题 In our application remote Procedure call is solved with an own netty based command dispatcher system. We have a lot of modules (about 20) and I want to run all modules in separate jvm-s. My problem is, that RMI spawns about 17 threads for each JVM. I do not need RMI at all (as far as I know). Can I completely disable RMI for a jvm? Or at least configure it in a way that it does not use this many threads? 回答1: StuartMarks is correct. RMI doesn't start any threads until you use it. Possibly you