ejb-3.0 Questions
8
Solved
I have a stateless bean something like:
@Stateless
public class MyStatelessBean implements MyStatelessLocal, MyStatelessRemote {
@PersistenceContext(unitName="myPC")
private EntityManager mgr;
...
Schreiber asked 19/9, 2008 at 23:43
1
Solved
I am learning basics of EJB 3.0. I have managed to get a sample code up and running. Now I am doing a line by line analysis to have in-depth knowledge. But I am stuck at few lines where there is a ...
Pill asked 30/3, 2012 at 5:12
1
package com;
/**
*
* @author sunny
*/
import javax.ejb.Local;
public interface BookService {
@Local //error here (annotation type not applicable to this kind of declaration)
Book createOrUp...
Culminate asked 13/3, 2012 at 5:31
2
Solved
I am newbie to EJB's. From all the reading and searching I have done till now, I understood the following:
EJB are the beans in which an applications business logic is written and maintained.
All...
Fluctuation asked 29/2, 2012 at 7:19
2
Solved
I've configured the message destination type, name etc using @ActivationConfigProperty in EJB 3.0 but I wanted to configure the MDB using deployment descriptor (ejb-jar.xml) as in EJB 2.0.
FYI: I'...
Heine asked 21/1, 2012 at 7:33
1
Solved
I am trying to inject an EJB with the @EJB annotation:
when I inject an EJB into another EJB in the same ear it works fine.
when I inject an EJB into another EJB from another ear in the same
serv...
2
Solved
I have legacy application using struts & ejb2.0, hibernate v3.0 running on JBoss v4.0 and now we have do migration of that application to new technology stack. We are exploring pros and cons of...
2
Solved
I am trying to mock some reflection based methods. Below you can see the details,
Class Under Test
public class TracerLog {
@AroundInvoke
public Object logCall(InvocationContext context) throws...
2
Solved
I think my question is similar to this but haven't found it to work
<f:metadata>
<f:viewParam id="id" name="id" value="#{detailsBean.id}"/>
</f:metadata>
Why can't I do this...
4
Solved
I have a stateless EJB that acceses my database.
I need this bean in a JSF 2 converter to retreive an entity object from the String value parameter. I'm using JEE6 with Glassfish V3.
@EJB a...
Amagasaki asked 7/1, 2010 at 10:12
2
basically, what i wanna do is assigning 'unitName' attribute of @PersistenceContext with a value that i will get from the Session at runtime.
in details;
my application will be a SaaS applicatio...
Financier asked 9/1, 2012 at 5:32
2
Solved
We have a Java application running on JBoss 5.1 and in some cases we need to prevent a transaction from being closed in case a JDBCException is thrown by some underlying method.
We have an EJB met...
Kunlun asked 4/1, 2012 at 16:52
6
Solved
Although obviously not all scenarios can be covered by a single design, is it generally felt now that ORM classes should be passed to and fro between the presentation and business layer (either loc...
Condyle asked 6/7, 2009 at 9:28
9
Solved
My team is developing a new service oriented product with a web front-end. In discussions about what technologies we will use we have settled on running a JBoss application server, and Flex fronten...
Swaddle asked 16/9, 2008 at 1:25
4
Solved
I understood that Local interface is designed for clients in the same container's JVM instance and remote interface is designed for clients residing outside the EJB container's JVM. How about the w...
2
Solved
When a (transactional) method of an EJB calls another (transactional) method of another EJB, and an exception is thrown in the second, but catched in the first one, it seems that the transaction is...
Simas asked 13/12, 2011 at 14:16
5
Solved
Obviously it's not so difficult to send out emails from a Java EE application via JavaMail. What I am interested in is the best pattern to receive emails (notification bounces, mostly)? I am not in...
Futilitarian asked 15/4, 2010 at 8:36
2
Solved
JBoss 4.x
EJB 3.0
I've seen code like the following (greatly abbreviated):
@Stateless
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class EJB1 implements IEJB1
{
@EJB
pri...
Fructify asked 8/12, 2011 at 17:49
3
Solved
I need to create an interval Timer that is set to run once a week automatically. I don't want it to start based on user input, but I want it to be created when the application is deployed to the se...
Springbok asked 12/8, 2009 at 12:36
1
I'm triying to consume a Local EJB in the same Glassfish, but different ears. But Glassfish can't found the local EJB or can't consume
I read this:
According to the JavaEE tutorial, the client of ...
Nephritic asked 20/11, 2011 at 17:24
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
1
Solved
I want to pass authentication information to EJB stateless session beans when calling their methods from a Java web application (Wicket). The information consists of a user id and an authentication...
Nadinenadir asked 5/11, 2011 at 0:28
4
Solved
That may seem obvious but I've seen contradictory statements: Is JPA part of EJB 3.0? I'm no specialist and it's quite confusing for me.
If so, JPA manipulates Entity Beans? These entity beans bei...
Forgot asked 30/10, 2011 at 15:34
5
Solved
Is there a way to make classes inherit annotations from a superclass ?
e.g.
@ApplicationException(rollback=true)
public abstract class AbstractBeanActionException extends Exception {
/* method b...
Disrate asked 24/8, 2011 at 9:59
3
Solved
We have some JavaEE5 stateless EJB bean that passes the injected EntityManager to its helpers.
Is this safe? It has worked well until now, but I found out some Oracle document that states its imp...
Kelikeligot asked 8/3, 2010 at 7:1
© 2022 - 2024 — McMap. All rights reserved.