java-ee

Process files in Java EE [closed]

大兔子大兔子 提交于 2019-12-29 07:53:15
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I have a system that is supposed to take large files containing documents and process these to split up the individual documents and create document objects to be persisted with JPA (or at least it is assumed in this question). The files are in the range of 1 document to 100 000

What's the default JNDI name of an EJB in Websphere Application Server 7 (WAS)?

一世执手 提交于 2019-12-29 06:54:14
问题 In the Administration COnsole of WAS 7, on the Applications > Application Types > WebSphere enterprise applications > application > EJB JNDI names section, I have a table with four columns : EJB Module (e.g. ProjectEJB.jar) EJB (e.g. BeanBO ) URI (e.g. ProjectEJB.jar, META-INF/ejb-jar.xml Target resource JNDI Name (with empty fields) Something like this : What's the jndi name of my LogWriter bean ? 回答1: Below you have table with default names. Each bean gets short and long form. You can

Relationship between JSP and Java EE

萝らか妹 提交于 2019-12-29 05:59:25
问题 Is JSP part of the whole Java EE package? How are they related? 回答1: Java EE is a very big box. It includes: Servlets and JSPs for the web tier, EJBs - stateless and stateful session, entity, and message driven beans, RMI for Java-to-Java remoting (also part of Java SE), JDBC for relational database access (also part of Java SE), JMS for messaging, JTA for transaction monitoring, JNDI naming and directory services, Web services - SOAP, REST, RPC-XML, E-mail, Maybe others that I'm forgetting.

Upgrade JBoss 5.1 from EL 2.1 to EL 2.2?

China☆狼群 提交于 2019-12-29 05:36:45
问题 This question is quick and simple. JBoss 5.1 comes out of box supporting JSP and EL (Expression Language) 2.1 and Servlet 2.5. Is it possible to upgrade or hack this to use EL 2.2? UPDATE: I tried what BalusC's answer stated and got the following error: 2011-08-01 10:29:52,418 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (main) Unable to instantiate ExpressionFactory 'org.jboss.el.ExpressionFactoryImpl' 2011-08-01 10:29:52,441 SEVERE [javax.enterprise.resource.webcontainer.jsf

Handling large records in a Java EE application

喜你入骨 提交于 2019-12-29 05:00:10
问题 There is a table phonenumbers with two columns: id , and number . There are about half a million entries in the table. Database is MySQL . The requirement is to develop a simple Java EE application, connected to that database, that allows a user to download all number values in comma separated style by following a specific URL. If we get all the values in a huge String array and then concatenate them (with comma in between all the values) in a String and then send it down to the user, does it

Making datasource in Glassfish

感情迁移 提交于 2019-12-29 04:55:09
问题 I am creating a JDBC connection pool resource for GlassFish, using the server's Admin Console. One of the fields on the page to create the pool is labeled 'Resource Type'. This field has four possible values: javax.sql.DataSource, javax.sql.XADataSource, javax.sql.ConnectionPoolDataSource and javax.sql.Driver, but the help text for the Create JDBC connection pool 'wizard' does not have much info about the advantages and disadvantages of these choices. When prompted to pick a resource type

Understanding EJB3/JPA container-level transactions and isolation level

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 04:24:16
问题 Consider this simplified view of some code with which I'm working: @Stateless(...) @Remote(...) @TransactionAttribute(TransactionAttributeType.MANDATORY) public class FirstEjbType { @EJB(...) private SecondEjbType secondEjb; @EJB(...) private ThirdEjbType thirdEjb; public void doSomething() { secondEjb.doSomething(); // WRITES SOMETHING TO THE DATABASE thirdEjb.doSomething(); // CAN'T SEE THAT SOMETHING IN THE DATABASE! } I've set the TransactionAttribute annotation to MANDATORY at the class

How do I configure JSF url mappings without file extensions?

折月煮酒 提交于 2019-12-29 04:02:45
问题 Most tutorials propose a default JSF configuration similar to the following web.xml: <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> <url-pattern>*.jsf</url-pattern>

Understanding the necessity of type Safety in CDI

旧城冷巷雨未停 提交于 2019-12-29 03:34:06
问题 First I should clarify that this post is not intended to criticize CDI, but to discover the thinking and assumptions behind the design of CDI and that will have obvious influence on designing any web app, which uses CDI. One of the most distinguished feature of CDI (of Java EE 6) is type safety . Jboss Seam was not safe in type. It uses name to qualify any instance to inject. Like bellow: @Name("myBean") public class MyBean implements Bean { ... } @Name("yourBean") public class YourBean

no sqljdbc_auth in java.library.path

て烟熏妆下的殇ゞ 提交于 2019-12-29 03:33:18
问题 I have a Java EE Web Application which connects to a SQL Server 2008 instance. I don't have any problem connecting and retrieving to all my tables, except for one of them. The error in the Tomcat log is: WARNING: Failed to load the sqljdbc_auth.dll cause :- no sqljdbc_auth in java.library.path 回答1: 1) Download the JDBC Driver here. 2) unzip the file and go to sqljdbc_version\fra\auth\x86 or \x64 3) copy the sqljdbc_auth.dll to C:\Program Files\Java\jre_Version\bin 4) Finally restart eclipse