Link to home
Start Free TrialLog in
Avatar of jyzlim
jyzlim

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of anilallewar
anilallewar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jyzlim
jyzlim

ASKER

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.