• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 610
  • Last Modified:

Http and Https on Jboss

Hi all,

My company is currently developing an website on JBoss 4.04-GA (which is essentially like an E-commerce website).

Essentially it would consist of a simple informational webpage just in plain http and an shopping cart section which members would login and make purchases. Therefore anything after login and then on to the shopping cart have to be in https.

Also i have a hardware  application firewall that can encrypt http connection to https, however it can only encrypt based on the IP and port of the server.

Is it possible to have jboss run different 'contexts' on different ports?

like the information site would be hosted on port 80
and the login and transaction site would be on 8080

I know this sounds a little confusing, but i am trying to make jboss serve the website efficiently and securely with my firewall.

Thanks in advance
  • 2
1 Solution
Yes you can run JBoss simultaneously on the HTTP and SSL port by specifying different connectors in the server.xml.

The problem is all the applications  would be able to receive requests on this.


If you want, you can have your application send the HTTPS request on the specific port. The other thing is to have another JBoss server on your m/c that handles  login and transaction site over SSL.
jyzlimAuthor Commented:
Yea, i did managed to get it work on http and https simultaneously, however all the apps i am  running receive requests on both as well.

So what you are saying is its possible for me to run another Jboss service on the same server to handle the applications that require https?

That seems plausible but i am just worried about the memory usage on the server as well as JVM too.

Yes, you can do a separate JBoss service on the same box as long as you are careful with the ports used. There would be some memory/CPU ramifications but if you have a good box; I don't think that would be an issue.

The other thing that I can think of is plausible only if you want to use a connector from a web server to app server something like mod4j. You can service your http requests from the web server and then have it forward the requests it cannot service to the app server.

However almost always when this combination is used, it is to service the static resources(image/css/js) from the web server while the dynamic resources(JSPs etc) are serviced from the app server. So I doubt anyone has tried sending part of the request from web server(using the same context) and part from app server.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now