rmi

RMI or socket connection to Java Program on OpenShift

匆匆过客 提交于 2019-12-11 10:38:08
问题 I have this following simple scenario: I have created a JBossAS7 application on OpenShift. I have an index.jsp that calls a Java Class every time it's loaded. This Java class gathers some data and saves it as a string. What I want to do now is get the text contained in that String, but NOT have it displayed on the page. What I need is a mechanism like RMI or a socket that I can connect to and simply receive the String using a client program. Unfortunately, OpenShift blocks all ports and I

Bind multiple remote objects to the same RMI registry

谁说我不能喝 提交于 2019-12-11 08:32:44
问题 I have a client program that calls remote methods on a server. Now, I want to create 3 different servers based upon the IP address sent by the client. Question: Should I create 3 different Remote objects and bind them to the same registry. or should I create 3 different Remote objects and bind them to their respective registry ?? What I am doing right now is one Remote object and binding all 3 objects to the same registry. Remote obj=UnicastRemoteObject.exportObject(this,2026); Registry r

Java反序列化漏洞

拟墨画扇 提交于 2019-12-11 08:30:18
一、Java 序列化与反序列化 Java 序列化是指把 Java 对象转换为字节序列的过程便于保存在内存、文件、数据库中,ObjectOutputStream类的 writeObject() 方法可以实现序列化。 Java 反序列化是指把字节序列恢复为 Java 对象的过程,ObjectInputStream 类的 readObject() 方法用于反序列化。 序列化与反序列化是让 Java 对象脱离 Java 运行环境的一种手段,可以有效的实现多平台之间的通信、对象持久化存储。主要应用在以下场景: HTTP: 多平台之间的通信,管理等 RMI:是 Java 的一组拥护开发分布式应用程序的 API,实现了不同操作系统之间程序的方法调用。值得注意的是,RMI 的传输 100% 基于反序列化,Java RMI 的默认端口是 1099 端口。 JMX: JMX 是一套标准的代理和服务,用户可以在任何 Java 应用程序中使用这些代理和服务实现管理,中间件软件 WebLogic 的管理页面就是基于 JMX 开发的,而 JBoss 则整个系统都基于 JMX 构架。 ​ 2016年Spring RMI反序列化漏洞今年比较出名的:Jackson,FastJson Java 十分受开发者喜爱的一点是其拥有完善的第三方类库,和满足各种需求的框架;但正因为很多第三方类库引用广泛

GAE messaging service

偶尔善良 提交于 2019-12-11 07:27:25
问题 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 Spring framework. 回答1: XMPP is a powerful and flexible messaging protocol, and this article shows how to do the GAE side of it in both Java and Python. For XMPP

java.rmi.UnexpectedException: Failed to parse descriptor file; nested exception is: java.rmi.server.ExportException:

ぐ巨炮叔叔 提交于 2019-12-11 06:45:14
问题 I have upgraded my web application from java6 to java7. I have deployed web tier, ejb tier and web service tier on weblogic 10.3 successfully. Everything works fine except stateful ejb. During these ejb invocation , I get following exception on server logs. java.rmi.UnmarshalException: cannot unmarshaling return; nested exception is: java.rmi.UnexpectedException: Failed to parse descriptor file; nested exception is: java.rmi.server.ExportException: Failed to export class

race condition in RMI java - 2 client 1 server

不羁岁月 提交于 2019-12-11 06:39:39
问题 i have two clients in two different processes that communicate through RMI with the server. my question is: what happends if both clients invoking the server's stub at the same time? thanks for you time, me 回答1: This tutorial demonstrates the threaded nature of RMI servers (see task 7.1). They quote from the RMI spec: A method dispatched by the RMI runtime to a remote object implementation (a server) may or may not execute in a separate thread. Calls originating from different clients Virtual

Alternatives to RMI for IPC?

穿精又带淫゛_ 提交于 2019-12-11 06:31:58
问题 I have 2 processes that need to communicate over the same PC and different PCs. In the local case the process communication is among different processes e.g Process A and Process B . In the remote case it will be among 2 instances of Process A running in different PCs. I will create them from scratch and I am wondering what is the best approach. I am aware of RMI and sockets but I was wondering for my case as described, and taking also into account that the messages exchanged are small and

Access Sling's embbed Jackrabbit over RMI

本小妞迷上赌 提交于 2019-12-11 06:26:27
问题 I want to connect to the embedded Jackrabbit in Spring over RMI but can't figure out how. Is the RMI endpoint started? If not how do I start it? Thank you, Marty 回答1: http://wiki.apache.org/jackrabbit/RemoteAccess should provide the relevant info. 来源: https://stackoverflow.com/questions/12961025/access-slings-embbed-jackrabbit-over-rmi

CORBA lookup for java:comp/env/ or java:global

 ̄綄美尐妖づ 提交于 2019-12-11 05:21:42
问题 The CORBA lookup, EntAppLookup, works so far as it goes, better than running the appclient . However, I would at least like to use standard naming. Specifically, java:comp/env , or similar conventions, to reference the EJB. Deploying the Enterprise Application, with EJB module, and running the CORBA lookup: thufir@dur:~$ thufir@dur:~$ ll NetBeansProjects/EntAppEJB/dist/EntAppEJB.ear -rw-rw-r-- 1 thufir thufir 4659 Oct 11 22:17 NetBeansProjects/EntAppEJB/dist/EntAppEJB.ear thufir@dur:~$ thufir

Interprocess communication between XCode (Objective C) and Java RMI

≡放荡痞女 提交于 2019-12-11 04:38:09
问题 I have an RMI application that has service implementation and it has a lot of code in it and I do not want to redo the business logic just to support an iPhone app. Could someone assist me on a best way to access these RMI services using Objective C? Or is there any other way for making this possible, please let me know if this is a terrible question, being a software programmer, I would expect that there would be a way for heterogeneous programs to communicate with each other, so this