Questions for java-ee


8968

Overriding application server behaviour for loading jsp-api and servlet-api jars in a packaged web application

I have a project built and packaged with a specific version of jsp-apiand servlet-api jar files. Now I want these jars to be loaded when deploying the web project on any application server for exam...
3090

Almost Simultaneous HTTPServletRequests

Is it possible to reject a request to my servlet or not respond to it? Say if I recieve 2 requests within 100 ms on the same thread, can I ignore the second one completely? Or is it possible to abo...
3204

JPA Multiple Embedded fields

Is it possible for a JPA entity class to contain two embedded (@Embedded) fields? An example would be:
6544

Accessing Hibernate Session from EJB using EntityManager

Is it possible to obtain the Hibernate Session object from the EntityManager? I want to access some hibernate specific API...
1797

Backing beans (@ManagedBean) or CDI Beans (@Named)?

I've just started reading through Core JavaServer Faces, 3rd Ed. and they say this (emphasis mine):
3432

Launching felix shell on glassfish

I am trying to launch the felix shell that would allow me to interact with OSGI runtime on glassfish and start/stop bundles. From what I read it should be accessible via telnet localhost 6666, but ...
7570

Why can't I catch EJB exceptions?

I can't seem to catch exceptions such as NoResultException or EJBException in my java ee 6 project. Is there something I am doing wrong? I have caught exceptions outside the EJB container but thi...
5202

How to run jar file from JSP?

When I am going to click on button, I want to execute jar file which is on server.
296

Hibernate 2.1.6 or 3.x?

We are in the process of revamping our persistence layer from some proprietary orm. Most of our developers are already familiar with hibernate 2 and also its gotchas. So we decided to stay with Hib...
1727

Best LDAP server to be used with Java EE

I am going to build a Web application that will interact with LDAP.
3076

JPA and order of columns in the database

I'm using Eclipselink as my persistence provider. Is there any way to specify the order in which the columns appear in the database? The column-order in the database doesn't match the attribute-ord...
3339

How to use WorkManager with GlassFish 3?

I need to launch a background task from a servlet in a GlassFish server, and I figured WorkManager was a somehow Java EE-compliant way to achieve this.
932

Are “Application Client Container” and “Embedded Enterprise Bean Container” the same?

Is the "Application Client Container" (see here) the same as the "Embedded Enterprise Bean Container" (see here)?
6088

How to run a javaweb project through Main function in Netbeans´╝č

I've created a JavaWeb Project in Netbeans7.2 following the book Beginning JavaEE6 Platform with GlassFish3 2nd edition. The book uses Maven and commandline to compile and package while I'm using
8906

struts property tag to retrieve Object

Is it possible to get an Object's attribute through the property tag in struts?
2084

Sending SMS Text in Java via Email Error

I am trying to send a text message via email within Java.
1496

SVN commit behavior / failure criateria

So I'm making some changes/fixes to someone's subclipse mod and had a few questions.
3711

How to close EnityManager when not injected?

I have a servlet running in an Oracle OCCAS server. Currently I map some data in a database to an entity class in my application using @Entity annotaion.
6347

Why ear and war are behaving same way in my application?

According to my project requirement i have to deploy an EAR file of my application in JBOSS7.
8818

How to remotely view activity logs from a Java EE app in Vaadin?

I'd like to remotely monitor the activity of my Java EE application (deployed on a glassfish server).
5364

Difference between static variable in ActionScript and in Java EE

Please verify my understanding. When a static variable is defined in a Java EE application, the variable is visible and can be altered by any other user. But in case of actionscript, the static
783

ejb-jar.xml: ejb-client.jar or ejb-module.jar

Sometimes, configurations or declarations need to be done in the ejb-deployment descriptor, the ejb-jar.xml file.
1862

JPA Concurrent Transaction Strategies

I am working on a warehouse management system, using JPA 2.0 - EclipseLink and I have come across the need to implement concurrent transactions, currently I am implementing a timestamp difference to
7429

LDAP Searching with # character

I am trying to search for the Organization Unit on Active Directory (Window Server 2003). This is my code
7522

