rmi

Correct way to use Apache Shiro on distributed system using RMI? [duplicate]

怎甘沉沦 提交于 2019-12-08 07:51:28
问题 This question already has answers here : How to organize RMI Client-Server architecture (2 answers) Closed 6 years ago . I'm looking for some guidelines/tips on how to implement Apache Shiro as a part of a distributed system (client-server) using Java RMI. I've looked at the answer to this thread : How to organize RMI Client-Server architecture and I'm thinking of using something similar. What I have planned is a remote object (possibly a Singleton?) that handles the authentication when the

How to automatically copy data to new RMI threads?

六眼飞鱼酱① 提交于 2019-12-08 07:34:29
问题 I am adapting a little rmi client-server application. I have written several things : HelloInterface -> A Hello World interface for RMI Server -> The server app' Client -> The client app' Nothing special, but... I have put my hands in a new RMISecurityManager, which calls a JNI method and checks the permission for a separate user: package rmi; import java.rmi.RMISecurityManager; import java.io.*; public class NativeRMISecurityManager extends RMISecurityManager { private boolean unix;

Can't connect to Tigase with JMX from JBOSS 7.x

為{幸葍}努か 提交于 2019-12-08 06:44:49
问题 I have a problem with connecting to Tigase with JMX from JBOSS 7.x. For connection i use next code: import java.util.Hashtable; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorFactory; import javax.management.remote.JMXServiceURL; JMXServiceURL u = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + HOST_NAME + ":" + PORT + "/jmxrmi"); Hashtable<String, Object> env = new Hashtable<String, Object>(); String[] credentials = new String[] {"login","pass"};

Java RMI Server in Docker Container

萝らか妹 提交于 2019-12-08 06:19:41
问题 In a server i am running my docker container with an RMI-server jar file. I have tried several different configurations but i just cant get it working. My Serverside: public class Main extends UnicastRemoteObject implements RmiServerIntf { public static final String MESSAGE = "Hello World from docker in RMI"; public Main() throws RemoteException { super(0); // required to avoid the 'rmic' step, see below } public String getMessage() { return MESSAGE; } public static void main(String args[])

Java RMI and netstat output

帅比萌擦擦* 提交于 2019-12-08 04:54:29
I'm trying to make my RMI service work across a Firewall. I followed instructions in this answer to run both RMI Registry and my RMI service on port 1099, yet, I'm seeing different port numbers being opened on RMI client and server when I do netstat . [user@machine] ~ $ netstat -ant | grep 1099 tcp6 0 0 :::1099 :::* LISTEN tcp6 0 0 10.1.1.1:1099 10.1.1.2:33400 ESTABLISHED tcp6 0 0 10.1.1.1:1099 10.1.1.1:33378 ESTABLISHED tcp6 0 0 10.1.1.1:33408 10.1.1.1:1099 ESTABLISHED tcp6 0 0 10.1.1.1:1099 10.1.1.1:33408 ESTABLISHED tcp6 0 0 10.1.1.1:46866 10.1.1.2:1099 ESTABLISHED tcp6 0 0 10.1.1.1:1099 10

Troubleshooting Java RMI Client network connection refusal

心已入冬 提交于 2019-12-08 04:43:17
问题 This has never worked before - I'm setting the environment up for the first time. MULTIPLE UPDATES BELOW I've got my RMI server running in a "daemon" type of process because I want it running at system startup like a service (not using the xinitd feature), so I can utilize SSL, and so I can give commands to the daemon pertaining to what goes into the registry via a separate mechanism. (IOW, I'm not using something like Runtime.getRuntime().exec("rmiregistry 2020"); ) I know the RMI server is

Java RMI and netstat output

做~自己de王妃 提交于 2019-12-08 04:42:52
问题 I'm trying to make my RMI service work across a Firewall. I followed instructions in this answer to run both RMI Registry and my RMI service on port 1099, yet, I'm seeing different port numbers being opened on RMI client and server when I do netstat . [user@machine] ~ $ netstat -ant | grep 1099 tcp6 0 0 :::1099 :::* LISTEN tcp6 0 0 10.1.1.1:1099 10.1.1.2:33400 ESTABLISHED tcp6 0 0 10.1.1.1:1099 10.1.1.1:33378 ESTABLISHED tcp6 0 0 10.1.1.1:33408 10.1.1.1:1099 ESTABLISHED tcp6 0 0 10.1.1.1:1099

RMI from Tomcat to Weblogic

半城伤御伤魂 提交于 2019-12-08 03:57:39
问题 I have a webapp that is integrating with a RMI interface on a weblogic server. During development I used the wlfullclient.jar and everything was fine. But as I deployed the war on Tomcat I encountered a problem: validateJarFile(.../wlfullclient-10.3.2.jar) - jar not loaded. See Servlet Spec 2.3 ...Offending class: javax/servlet/Servlet.class So wlfullclient.jar has its own implementation of javax.servlet.Servlet and Tomcat doesnt like it. What can I do? Without wlfullclient.jar I get javax

IPC Suggestion for lots of small data [closed]

こ雲淡風輕ζ 提交于 2019-12-08 03:38:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . We are going to implement a multi-process software and we are looking for a proper IPC. Facts: We are going to use Java (and C if we face something time critical) All the processes are on a single Unix machine. The processes sends each other lots (about 1000) of small (about 4k) data per second. What IPC tech do

Can't connect to Tigase with JMX from JBOSS 7.x

人盡茶涼 提交于 2019-12-08 00:21:23
I have a problem with connecting to Tigase with JMX from JBOSS 7.x. For connection i use next code: import java.util.Hashtable; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorFactory; import javax.management.remote.JMXServiceURL; JMXServiceURL u = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + HOST_NAME + ":" + PORT + "/jmxrmi"); Hashtable<String, Object> env = new Hashtable<String, Object>(); String[] credentials = new String[] {"login","pass"}; env.put(JMXConnector.CREDENTIALS, credentials); JMXConnector jmxConnector = JMXConnectorFactory