9

I have set up an EJB on Wildfly and wrote a client to access it. With the protocol "http-remoting" it works fine.

Unfortunately, I am not sure about the functional details of http-remoting.

I guess this is a http-tunnel of the RMI protocol. But I can't find any suitable resources about this topic. So I am really unsure.

Does anybody know how http-remoting is working as a protocol?

Cœur
  • 37,241
  • 25
  • 195
  • 267
nikmaster
  • 421
  • 1
  • 6
  • 19
  • 1
    It looks like remote EJB via HTTP: http://www.javaworld.com/article/2072246/simple-spring-http-remoting-example.html – The Bitman Mar 23 '17 at 09:38

2 Answers2

10

It's a protocol implemented in JBoss Remoting. There is a GitHub repo for it as well.

Also depending on the version of WildFly you're using you may need to use remote+http or remote+https. The http-remoting protocol will still work, but is deprecated.

James R. Perkins
  • 16,800
  • 44
  • 60
  • thank for your answer, do you know the differences between remote+http and http-remoting? are both http tunnels? – nikmaster Mar 27 '17 at 11:38
  • 2
    They are the same. `http-remoting` has been deprecated and `remote+http` should be used. It may depend on the version of WildFly you're using though. I don't recall which version `remote+http` came in on. – James R. Perkins Mar 27 '17 at 16:25
  • So this will not work with non-jboss containers? E.g. TomEE? – halpdoge Mar 17 '18 at 17:46
  • It will more than likely only work for JBoss/WildFly containers. It's really a protocol for JBoss Remoting which JBoss EAP and WildFly happen to use. – James R. Perkins Mar 19 '18 at 15:34
1

From JBoss Redhat solutions site (https://access.redhat.com/solutions/3259861) remote: is the JBoss EAP 6 remoting protocol. It is not HTTP and cannot be used through a load balancer as it is designed to make a persistent connection to a host

http-remoting http-remoting: / https-remoting: is the JBoss EAP 7.0+ remoting protocol that uses http-upgrade, it will connect via HTTP and then use http-upgrade and switch to the remoting protocol. Though it is HTTP, it cannot be used through a load balancer for load balancing, it is designed to make a persistent connection to the remote host and remain connected until the JVM is shut down or closed by the client.

remote+http Works the same as http-remoting.

http In JBoss EAP 7.2 this protocol can be used as an HTTP protocol that can be used through a load balancer as it does not use http-upgrade and it can be load balanced via an HTTP load balancer.

ssRock
  • 21
  • 1
  • Hi, this doesn't seem very useful seeing as the question was already answered in 2017 and http-remoting has not massively changed since. – bytehala Mar 04 '21 at 21:47