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
jyzlimAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

anilallewarCommented:
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.

http://i-proving.ca/space/Technologies/JBoss/Configuring+JBoss+SSL

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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.

0
anilallewarCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.