I need help with assingment report.I am building a website based on 3tier architecture so i am using XAMMP Apache for running and testing website. XAMMP also consist of phpmyadmin by which i can add or retrieve or modify data in database. So i am confused whether XAMMP Apache is the layer between client and database making it 3rd tier architecture?
I have made a Java Swing application, in the GUI the user can select the type of element and choose a date then the element's informations will be shown on a JTable.i used easyPHP to create the DB.
so what is the role of apache server in this case!
can i consider it like an application server ?
I have a JavaEE app structured in a 2-tier architecture. 1st tier has a tomEE that handles https requests and serves the contents, relying on an oracle database in the 2nd tier.
Since the DB connection can be set to be secure and since I am using https, it's pretty safe (at least for these two aspects).
Now, I need to port this app into a 3-tier architecture and all channels must be secure. My first idea was to just move tomEE to the middle tier and add some apache httpd in the first tier, as a reverse proxy.
The problem is the communication between the first and second tier. If I've understood well, https is by design a protocol that ensures no MITM attacks, so httpd simply can't forward https.
OTOH, if both httpd have their own SSL certificates, I could keep the communication encrypted, but these certificates management would not be trivial.
I could just open an SSL tunnel from the 1st and 2nd tier, so TomEE could just run on plain http and let httpd deal with the HTTPS but I am not sure if this solution would scale or have an impact on performance.
Or I could try some EJB to EJB communication, using another TomEE in the 1st tier :-) but this does not seems right.
What would be the best approach for this situation?