Tagged Questions
2
votes
0answers
60 views
Async processing in Servlet 3.0: Is there a library for this pattern?
When I was looking at how to design my servlets and their interactions with the back-end services, I thought maybe there is a toolkit available to solve this 'typical' scenario:
Servlet container ...
2
votes
0answers
40 views
Why am I getting two instances of my Singleton EJB?
I'm doing some experiments to help solidify my understanding of @Singleton EJBs.
I have implemented an EJB called TotalBean like this:
@Singleton
public class TotalBean implements TotalBeanLocal {
...
2
votes
0answers
130 views
Java EE Security Roles in the EJB Container and how they Propagate From and/or Relate to the Web Container
I did a test the other day on an app I'm working on. I wanted to see how the security propagated from web tier to Java EE container. I wrote a quick couple of pages, a backing bean and an EJB ...
2
votes
0answers
118 views
Trust Relationship between containers in Java EE 6
in this link there's lack of information on making 2 containers trust each other, quote from "Trust between Containers":
When an enterprise bean is designed so that either the original caller ...
2
votes
0answers
112 views
Java EE declarative security, acquiring reference to a secured bean from application client
On 2 questions I would like to consult you.
Background: I have written a test, Java EE application and added declarative security. The application is deployed on Glassfish 3.1. For unit testing I ...
1
vote
0answers
26 views
@RolesAllowed and web-tier in Java EE 6.0
I have a web application with a set of security constraints. Web app calls ejb modules annotated with @RolesAllowed and everything's fine - once authorized, user's credentials being passed to ejb and ...
1
vote
0answers
94 views
the same driver for oracle XE 11.2 works in simple dynamic web project but doesn't work on struts2 project
I am a beginner in developing on the Java EE architecture.
I used the same code to connect to an Oracle database in two applications, but in one of those the code fails.
First in a simple ...
1
vote
0answers
154 views
One Mongo instance in JavaEE 6 app
It is said that there should be one Mongo instance per JVM. I'm trying to setup Mongo in JEE6 app and so far I have it done like this.
@Startup
@Singleton // EJB not CDI singleton
public class ...
1
vote
0answers
234 views
Flexible, per user MDC and marker for Java EE logging on JBoss
I want to implement logging for a larger enterprise application with several services. An important design constraint is the implementation of a logging which implements the approach "log everything". ...
1
vote
0answers
723 views
Invalid EJB using interfaces from external Jar in @local - Annotation
as application server I use Glassfish to create my new JEE 6 application.
I have two projects in my workspace, resp. on one sever.
The first is a pure EJB Project including some EJBs with local and ...
1
vote
0answers
280 views
Issue with EJB Code - Stateful Session Bean + Hibernate
I am trying to learn Ejb now. Can anybody help me how to implement this Stateful Session Bean Example by using this Hibernate example. Thanks in advance.
NB: Actually I want simple code adding those ...
1
vote
0answers
328 views
Does ProGuard work with JavaEE 6 applications?
I'm trying to get Proguard to obfuscate a simple .war file. According to the docs Proguard handles .war files, but when I try I get this:
Warning: class ...
1
vote
0answers
1k views
Sporadic javax.ejb.AccessLocalException
I'm using Glassfish 3.0.1. I sometimes get this error when attempting to call a local EJB:
[#|2010-11-10T19:17:25.014+0000|INFO|glassfish3.0.1|javax.enterprise.system.core.security|
...
0
votes
0answers
33 views
CDI event is always null
CDI Event is always null I get the below exception. I am wondering whether we can use CDI in general static methods. Does this class should be managed bean, in order to make the CDI event work?
...
0
votes
0answers
10 views
WAS 8.0 Federated Repo & Servlet Spec 3.0 Security authentication of password digest
I'm developing a Registration Confirmation feature for a site. A user successfully registers on a registration page, an email is subsequently sent to the user's email address with a hyperlink, and ...