java-ee

Session Timeout(session.setMaxInactiveInterval) is not working in Google Appengine

安稳与你 提交于 2019-12-21 21:32:50
问题 I tried to set the Session timeout for particular users using session.setMaxInactiveInterval(30*60) 30 minutes . But by default it's assigned to 86400 seconds (24 hrs). Also tried in Web.xml <session-config> <session-timeout>30</session-timeout> // Session timeout assigned for all the users </session-config> 回答1: It looks HttpSession.setMaxInactiveInterval() is not honoured by the AppEngine platform anymore (it worked in the past). You can however still specify session timeout in the web.xml

What scope do JAX-RS 2 filters have?

♀尐吖头ヾ 提交于 2019-12-21 21:32:44
问题 I am using RestEasy 3.0.2 which is one of the first JAX-RS 2 implementations and run my application within a Tomcat 7. I also make use of injection in my application via WELD which is integrated with RestEasy via its CDI adaptor. Everything works fine so far. Now, I wrote an implementation of a ContainerRequestFilter to perform authentication of incoming requests before they hit a resource. The JAX-RS standard says that injection is possible for every resource and every other JAX-RS component

Session Timeout(session.setMaxInactiveInterval) is not working in Google Appengine

醉酒当歌 提交于 2019-12-21 21:27:21
问题 I tried to set the Session timeout for particular users using session.setMaxInactiveInterval(30*60) 30 minutes . But by default it's assigned to 86400 seconds (24 hrs). Also tried in Web.xml <session-config> <session-timeout>30</session-timeout> // Session timeout assigned for all the users </session-config> 回答1: It looks HttpSession.setMaxInactiveInterval() is not honoured by the AppEngine platform anymore (it worked in the past). You can however still specify session timeout in the web.xml

WebSphere Liberty ActiveMQ

纵饮孤独 提交于 2019-12-21 21:17:23
问题 My goal is to consume Messages with the WebSphere Liberty Appserver (Full Java EE Standard) from an ActiveMQ. Unlucky I can't figure out how to configurate the WebSphere Liberty. The ActiveMQ Server im using is out of the box and I have added a Queue named myQueue. In my Java EE application I want to have a Message Driven Beans which gets kicked if a message is in the queue. I tried to "steal" the configuration from the wasDev JMS Example like someone else did on this example. But unlucky the

HTTP code 302 encountered when deploying on Google App Engine Endpoints

百般思念 提交于 2019-12-21 20:45:57
问题 When developing for App Engine Endpoints in Java using the official documentation, after running endpoints.cmd with the appropriate parameters and deploying in GAE, the dev server shows the proper endpoints at http://localhost:8888/_ah/api/discovery/v1/apis , but accessing the explorer for the production version on GAE shows old endpoints at https://<my-app>.appspot.com/_ah/api/discovery/v1/apis . The error was traced to the HTTP 302 (moved temporarily) code found in the Logs of the

JPA 2.0 in WebLogic Server 10.3.6

最后都变了- 提交于 2019-12-21 20:38:25
问题 I need to use JPA 2.0 (with the EclipseLink implementation). The problem is that I also need to deploy this app in a WebLogic 10.3.6 server, which implements the Java EE 5 specification, and so, it is not required to support JPA 2. I know that there are patches that can be used to add support for JPA 2.0 in this version, but the sysadmin doesn't want to change anything in the server at all I tried adding the javax.persistence-2.1.0.jar file to my war thinking that my app would just use this

Proguard in a Maven + Spring 3 big Web Application

江枫思渺然 提交于 2019-12-21 20:37:51
问题 I have been trying all day to obfuscate the web application we are developing (we are going to allow big clients to host it on their servers) and after surfing, searching and trying a lot I am unable to reduce the number of errors I receive: "there were 7283 unresolved references to classes or interfaces" I started from 20K so I managed to get some improvements... This is the pom config I am using: <plugin> <groupId>com.github.wvengen</groupId> <artifactId>proguard-maven-plugin</artifactId>

Deploy JSF composite components for shared use

时光总嘲笑我的痴心妄想 提交于 2019-12-21 20:37:35
问题 I work on a Java EE project which is planned to become quite large in future and I want to share as much code as possible. This included not only Java code, but also code for UI elements. I think about developing enterprise components based on clear defined subjects (like user administration, taxes, products) which interact on basis of messages, beans and so on. I also think about giving all these components some managed beans and JSF composites to provide some basic functionality for later

FacesServlet and URL Mapping in Web.xml

心已入冬 提交于 2019-12-21 20:31:36
问题 HI, We are declaring the FacesServlet and its URL mapping in the Web.xml . From my understanding, FacesServlet loaded only once at the server startup. URL mapping is used only when first time JSP application accessed from the external context. One of the new learner for JSF has asked me the questions, these two things are used only once by the application. Is it true? Also is there any other way by not including in the web.xml? What I should answer? Updated For example, I am accessing the

Application Client access EJB on Glassfish via a remote interface. Can I do it via local interface?

一曲冷凌霜 提交于 2019-12-21 20:27:47
问题 I recently gone through a Netbeans article about how to create and Enterprise Application Client that access EJB deploy on Glassfish.(Article Link Here) I have couples questions about this article. The article exposes the EJB via a remote interface, I think this will result in application client have to make a remote invocation. There are overheads for doing this. While local interface parameters are passed by reference, remote interface parameters are passed by value, which results in