multiple-target url using spring security 3.1

i want multiple target url to be redirected to for the different roles of the users, how to achieve it using spring security 3.1, I have already done with the single target url, but i am not gettin...
6360

serveResource called when i call actions

i use jQuery.ajax to call this method in my portlet :
5039

What does the @EJBs annotation do?

I know roughly what this construction does: It creates a SomeType EJB and injects the objecty into another EJB.
3398

Turning on/off logs at runtime

I am using SLF4J with Log4J for logging. So far I am using the log4j configuration from xml file. How I can turn on/off logging at runtime.
6782

setContextClassLoader implications

I'm trying to clean up Tomcat warnings about memory leaks due to creating my own threads. http://wiki.apache.org/tomcat/MemoryLeakProtection proposes that I call myThread.setContextClassLoader(null)
305

Displaying selected Item's data (JSF, Primefaces)

I am having problems with displaying the selected item's data on a dialogue using Primefaces dialogue. setSelectedUsers method will fire but the dialogue won't display the data of the user object. ...
6502

Understanding authentication providers in Spring security

I am trying to understand authentication providers in Spring (3.1) and I have a question to what is really happening here. I know that I use the namespace that gives easier access to functionality ...
4003

Adding jar file to each project multiple times

I have three projects(Admin,user,viewer) for each of them i added jar files in class path in eclipse. Now i have to use some of admin modules in user and some of admin and user modules in viewer(no
4071

What is an 'error dispatch' in servlet processing?

The javadoc of the javax.servlet.AsyncContext interface says:
5155

EJB/JPA: Is it called JPQL or EJBQL?

Is the JPA query language called JPQL or EJBQL? I keep reading about them here and there, JPQL seems to appear slightly more often, but frameworks like JBoss Seam use EJBQL everywhere, so which one...
8064

Error while persisting record

I am trying to persist a record in a remote database. But I am getting the following error:
5019

Mapping array with Hibernate

Can you please help me to map th class Hbernate?
7956

MyEclipse Deployment

Are other people using the MyEclipse Libraries? Every time I start working in a project and then update MyEclipse the build libraries change or versions are not what I need. Is it common practice t...
5041

Suggestions about Lightweight Open Source Web Servers which can support Web Services written in Java

I am currently looking for Lightweight open source web servers which can support Web Services written in Java.
6557

execute a script on each page java-ee

I'm trying to build a multilang website and for that I have to identify the user lang
1112

Spring security does not work

I am getting an error when I try to login (or, when I abort the HTTP Basic dialog with escape)
7740

Passing Objects from Java(BlazeDs) Server to Front end Flex app

I am looking for some help. I have set up a Java Dynamic web project which uses BlazeDs. This is on a Tomcat server and can send and recieve strings to a front end Flex project.
7061

Primefaces 3.4: Tree selectedNode is null

I am new in Primefaces and I try to use the Primefaces Tree for several days now.
1672

Using JdbcUserDetailsManager vs own UserDetailsService

I am learning about Spring Security and I don't understand completly if I should use JdbcUserDetailsManager or a custom implementation of UserDetailsService. I am using a database for storing users...
553

If I put EJB's in an EAR file, should I put the entity classes in there, a seperate jar, or the web app?

If I put EJB's in there on EAR file should I put the entity classes in there, a seperate jar, or the web app?
1337

Connecting a MySQL database to Glassfish classpath is not set or classname is wrong

I'm swapping out a derby database for a MySQL one. I had everything working before but after what I thought was the proper configuration I'm getting the error:
6227

How to install jars in maven repository which is eclipse embedded?

My objective is to install jar file in the Maven repository.
2624

Servlet containers and classpath

To what is the class path of a Servlet container set?
871

MyBatis - Mapping tree data-structure

How can I map table id | parent_id | name to my pojo class:
669

Does this run in transaction?

Let's say I have two EJBs A and B:
6413

Making a Service Layer call from Presentation layer

I have to choose a technology to connect my Application/Presentation Layer (Java Based) with the Service Layer (Java Based). Basically looking up appropriate Spring Service from the Business Delegate

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.