简体   繁体   中英

How to start WildFly8 server (in OpenShift)

This question is in relation to my previous question .

I want to implement the new HTML5 WebSocket feature in WildFly 8.2.1 in OpenShift. My previous post has my java class (which is the server) and a html client and the pom.xml file. The problem was whenever I made opened the MyTest.html, the WebSocket connection would immediately disconnect.

I was reading this article on how to implement WebSockets on OpenShift using WildFly 8.2.1. It said that you actually have to start the wildfly server by action hooks and by doing so in the terminal. I have no clue what they are talking about. Could you please assist me in this manner as I am new to this.

Thank you for your help!

First, I think you should continue with your previous question . I see that there's some confusion about that the server needs to be bound to port 8080 and the client should be connecting to 8000 when using websockets.

Second, the article you are referring is using a DIY cartridge to run the WilDFly server. There are better options how to do that now - using one of the available OpenShift cartridges ( WilDfly 8.2.1 is among them). That way you don't need to worry about the initial setup that much. If you have not used one of the WildFly cartridges, this guide could be helpful.

I think, that after following up the above, you may no longer need this, but as you've asked, here is a guide on how to manage WildFly server on OpenShift (that includes suspend, resume). You will need to use rhc port-forward <your_wildfly_app> in order to access it using your web browser. (The WildFly admin runs on the 9990 port.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM