ejb-3.0 Questions
1
I am new to ejbs. I wrote a stateful session bean scoped @SessionScoped. Then I injected the ejb into my servlet.
@Local
@SessionScoped
@Statueful
public class CartServiceImpl implements CartServ...
Creodont asked 31/1, 2014 at 8:43
1
I build a web service with ejb3 and maven (EAR File),code First, JAXWS, Without WSDL and without WAR, only ejb, with Eclipse, the service works in JBOSS but now i need put the service in Weblogic 1...
Binucleate asked 1/12, 2013 at 0:8
1
Solved
According to EJB3 DI documentation it is possible to inject fields and setters. But how to inject a bean constructor ?
2
Solved
I am trying my first EJBs with Glassfish Server ( A simple shopping cart). I intended to use the CartBean for each Http Session. If my Cart Bean is following-
public interface CartLocal {
public ...
Doublefaced asked 13/11, 2013 at 5:51
3
Solved
is there a way to lookup an EJB in weblogic if it implements only local interface?
If I use this
@Remote public interface TestSessionRemote {
public void businessMethod();
}
@Stateless(mappedN...
Abebi asked 22/6, 2010 at 15:4
1
Solved
I am using Java EE 5, EJB 3.0, Jboss AS 4.3.2.
I have simplest Stateful bean
@Local
public interface IStateBean
{
}
@Stateful
public class StateBean implements IStateBean
{
private static int ...
Docilla asked 11/11, 2013 at 10:33
4
In standard EJB 3, when injecting entity manager, persistence unit (which refers to datasource) is hardcoded into annotation: (or alternatively xml file)
@PersistenceContext(unitName = "myunit")
p...
Treacherous asked 24/2, 2011 at 11:46
7
Solved
I am an inexperienced Java developer trying to wrap my head around some fundamental middleware/SOA concepts and technologies, specifically:
Service-Oriented Architecture (SOA)
Message-Oriented Mi...
Horripilation asked 7/4, 2012 at 14:28
2
Solved
The default jndi context in JBoss 5.1 for an EJB is "earname/ejbname/local". In some instances where injection is not available I need to manually do a jndi lookup, however if my ejb jar file is pa...
Decahedron asked 4/11, 2010 at 20:39
2
When a user logs in, I need to insert a message (the host name, just as an example) into the database. Since it is just a text message, injecting an EJB to a client (Servlets, JSP, JSF or something...
Inlay asked 9/9, 2013 at 15:0
3
Is it possible to run a single @WebService bean as both secure and insecure at the same time, preferably using the same URL except for the http/https protocol difference?
I am able to run the serv...
Burlingame asked 26/5, 2010 at 10:5
1
Solved
I have defined a session bean base class. This class is abstract and contains protected final methods. A session implementation class extends the abstract class and defines additional methods. Duri...
Licensee asked 26/8, 2013 at 6:32
3
Solved
I'm reading a book on Java EE 6 and I met with the following parts:
"Stateless: The session bean contains no conversational state between methods, and any
instance can be used for any client."
"...
Feculent asked 1/3, 2011 at 10:6
2
Solved
I'm building my first Java EE application using JSF, PrimeFaces, Glassfish and Netbeans. Because I'm new, it's possible I'm approaching the core problem wrong.
Core problem: I want to maintain us...
Sulphuric asked 16/1, 2012 at 22:24
2
Solved
I try to save the result of a login process for statistics to the database asynchronously to save time during the login method. But somehow the login process takes longer if i add a thread.sleep to...
Rodd asked 28/5, 2013 at 8:47
1
I need to call an ejb method from a quartz job an I'm having trouble with locating the ejb job. I have defined a Local interface and an stateless implementation. When deploying on websphere 7, the ...
Medicine asked 26/6, 2013 at 13:26
3
Solved
Can I use Criteria queries with EJB3 entities? If so, how can I combine them with EntityManager?
Horvitz asked 16/10, 2009 at 13:37
4
I am trying to invoke a EJB from a standalone Java client, getting the below error.
Lookup code
String localJNDIName = "ejbremote:gcmsnew/gcmsutilbeans.jar/CustomerSurveyManageQstBean#com.smbcgr...
1
Solved
I have a question about transaction performance and/or costs in following scenarios.
Environment: JBoss 7.1.1 / Oracle 11G / Java 6
Scenario A - 1 EJB:
I've created one EJB which saves a record ...
2
We currently have a Java EE system where we are mapping to our database using JPA. It is a fairly well developed system with about 20 entities.
We now have been ordered to use Views for ever...
Coreligionist asked 22/5, 2013 at 8:1
2
I have an EJB3 session bean annotated with @WebService(serviceName="MyServiceName", portName="MyPortName"). When it is deployed into Weblogic 11g the service endpoint is located at
host:port/Bean...
Braise asked 13/7, 2011 at 17:10
2
Solved
I'm using CMT in EJB3 state-less session beans. Also I've created my own Exception having the annotation "@ApplicationException (rollback=true)".
Do I have to use "context.setRollbackOnly()" when...
Drift asked 2/3, 2010 at 3:42
1
Solved
Getting Exception - java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()
I am new to JPA. I am trying to create EJB 3.0 + JPA (Hibernate) application. When I'm persisting data into database, I'm getting below exception.
SessionBean method
@PersistenceUnit private Enti...
2
Solved
I use Java EE 5. I wrote an interceptor for all EJBs with three methods for logging:
public class DefaultInterceptor {
public static final String PREFIX = "!!!!!!!!!Interceptor:";
@PostConstruc...
Tattoo asked 30/11, 2011 at 11:56
1
I have a table containing customer data in an oracle database. Here is a simplified definition:
CUSTOMER (CUSTOMER_ID NUMBER NOT NULL,
SOURCE_SYSTEM VARCHAR2(30),
FULL_NAME VARCHAR2(360),
PHONE...
Dilly asked 28/3, 2013 at 17:1
© 2022 - 2024 — McMap. All rights reserved.