java-ee

How to get GWT to compile multiple modules?

爱⌒轻易说出口 提交于 2019-12-22 18:37:44
问题 I've set up a new GWT project in NetBeans 6.9 and created multiple GWT modules I've tried adding them all in the gwt.properties file as follows: *# The names of the modules to compile (separated by a space character) gwt.module=com.company.MyModule1 com.company.MyModule2 com.company.MyModule3* I'm getting an error at compilation time saying that it doesn't find the second module. Now, i can compile just fine only ONE module. Doesn't matter which one. Is it something i'm doing wrong or it's a

WebLogic 8.1 two-way SSL authentication on a web app full example?

大兔子大兔子 提交于 2019-12-22 18:36:12
问题 Does anybody has a WebLogic 8.1 two-way SSL full example? I am developing a small web application (1 HTML, 1 Servlet, 1 JSP) to send confidential data. The client could be a web browser. The server is WebLogic 8.1. The information should travel encrypted. Besides, the web application needs to authenticate the client, using more than a username/password combination. I thought implementing using HTTPS and two-way SSL authentication. This way, the user should send me her certificate, I installed

Java Webapplication - How to Implement Saas Using multischema architecture?

断了今生、忘了曾经 提交于 2019-12-22 17:54:03
问题 We are having a web application developed j2ee/Spring. We are planning to implement SaaS model by using different schema for each customer. Please suggest the best way to do it. We are blank how to start the process ? How can we map different customer to different DB ? Thanks 回答1: For using different schema for each customer you need to come up with an identifier(s) that can be used to uniquely identify the customer schema or the tenant schema. It is usually a tenant identifier key. Neil's

How to work with MQTT in Wildfly

帅比萌擦擦* 提交于 2019-12-22 17:53:57
问题 I am working on a platform to monitor and control devices which use MQTT for the communication layer. I use REST endpoints for the Angular2 based SPA Web. The backend is developed in JEE using WildFly which support out of the box the MQTT protocol through is JMS Broker(Active MQ). I am new in JEE and don’t know a lot of things: - I have never used the JMS System - I can’t find any information o tutorial to point me in the right way to get MQTT messages through a JMS Application. Can you help

JSF: Absolutely need to put expensive Business Logic inside accessor method. How to avoid calling this expensive BL multiples time

泪湿孤枕 提交于 2019-12-22 16:47:38
问题 Here is my dilemma, I know in JSF the accessor method will get call mutilple times, therefore I know not to put expensive business logic (like DB access) in accessor method. What if I absolutely have to put business logic into my accessor. What should I do in this case? Below are a high level layout of my dilemma. (Mojarra 2.1, GF 3.1) <h:dataTable value="#{myBean.comments}" var="item1"> <h:column> #{item1.name} says: #{item1.comment} <h:dataTable value="#{myBean.handleReplies(item1)}" var=

JSF: Absolutely need to put expensive Business Logic inside accessor method. How to avoid calling this expensive BL multiples time

落花浮王杯 提交于 2019-12-22 16:47:09
问题 Here is my dilemma, I know in JSF the accessor method will get call mutilple times, therefore I know not to put expensive business logic (like DB access) in accessor method. What if I absolutely have to put business logic into my accessor. What should I do in this case? Below are a high level layout of my dilemma. (Mojarra 2.1, GF 3.1) <h:dataTable value="#{myBean.comments}" var="item1"> <h:column> #{item1.name} says: #{item1.comment} <h:dataTable value="#{myBean.handleReplies(item1)}" var=

Business Delegate Vs Service Locator

泄露秘密 提交于 2019-12-22 14:48:12
问题 What is the difference between Business Delegate and Service Locator.Do both responsible for encapsulating lookup and creation mechanism.If Business Delegate uses Service Locator for hiding lookup and creation mechanism then what is Business Delegate exclusively meant for, can't Service Locator replace Business Delegate. 回答1: I don't know if you already checked this out, but it's a good start. Use a Business Delegate to encapsulate access to a business service. The Business Delegate hides the

How to set hibernate.hbm2ddl.auto on deployment in Wildfly NOT using persistence.xml

柔情痞子 提交于 2019-12-22 14:02:42
问题 I need on deployment schema generation for a webapp that uses JPA. The server is Wildfly 9 with Hibernate as JPA provider. I can achieve this by adding <property name="hibernate.hbm2ddl.auto" value="create" /> to persistence.xml. Is there another way to set this property per webapp and on deployment in Wildfly 9? I also tried hibernate.properties, but this had no effect. 回答1: There is no webapp specific deployment property out of the box. But you can set a webapp specific system property

How to configure struts action to get parameters via post?

醉酒当歌 提交于 2019-12-22 14:01:45
问题 I'm new to Java EE and Struts2.so i need to find out how to configure struts action to get parameters via post? i had this code to get parameters directly from url like this: @Override public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { response.setContentType("application/json;charset=UTF-8"); response.setHeader("Cache-Control", "no-cache"); response.setCharacterEncoding("UTF-8"); request

JPA/Hibernate: create database schema and import data on first run, update schema on subsequent runs

落爺英雄遲暮 提交于 2019-12-22 13:58:19
问题 In my projects I often use JPA/Hibernate stack for database. When defining persistence.xml you have couple options you can set hibernate.hbm2ddl.auto . If set to create tables will be recreated on every application run (persisted data will be lost of course). It is also possible to import initial data by setting db fixture with hibernate.hbm2ddl.import_files . When set to update only tables for new entities will be created (persisted data in existing tables will be preserved). The thing is