How to do remote SLSB via http:remoting through mod_cluster?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to do remote SLSB via http:remoting through mod_cluster?

sgao
We have multiple wildfly 10 instances running SLSB and  web application.  We put a mod_cluster httpd (1.3.1) as a front end load balancer. We use http protocol instead of AJP.
Web load balancing works well and we can use  env.put(Context.PROVIDER_URL, "http-remoting://node1:8080,http-remoting://node2:8080,http-remoting://node3:8080") for SLSB remote access.

However, we want to expose only one http port (mod_cluster port) externally which mean both web access and EJB remote access have to go through the httpd port. I want to know is it possible to do EJB remote access through mod_cluster? If yes, how to configure mod_cluster to map http-remoting request to wildfly?  Or mod_cluster only allows web access and we have to use env.put(Context.PROVIDER_URL, "http-remoting://node1:8080,http-remoting://node2:8080,http-remoting://node3:8080") for SLSB remote access?

thanks
Reply | Threaded
Open this post in threaded view
|

Re: How to do remote SLSB via http:remoting through mod_cluster?

Eduardo Sant´Ana da Silva
Maybe this can help:


Did you try to mark your ejb as @Clustered?



2016-03-29 16:26 GMT-03:00 sgao <[hidden email]>:
We have multiple wildfly 10 instances running SLSB and  web application.  We
put a mod_cluster httpd (1.3.1) as a front end load balancer. We use http
protocol instead of AJP.
Web load balancing works well and we can use  env.put(Context.PROVIDER_URL,
"http-remoting://node1:8080,http-remoting://node2:8080,http-remoting://node3:8080")
for SLSB remote access.

However, we want to expose only one http port (mod_cluster port) externally
which mean both web access and EJB remote access have to go through the
httpd port. I want to know is it possible to do EJB remote access through
mod_cluster? If yes, how to configure mod_cluster to map http-remoting
request to wildfly?  Or mod_cluster only allows web access and we have to
use env.put(Context.PROVIDER_URL,
"http-remoting://node1:8080,http-remoting://node2:8080,http-remoting://node3:8080")
for SLSB remote access?

thanks




--
View this message in context: http://wildfly-development.1055759.n5.nabble.com/How-to-do-remote-SLSB-via-http-remoting-through-mod-cluster-tp5716788.html
Sent from the WildFly Development mailing list archive at Nabble.com.
_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev



--
___________________________
Eduardo Sant'Ana da Silva - Ph.D.
Researcher / IT Consultant


_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to do remote SLSB via http:remoting through mod_cluster?

sgao
Yes, I do put @Clustered. However, i vaguely remembered @Clustered is not required in wildfly 10 anymore.

Anyway, cluster works to me. My question is how to use http-remoting:// through mod_cluster/httpd/any sort of loadbalancer?

I saw a feature request for modcluster (https://issues.jboss.org/browse/MODCLUSTER-438) regarding to adding websocket support. I will then assume mod_cluster doesn't support http:remoting yet?

Can anyone confirm that mod_cluster doesn't support http:remoting yet.

Thanks