rmi

java RMI communication with non java entity?

拟墨画扇 提交于 2019-12-25 04:40:26
问题 Is it possible to communicate with non java entity sing RMI protocol What is special about RMI IIOP? Thx 回答1: It's technically possible. You will need to implement a RMI server on the non-java side. I would not recommend it though. Try exploring the possibility of using WebServices, which is commonly used for that: communicating entities from (probably) different platforms . 回答2: RMI is protocol supposed to be purely used by Java applications. It put some requirements on communicating which

JAVA RMI Client

自作多情 提交于 2019-12-25 01:22:15
问题 I have the problem that my RMI Application Client isn't working when i hit the "run" Button in Eclipse. It throws the following exception: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.net.MalformedURLException: unknown protocol: rsrc at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at java.rmi.Naming.lookup(Unknown Source) ... I looked on the internet and people seem to have that problem when generating JARs from eclipse. But my (ant-built)

Concurrent usage of an EJB that is exposed as RMI service

a 夏天 提交于 2019-12-25 00:37:24
问题 I have built an application which simulates several clients using the same RMI service. This service is then invoked concurrently by every client retrieving and uploading data to the server. My concern is if every remove invocation takes some time does the remote service implementation (jBoss 5 EJB) can handle these calls remotely or it serializes them down. If the latter is the case then I have to limit the number of clients to prevent slowing them down. 回答1: RMI calls are not sequentialized

Pass by reference not returning in RMI for ArrayList

会有一股神秘感。 提交于 2019-12-24 21:33:22
问题 I've got an RMI call defined as: public void remoteGetCustomerNameNumbers(ArrayList<String> customerNumberList, ArrayList<String> customerNameList) throws java.rmi.RemoteException; The function does a database lookup and populates the two ArrayLists. The calling function gets nothing. I believe this works with Vector types. Do I need to use the Vector, or is there a way to get this to work without making two calls. I've got some other ideas that I'd probably use, like returning a key/value

Java RMI newbie having trouble getting a basic hello world app to work

我们两清 提交于 2019-12-24 19:58:40
问题 I wrote a simple implementation class: public interface MyRemote extends Remote { public String sayHello() throws RemoteException; } Then a remote server class public class MyRemoteImpl extends UnicastRemoteObject implements MyRemote{ protected MyRemoteImpl() throws RemoteException { } public String sayHello() throws RemoteException { return "Server says 'Hello World!'"; } public static void main(String args[]) { try { MyRemote service = new MyRemoteImpl(); Naming.rebind("RemoteHello",

分布式OA办公系统开发笔记(1)架构搭建遇到的问题

老子叫甜甜 提交于 2019-12-24 18:27:50
java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class tk.mybatis.spring.annotation.MapperScan.factoryBean()java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class tk.mybatis.spring.annotation.MapperScan.factoryBean() < dependency > < groupId > org.mybatis.spring.boot </ groupId > < artifactId > mybatis-spring-boot-starter </ artifactId > < version > 1.3.1 </ version > </ dependency > 由于我项目中只引入了tk.Mapper,但tk.mapper是需要mybatis的 问题待解决 2019-12-24 18:16:17.306 DEBUG 10448 --- [3)-192.168.56.1] sun.rmi.loader : RMI TCP

Get the client Ip address in RMI Server when cleint makes a call registry.lookup(“RMI Server”)

依然范特西╮ 提交于 2019-12-24 14:01:13
问题 I want to get the ip address of each client in the server side for which the server return a stub. Is it possible? 回答1: See RemoteServer.getClientHost(). You can invoke that inside your remote method implementations. You can't get it when they do the Registry lookup however. 来源: https://stackoverflow.com/questions/4623053/get-the-client-ip-address-in-rmi-server-when-cleint-makes-a-call-registry-lookup

VisualVM profiling is polluting results

北城以北 提交于 2019-12-24 11:54:12
问题 I am using VisualVM memory profiling to analyse the memory allocation behavior of an application. Unfortunately, it seems the profiling process itself is polluting my results. I continually see 80Mb being allocated over the timeframe of 5 minutes, which is due to memory profiling results being serialised over the JMXBean RMI connection. This memory is always in generation 1 and is immediately GC'd when I ask for it, but it is still annoying that this is showing up. Can I filter memory

How to reference a jar (containing only stubs) created with rmic:package maven goal from a POM?

人盡茶涼 提交于 2019-12-24 11:13:09
问题 I have a RMI app and the Stubs are generated with maven (rmic:rmic). Then I use the rmic:package goal and get a nice little jar with only the stubs. Now the bis question is: How can I reference this jar from the poms of other projects? I cant give it an ArtifactId (or do I?!) and when I use the classifier, it downloads all dependecies of the original Project and NOT the jar with the stubs. Please give me a hint, how I can actually use this jar in a nice behaving maven way :-) thanks in

JSF2: How to initiate services at deployment [duplicate]

馋奶兔 提交于 2019-12-24 09:59:36
问题 This question already has an answer here : Using special auto start servlet to initialize on startup and share application data (1 answer) Closed 4 years ago . For university project I am developing a webapplication with JSF. My excercise is to do the frontend. A fellow studend is supposed to do backend stuff. Both parts are designed to be seerate applications. Both communicate through RMI. I want to open the connection once at deployment. I am at the point to settle up the connection now. I