Tagged Questions
2
votes
0answers
138 views
Generate documentation from EJB3.0 annotations
We are implementing a Java EE application and we use EJB3.0 annotations extensively to define session beans, message-driven beans, and inject JMS and JDBC dependency objects.
I would like to find a ...
2
votes
0answers
346 views
Jboss TimerService Timers Lost and not Fired
I'm trying to use timers with JBOSS 4.3 over RedHat Linux with Java Sun 1.6, the timers are created but never fired
Mi Class is
@Stateless
...
1
vote
0answers
20 views
JMS messageSelector (WebSphere)
I've created a MDB that consumes messages from a TIBCO EMS Queue. This is working fine, consuming all messages. Now I need to implement a message selector to consume only messages of one specific ...
1
vote
0answers
57 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
81 views
Configuring MappedName annotation in Message Driven Bean dynamically
When using Message Driven BEans, the destination name from where to receive messages is hard coded in the annotation @MessageDriven(mappedName = "someDestinationName")
Is there a way to add this ...
1
vote
0answers
31 views
Change bean's dependency implementation
Let's I have project with two ejb-modules.
Module1
- IMainBean.java
- MainBean.java (depends on IDependentBean)
- IDependentBean.java
- DependentBean1.java (implements IDependentBean)
...
1
vote
0answers
163 views
EJB3.0/JPA manytomany relationship between entitybeans
I am working with Java EE JSP/EJB3 and I have a problem implementing relations between tables.
As a test example to explain my problem I came up with a Car Model and a Brand relation. In this web ...
1
vote
0answers
80 views
Create and deploy EJB applications without using an IDE
I have created EJB applications using NetBeans 7.1.1. It was like all the work was done by IDE itself. So, I would like to create and deploy EJB 2.0 applications without an IDE. Any help informing how ...
1
vote
0answers
143 views
Spring security domain ACL integration with EJB3
I am building an application which has the services (EJB3 Stateless Session Beans & Hibernate4) layer & client web layer (Spring MVC) residing on different physical servers.
Client look up ...
1
vote
0answers
107 views
How to use inject Java EE Event into EJB when deployed in an EAR?
I'm having an issue with Injecting a javax.enterprise.event.Event instance into my EJB. The inject of the event works fine when the EJB is used in a web app deployed in a war, but when i deploy the ...
1
vote
0answers
113 views
How do I wrap EJBAccessException for webservice consumers?
Consider this simple example:
@Stateless
@WebService
public class AccountService {
@WebMethod
@RolesAllowed("CUSTOMER")
public void replenishBalance(double amount) {
//
}
@WebMethod
...
1
vote
0answers
288 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
760 views
there is no default persistence unit in this deployment
i recieve the error below after creating a new EJB bean:
> java.lang.RuntimeException: Illegal
> @PersistenceUnit on private
> javax.persistence.EntityManager
> ...
1
vote
0answers
470 views
Facing issue after moving weblogic specific configuration (only) from annotations to weblogic-ejb-jar.xml
I have few MDBs and SessionBeans that use weblogic specific configuration (initial-beans-in-free pool, max-beans-in-free-pool, etc)
I was using annotation for this before in all the ejbs.
No I'm using ...
1
vote
0answers
470 views
override persistence.xml in ejb3
I am facing issue to override persistence.xml in jboss and with Hibernate JPA provider, I spent couple of nights but I couldn't solve it. I am using jboss + hibernate + mysql + ejb3. My requirement is ...