开发者

Connecting two Esper instances running in different JVMs (client / server mode?)

开发者 https://www.devze.com 2023-03-10 03:19 出处:网络
I have one host running a JVM that runs an Esper service. I have another host in which I\'d like to connect to the esper service running in the first JVM.

I have one host running a JVM that runs an Esper service. I have another host in which I'd like to connect to the esper service running in the first JVM.

I.e. I'd like to be able to do开发者_高级运维 something like this:

EPServiceProvider epService = EPServiceProviderManager.getProvider("host1:Processor1");

I can't find a way to do this from the documentation, and yet I would have thought it would be a fairly common requirement. How is this sort of thing generally done?


Esper doesn't really remote the administrative interface. I suppose it depends on exactly what you're trying to accomplish, but if you're trying to insert or listen on events, then I would use one of the Esper/IO services like Spring JMS, HTTP or Sockets.

If you're intent on accessing the service provider directly, you could create a JMX MBean wrapper for the EPServiceProvider and access remotely it over JMX. Most of the return types are remotable, but there are a couple that will not be.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号