java-ee-5 Questions
3
Solved
I have a Seam 2.2 based Java EE 5 web application with a bunch of tables mapped to JPA 1.0 Entities via Hibernate 3.3.3. During development it's running on a Tomcat 6, Oracle 10 XE and Windows 7.
...
5
I added the following annotation to enable cache to one of my EJB3 entities, to test caching with ehCache, where I use Hibernate as the persistence provider:
....
import org.hibernate.annotations....
4
Solved
I'm trying to understand how the JAAS principal propagates to the Business/EJB tier from web tier.
I've read that the if the roles/realm is configured in login-config & security-context of web...
Argil asked 25/8, 2011 at 20:23
4
Solved
I can't get the primeFaces <p:filedownload work. While I succeed in downloading the file using a custom download bean. Seems like the issu is related to the primefaces file download ActionListen...
Dysphemism asked 14/6, 2011 at 9:49
1
Solved
I am injecting a spring-managed bean into an abstract class and it seems that it doesn't work. Here is an explanation of what I do, if it is not enough, I can edit the post and add some code:
imp...
Weldon asked 14/5, 2013 at 12:26
3
Solved
I need to include some values from a file.properties into the WEB-INF/web.xml something like this:
<param-name>uploadDirectory</param-name>
<param-value>myFile.properties['keyFor...
Mess asked 23/8, 2012 at 19:53
1
Solved
Since Java EE 5 does not have CDI, how does DI work in here?
Can an EJB be injected with @EJB in a class that is a non-EJB?
Can an EntityManager be injected with @PersistenceContext in a class th...
Crary asked 23/11, 2012 at 13:47
4
Solved
The .war is served from GlassFish v3. I am trying to include a javascript file from my jspx.
<script type="text/javascript" src="/base/interface/Service.js"></script>
I get the foll...
Sven asked 13/1, 2010 at 17:6
1
Solved
Is there a single maven dependency containing whole Java EE 5 spec API. Just like
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<ve...
1
I need to run a simple scheduled task that will start every 200ms and do something simple.
Is Executors.newSingleThreadScheduledExecutor() the proper way of obtaining scheduled executor service on...
1
Solved
I have a confusion regarding the structure of the web.xml for the servlet mapping, I don't have any problem by executing it but I am trying to figure it how why we have such a pattern in the deploy...
Ciel asked 19/11, 2011 at 23:53
4
Solved
I want to ask for your prefered way to test Java EE code?
I found only three project, that are trying to help to code unit tests in Java EE environment:
http://jakarta.apache.org/cactus/ : Last ...
Megalomania asked 22/12, 2009 at 17:17
6
Solved
Does anyone have experiences with both in the real world? How do they compare in terms of performance (memory usage, speed, etc)? Stability?
Does JBoss Seam work well on Glassfish?
2
Solved
I get the username of the connected user (using j_security_check) this way, through a managed bean:
......
username = FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal().get...
Cedrickceevah asked 26/5, 2011 at 15:39
3
Solved
Good evening,
In a test JSF 2.0 web app, I am trying to get the number of active sessions but there is a problem in the sessionDestroyed method of the HttpSessionListener.
Indeed, when a user logs...
Buxton asked 10/6, 2011 at 20:18
1
Solved
Is there any difference between an asynchronous JMS (Java Messaging Service) consumer vs an actual MDB (Message Driven Bean). The only difference I see is the MDB class
has @MessageDriven annotatio...
Ghiberti asked 13/4, 2011 at 21:10
3
I'm working in a Java EE Environment in which each application is in a war file of its own.
In the WEB-INF/lib of each application war file there is a common jar that is shared by all applications....
1
Solved
I have a component done in JSF 1.x, this component has a command button as follows
<h:commandButton ... action="#{templateController.next}" />
Where templateController was passed as an EL ...
4
Solved
I want to know the differences/similarities between Hibernate and simple persistence in Java EE 5?
I'm not clear if Hibernate implements Java EE 5 persistence implementation or if it is a totally ...
Coupler asked 27/4, 2010 at 16:57
2
With Sun being taken over by Oracle, Oracle will arguably gain control of Glassfish.
I do understand that Glassfish is community driven but most of the contributions do come out of Sun at this tim...
Marvellamarvellous asked 17/8, 2009 at 6:18
9
Solved
I'm familiar with the LAMP stack and over the years have successfully deployed a handful of web sties based on it. I've used everything from Apache + modPerl, to PHP, to Ruby and Rails. With good u...
Elliott asked 4/10, 2008 at 2:50
1
© 2022 - 2024 — McMap. All rights reserved.