java-ee

JSF request scoped bean keeps recreating new Stateful session beans on every request?

跟風遠走 提交于 2019-12-16 20:13:27
问题 I'm building my first Java EE application using JSF, PrimeFaces, Glassfish and Netbeans. Because I'm new, it's possible I'm approaching the core problem wrong. Core problem: I want to maintain user's information securely. There seems to be conflicting ideas on whether it should be maintained in a JSF session bean or a stateful session EJB. I'm trying to use a stateful session EJB because it is more secure that way. The problem is that my application seems to be creating multiple instances of

Difference between JSP EL, JSF EL and Unified EL [closed]

独自空忆成欢 提交于 2019-12-16 19:49:09
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I would like to know the detailed difference between the Expression Languages (EL). There is JSP EL, JSF EL and Unified EL. I would like to know the history behind the EL and what the latest EL is that is used in

friend finder api, to retrieve contacts from gmail,yahoo and hotmail using java [closed]

时光毁灭记忆、已成空白 提交于 2019-12-16 18:03:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Hi I am developing an web app a java/j2ee based web app, where I have provide an feature to all the users of my web portal, to access there gmail hotmail or yahoo account and should be able to send the the content in HTML format via e-mail to his contacts or friends. I am aware there are lot of PHP api's available

Can't get text area contents enclosed in <…> in servlet

浪子不回头ぞ 提交于 2019-12-14 04:18:39
问题 I have a form with a textarea in an HTML page and I'm trying to send its contents to a servlet via POST. The problem is that if I write something like unenclosed <enclosed> in the textarea, when I call request.getParameter("textareaId") (where request is a HttpServletRequest object) in the service() method of the servlet (that extends HttpServlet ), I get only "unenclosed" as parameter value. Is there any way to get the complete contents of the textarea? Html code: <form action="MyServlet"

quickstart jboss (or tomcat) + beans tutorial

拥有回忆 提交于 2019-12-14 04:09:18
问题 I'm a little daunted by the endless myriad options in Eclipse for starting a Java EE project that would run on jboss. I know what I'm doing once I have an environment that's configured, but was hoping someone could point me to a step by step tutorial on how to go from writing my first class to actually having jboss pick it up on startup and act on it. I assume the tutorial would need to involve the part of the task that has ANT generate a war file. 回答1: EJB 3 Tutorial explaining Ant and

CXF Conflicts Xerces Dependency

耗尽温柔 提交于 2019-12-14 03:59:51
问题 I have a problem with my cxf dependencies. There is a really huge project that ı working and there are lots of dependencies. My problem is with xerces dependency. There is no older versions of xerces in my pom files, but i am getting the following exception. Do you have any idea about the problem ? Caused by: java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; at org.apache.cxf

CDI PostConstruct and volatile fields

浪子不回头ぞ 提交于 2019-12-14 03:55:50
问题 Using a post construct approach when we want to conditionally initialise some of the bean's fields, do we need to care about volatility of the field, since it is a multithread environment? Say, we have something like this: @ApplicationScoped public class FooService { private final ConfigurationService configurationService; private FooBean fooBean; @Inject FooService(ConfigurationService configurationService) { this.configurationService = configurationService; } void init(@Observes

Upgrade netbeans to JEE 8

醉酒当歌 提交于 2019-12-14 03:54:28
问题 My question is very simple. How do I upgrade Netbeans 8.2 to use Jave EE 8? I have installed a plain NB 8.2 and glassfish 5. Java 1.8 and tried with java 9. I have installed the GF 5 server to be controlled through NB. When I create a new Maven web application project i can choose Java EE 7 as runtime. I have downloaded the nightly build too to try is, but I see the same result. Is there a cook book or something that describes how to upgrade the entire system to the latest version? I have

Difference between an Enterprise application project and a Web project application in Netbeans IDE

心不动则不痛 提交于 2019-12-14 03:46:21
问题 Please I would like to know the major difference between a Jave EE project and a Java Web project in netbeans IDE with respect to the EJB . In fact you can create a web application based on EJB , JPA and JavaServer Faces in Netbeans IDE if you choose the Java Web category . On the other hand you choose the project category as Jave EE project , NetBeans IDE will create 3 sub-projects, e.g: StoreApp (Enterprise Application project), StoreApp-ejb (EJB project), and StoreApp-war (Web project).

Which J2EE web development framework to choose for a simple, accessible application?

独自空忆成欢 提交于 2019-12-14 03:45:31
问题 I want to write a simple web application, on J2EE, with these characteristics: I don't need any AJAX, and it should even work with JavaScript disabled on the browser. It is a simple CRUD application I would need full control on the way each element is laid out on the page - no compromise on the GUI's look and feel. I can use plain old JDBC for data access - no o/r mappers necessary Bookmarking of pages is necessary (wherever it makes sense to bookmark, that is). Many of my users use tabbed