application-server

OSGi and application servers

烈酒焚心 提交于 2019-12-19 05:22:23
问题 I'm having trouble undrstanding the difference about both platforms? Both seem to offer an environment for deploying and managing applications. First I thought app servers use OSGi under the hood, I don't think so now but I see large AS (jboss, glassfish, websphere, etc) use OSGi. What's the big picture? Thank you 回答1: There is (to some extend) an overload of the term "application". OSGi is a runtime environment (and development model) for modular Java applications. The term "application" in

Interoperate between C# and Java using web services without a Java EE application server?

徘徊边缘 提交于 2019-12-19 04:12:37
问题 I'm in a difficult position: We have a 3rd party enterprise system that exposes a Java-based API. However, we are a 100% .Net oriented development team. Essentially, I need to wrap the Java API with something that C# code can call. Web services would be great, but the only Java application server supported on our infrastructure is WebSphere 6.1. This means the ancient (and deprecated) JAX-RPC web service framework is the only way for us to expose web services. Just getting a simple proof-of

Disabling PUT TRACE DELETE request in Apache Tomcat 6.0

百般思念 提交于 2019-12-18 03:32:06
问题 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? 回答1: Inside your WEBINF, add you can add a security constraint: <security-constraint>

Get the server port number from tomcat without a request

偶尔善良 提交于 2019-12-17 05:50:27
问题 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

What is the difference between application server and web server?

…衆ロ難τιáo~ 提交于 2019-12-13 07:03:44
问题 What is the difference between application server and web server? 回答1: Most of the times these terms Web Server and Application server are used interchangeably. Following are some of the key differences in features of Web Server and Application Server: Web Server is designed to serve HTTP Content. App Server can also serve HTTP Content but is not limited to just HTTP. It can be provided other protocol support such as RMI/RPC Web Server is mostly designed to serve static content, though most

How to enable Weblogic 12.1.2 JPA 2.1

为君一笑 提交于 2019-12-12 12:27:25
问题 I have been deploying our web application to Weblogic server. However, although I was able to deploy the application successfully in this new version, the app does not start up and users cannot login. The log is: May 29, 2015 4:38:47 PM org.springframework.web.context.ContextLoader initWebApplicationContext SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource

How to make an EAR refer WAR shared library

假如想象 提交于 2019-12-11 10:47:01
问题 I would like to get a help from you all. The below is the issue I am currently facing with. I have added a reference of WAR shared library in weblogic-application.xml of EAR file. In EAR, I do have a ejb module which has "library-directory" tag in application.xml. I want ejb module to refer jar files in shared library but it looks for jar files in lib folder of EAR. In lib folder of EAR, jar files are not available but the jars are available in WAR shared library. How to resolve this issue

Maintaining state in the application server or in the database?

血红的双手。 提交于 2019-12-10 14:56:47
问题 REST advocates web applications without client state on the server. The famous shopping cart example is translated to a resource which typically resides in a database. I wonder if it is a good practise to use a database for that kind of data, since the database is already the bottleneck in many applications. Wouldn't it be better to use a stateful enterprise java bean instead? Application servers are designed with clustring in mind. What are the advantages and disadvantages of the two

ClassLoader Leak - Are they worth solving?

拜拜、爱过 提交于 2019-12-09 05:24:56
问题 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

Choosing an application server for web application development

孤街浪徒 提交于 2019-12-07 16:18:10
问题 My manager has asked me to suggest an application server for web application development work. What are the factors that needs to be considered before we select any application server for web application development in Java J2EE development? If I select one now and IN future and I want to change to some other application server, is that minimum effort to change? 回答1: Apache Tomcat and Jetty are the two most popular web containers. Tomcat is the reference implementation of a Java servlet