application-server

What are the differences when deploying on Tomcat vs. Websphere?

醉酒当歌 提交于 2019-11-30 02:54:24
问题 If I were to deploy an application on Tomcat vs. Websphere, what are things that I need to consider? Do I have to develop my Java code differently if developing in one app server vs another? Edit: I will be funneling people from a website into a web app that does credit card processing and e-signatures (cc processing and e-sigs are through separate services). That is its sole job 回答1: You cannot use EJBs on Tomcat (unless you add OpenEJB). If your WebSphere deployment uses EJBs, you'll have

Tomcat / jBOSS sessions - where are they usually stored?

拈花ヽ惹草 提交于 2019-11-29 08:45:00
Preface: I'm not a java developer. I have a question about Tomcat / jBOSS and other java application servers. Where are sessions (session data) stored? In PHP, sessions are usually stored in the database which means you can easily share session data in a load balanced environment. In Tomcat and other application servers, session seem to be stored in memory by default which would not apply in a load balanced env. While it is true that PHP stores sessions in files by default, it takes a few lines to hook it up to a DB. Is the same true of applications servers? Basically, what's the pros for

Disabling PUT TRACE DELETE request in Apache Tomcat 6.0

非 Y 不嫁゛ 提交于 2019-11-29 02:01:34
I need to disable PUT, DELETE & TRACE HTTP requests on my Application Server, Apache Tomcat 6.0. All other sources, i have searched till now, have directed me towards the limit parameter in httpd.conf , Hence I'd put it before-hand that I am not using Apache Web Server, and requests are directly being handled by Tomcat, and so there is no httpd.conf in picture. Please suggest how should I do it on Tomcat? James Schek Inside your WEBINF, add you can add a security constraint: <security-constraint> <web-resource-collection> <web-resource-name>Forbidden</web-resource-name> <url-pattern>/blah/*<

Web User Interface for a Java application

╄→гoц情女王★ 提交于 2019-11-28 19:35:37
I'm trying to create a web user interface for a Java application. The user interface is going to be very simple, consisting of a single page with a form for users to pose their queries, and a results page -- sort of like Google's search engine or Ask.com. I'm quite familiar with the base API of Java, but I don't have much experience in using Java for Web environments (though I've used ASP.NET), so I'm looking for some advice: What web application server should I use? Note that my interface is very light, and I just want something that is fast, easy to start/reset/stop and (re)deploy my

Difference between web server, web container and application server

二次信任 提交于 2019-11-28 13:26:41
问题 Please tell me the Difference between web server, web container and application server. 回答1: Your question is similar to below: What is the difference between application server and web server? In Java: Web Container or Servlet Container or Servlet Engine : is used to manage the components like Servlets, JSP. It is a part of the web server. Web Server or HTTP Server: A server which is capable of handling HTTP requests, sent by a client and respond back with a HTTP response. Application Server

DataSource or ConnectionPoolDataSource for Application Server JDBC resources

元气小坏坏 提交于 2019-11-28 06:21:59
When creating JNDI JDBC connection pools in an application server, I always specified the type as javax.sql.ConnectionPoolDataSource . I never really gave it too much thought as it always seemed natural to prefer pooled connections over non-pooled. However, in looking at some examples ( specifically for Tomcat ) I noticed that they specify javax.sql.DataSource . Further, it seems there are settings for maxIdle and maxWait giving the impression that these connections are pooled as well. Glassfish also allows these parameters regardless of the type of data source selected. Are javax.sql

Client side sessions

ぃ、小莉子 提交于 2019-11-27 18:26:57
问题 I want the clients of several related web apps to hold their own authentication state. This improves scalability, because no session replication between cluster nodes is needed. And it makes integration of different server technologies like Java Servlets and PHP easier. My plan is as follows: Set a signed and encrypted cookie with the user name and session expiration time after client authentication. When the client sends a request, the server decrypts and validates the cookie and grants or

Web User Interface for a Java application

徘徊边缘 提交于 2019-11-27 12:24:34
问题 I'm trying to create a web user interface for a Java application. The user interface is going to be very simple, consisting of a single page with a form for users to pose their queries, and a results page -- sort of like Google's search engine or Ask.com. I'm quite familiar with the base API of Java, but I don't have much experience in using Java for Web environments (though I've used ASP.NET), so I'm looking for some advice: What web application server should I use? Note that my interface is

DataSource or ConnectionPoolDataSource for Application Server JDBC resources

拈花ヽ惹草 提交于 2019-11-27 01:17:37
问题 When creating JNDI JDBC connection pools in an application server, I always specified the type as javax.sql.ConnectionPoolDataSource . I never really gave it too much thought as it always seemed natural to prefer pooled connections over non-pooled. However, in looking at some examples (specifically for Tomcat) I noticed that they specify javax.sql.DataSource . Further, it seems there are settings for maxIdle and maxWait giving the impression that these connections are pooled as well.

Get the server port number from tomcat without a request

☆樱花仙子☆ 提交于 2019-11-27 00:38:58
Is there any Tomcat API or configuration available which can tell an application (probably on startup), what port its running on without a request? Imagine a scenario where there are two web applications running in the same Tomcat and one of which need to invoke a web service from the other one. We don't want the request to leave the Tomcat (if you use the Apache server name or absolute URL, the request will go out and come back again and it can go to any instance) and come back in. For that I know the name of the machine but no way to get the port number. I know I can hard code this