application-server

HttpServletRequest reuse

喜你入骨 提交于 2019-12-04 03:31:12
问题 It seems that some servlet containers reuse HttpServletRequest (or more generally, ServletRequest ) instances between requests. Question: Can someone point to the servlet spec where this behavior (or the validity rules for references to such instances) is defined ? 回答1: It is not defined in the Servlet API. It is an implementation detail. In 3.11 for request objects (and 5.6 for response objects) Each request object is valid only within the scope of a servlet’s service method, or within the

Java EE - who implement the specification? [duplicate]

烈酒焚心 提交于 2019-12-04 02:58:09
This question already has answers here : Closed 3 years ago . What exactly is Java EE? (4 answers) I have some experience in core Java and Java EE. I read the various question on SO to understand what exactly Java EE is? And few answers in SO are: what-exactly-is-java-ee , what-is-java-ee I have some doubts: 1) If Java EE is just a specification, who does implement them? Do Application Servers (like JBOSS, GlassFish) implement these specifications? 2) If I am correct the EJB specification is implemented by EJB container, and I believe EJB Container is part of Application Server. Now, when we

Last Resource Optimization

。_饼干妹妹 提交于 2019-12-03 22:45:49
问题 I'm writing a Resource Adaptor which does not support two phase commit. I know there is an optimization technique called: "Last Resource Optimization". On JBoss your XAResource class should implement LastResource in order to have the optimization. My question is: how this can be done in WebLogic, WebSpehre, Glassfish, etc... 回答1: Weblogic: AFAIK (may be very wrong) only JDBC drivers can be used with LRO, and it's a purely administrative task . When a driver doesn't support XA, it can be

Jboss or Tomcat

一曲冷凌霜 提交于 2019-12-03 20:46:47
I'm working in an infrastructure team(Jboss 4.02/Tomcat 5.5/Weblogic 8.1 servers)in my company...some of the weblogic java applications are moving to jboss/tomcat servers.So what are the criterias we need to consider whether we need to go for jboss or tomcat? which is the best option? Thanks in Advance, Rakhesh The main difference is certainly the fact that JBoss is an application server and supports the full Java EE stack, while Tomcat is a servlet engine and supports only a small fraction of the APIs which are defined in Java EE. So, your main criteria should be: Which APIs (Frontend,

NGINX with Tomcat configuration

。_饼干妹妹 提交于 2019-12-03 14:19:39
问题 I am new to Nginx and I need your help, According to many forums I understood that all our static pages are stored in Nginx. When there is request comes I have to pass that request to tomcat for data and after response from tomcat response generated. Currently, I have just done that I request directly passed to tomcat and respond to request. but I think that is not solution for performance. So anyone can Help me? 回答1: You can using proxy_pass mapping to your tomcat server port, for example :

Where to install GlassFish on Linux?

放肆的年华 提交于 2019-12-03 11:56:14
问题 DISCLAIMER: I'm relatively new to Linux. I debated putting this on SuperUser or ServerFault because the answer does require an explanation of Linux as a system (and not a specific programming problem), however I'm interested in this from a Java developer's perspective, and I argue that this is a specific problem because where I install GlassFish greatly impacts my Java configuration, and ultimately, app configuration. Not to mention posting this question on those other sites probably won't

What criteria should I use to evaluate a Perl “app server” (mod_perl replacement)?

你。 提交于 2019-12-03 08:59:00
问题 Short version : What criteria should I use to evaluate possible candidates for a Perl "app server" (mod_perl replacement)? We are looking for some sort of framework which will allow executing various Perl programs repeatedly (as a service) without the costs of: re-launcing perl interpreter once per each execution loading/compiling Perl modules once per execution (both of which are the benefits that running mod_perl provides) Notes: We do NOT much care about any additional benefits afforded by

Glassfish 4 server stops unexpectedly

落爺英雄遲暮 提交于 2019-12-03 07:38:07
I'm new to GlassFish, and to application servers in general. I have an Amazon EC2 instance running Ubuntu and have installed GlassFish 4. It starts up without problems, but after a while the GlassFish server just shuts down all by itself. I have looked through server.log, but everything seems normal, and there are no entries describing any failures or shut down. Any input on what can be the cause, or where I should look to find any clues? Hunternif I am facing the exact same situation. I suspected the reason was that JVM ran out of RAM, as the free EC2 instance has a niggard 600 MB ( cat /proc

ClassLoader Leak - Are they worth solving?

我的未来我决定 提交于 2019-12-03 05:45:57
ClassLoader leaks usually result in java.lang.OutOfMemoryError: PermGen . In the instance of working on application servers you may see this as a result of many redeploys of a common application. The explanation and possible resolutions to this problem can be seen on these two links. (among others) http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/17/the-unknown-generation-perm/ http://blogs.oracle.com/fkieviet/entry/classloader_leaks_the_dreaded_java Now for the most part they are easy to get around. Simply increase the -XX:MaxPermSize and when the inevitable happens, restart the JVM

Speed up Weblogic Server startup times

佐手、 提交于 2019-12-03 05:45:47
问题 At my work, we use Weblogic Server to host an enterprise portal. Which is fine. However, I've recently had the opportunity to use Tomcat for some side projects, and I am struck by the incredible difference in speed. Tomcat takes 3-5 seconds to start up, and 10-15 seconds to deploy a medium-sized projects. Wewblogic takes 3-5 minutes to start, and up to 10 minutes to deploy. This kills any iterative development. Am I going to have to resign myself to its being slow and bloated, or is there