I think that if you run jboss with -Djetty.port=9080 you'll get what you're looking for. If you're running in a Windows environment, set and environment variable called JAVA_OPTS=-Djetty.port=9080 and then run jboss using the script. It works for me.
How did you find this setting? Is there a reference as to the Jetty settings within JBoss?
Somewhere in the Jetty docs I think. This has more to do with Jetty than it does with JBoss.
Thanks! Is there any way to setup more than one Jetty listener without creating an entire new JBoss instance? In other words, I want 5 Jetty HTTP listeners on ports 9090, 9091...9094 utilizing JBoss.
You might have more luck posting this question over on the Jetty mailing list. I haven't tried to do what you're asking, but it seems to me it should be possible.
Thank you very much. I will try the JAVA_OPTS options.
The sar file is a war file is a jar file. If you explode the jar file (jar xf jetty-plugin.sar), edit (emacs META-INF/jboss-service.xml), then jar it again (jar cvf ..\jetty-plugin.sar *), it deploys just fine.
- jetty-plugin.sar has been rebranded jbossweb.sar
- it is deployed unpacked (to make editing jboss-service.xml easier)
If you are looking at doc on jetty.mortbay.org then everywhere you see jetty.xml think the ConfigurationElement attribute in the jboss-service.xml, since this is where it is now embedded into the larger JBoss descriptor.
Yes, you can do anything in this ConfigurationElement that you can do in a jetty.xml - including adding multiple listeners....
So when I setup multiple listeners with the jetty-plugin.sar... how do I then bind specific .ear files to them?
concept would be....
jettylistener:8081 --> application1.ear
jettylistener:8082 --> application2.ear
jettylistener:8083 --> application3.ear