ejb-3.0 Questions
1
Solved
I'm new to JPA so forgive me if not being clear.
Basically I want to prevent concurrent modifications by using Optimistic Locking.
I've added the @Version attribute to my entity class.
I need to ...
Musaceous asked 7/2, 2010 at 4:24
2
Solved
I am trying to understand where some of my application logic should go in my Java EE Application. I am new to Java EE and am looking at loading a lot of unstructured data from a legacy database and...
Hybridize asked 21/1, 2010 at 16:40
3
Solved
Our code has something like this:
@Resource(name = "java:comp/resource/foo/bar/ONE_QUEUE")
private Queue queue;
However, in one deployment scenario the queue annotation should look like this:
@...
1
According to many examples it is possible to inject an EntityManager into @Stateless or @Singleton EJBs like this:
@Stateless // or @Singleton
public class MyRepository {
@PersistenceContext
pri...
Symmetrical asked 6/1, 2010 at 18:17
5
Solved
Which online resources, tutorials or books can you recommended to get started with unit testing J2EE / EJB3 applications?
So far I have found ejb3unit, Jakarta Cactus (retired 2011/08) and t...
Maltose asked 14/11, 2009 at 9:32
2
Solved
I'm learning EJB3 and I'm just curious when it's convenient to use SFSB? I can't find any nice example when SFSB realy solve easily some complex problem.
Actually I see that SLSB can be used as we...
Callus asked 6/11, 2009 at 10:35
3
Solved
I'm deploying an EJB which should set a timer and be triggered by it every 24 hours. But where should I set the timer? @PostConstruct does not help -- this is a session bean, so post-construct meth...
1
Solved
I have a EJB defined as this:
package com.foo;
@Stateless (mappedName="HelloWorld")
public class HelloWorldBean implements HelloWorld, HelloWorldLocal
....
When it's deployed to Weblogic (WL), i...
Rori asked 24/10, 2009 at 16:46
4
I would like to know how can I access the file system from an EJB 3 bean?
I searched the Internet on the subject and haven't found a good answer.
Some suggest using the java.io/java.nio even thou...
1
Solved
I use:
EJB3 / JPA (Hibernate)
MySQL 5
I have to set up a system to help database migrations. Tried to use LiquiBase but it seems not enough mature yet to be used with Hibernate.
What I would l...
1
Solved
I'm currently experimenting with EJB3 as a prestudy for a major project at work. One of the things I'm looking into is query caching.
I've made a very simple domain model with JPA annotations, a ...
9
Solved
We currently have a web application loading a Spring application context which instantiates a stack of business objects, DAO objects and Hibernate. We would like to share this stack with another we...
2
Solved
I am calling a remote stateless session bean from a J2SE application and would like to cache the reference to the session bean in order to reduce the cost of the lookup. Is this ok?
In EJB2 the S...
Cardiac asked 5/4, 2009 at 5:42
11
Solved
I am currently working on some older java code that was developed without App Servers in mind. It is basically a bunch of "black box code" with an input interface, and an output interface. Everythi...
Knorring asked 18/3, 2009 at 23:13
2
Solved
I would like to have a JUnit (or other) system where the enterprise beans can be tested in a mock environment so that all resources/beans and so on are injected locally. The enterprise beans should...
Statutory asked 16/2, 2009 at 11:34
3
Solved
I have a webapp with different Dynamic Web Projects, each of them generally containing an EJB Project. We want to keep them interacting, as in using beans and classes from each other's EJBs through...
Screenplay asked 7/1, 2009 at 12:58
2
Solved
E.g. if I set a timer to expire every day at midnight, what will happen if one "misfire" (does not trigger the callback because the server is down, for instance) ? I can't find that in the document...
Eben asked 30/12, 2008 at 10:15
2
Solved
I'm in the process of developing a multi-tiered financial processing application in Java using EJB3 (Hibernate + Glassfish for the app and web services layer, Lift on Glassfish for the web UI) and ...
Coadjutrix asked 30/10, 2008 at 19:44
4
The scenario
You have developed a webapp using EJBs version 3.
The system is deployed, delivered and is used by the customer.
If you would have to rewrite the system from scratch, would you use...
Diastrophism asked 2/10, 2008 at 8:30
2
Solved
I'm experiencing the following very annoying behaviour when using JPA entitys in conjunction with Oracle 10g.
Suppose you have the following entity.
@Entity
@Table(name = "T_Order")
public class...
2
Solved
Suppose you have the following EJB 3 interfaces/classes:
public interface Repository<E>
{
public void delete(E entity);
}
public abstract class AbstractRepository<E> implements...
Wickman asked 18/8, 2008 at 15:34
© 2022 - 2024 — McMap. All rights reserved.