ejb

Weblogic forces recompile of EJBs when migrating from 9.2.1 to 9.2.3

I have a few EJBs compiled with Weblogic's EJBC complient with Weblogic 9.2.1. Our customer uses Weblogic 9.2.3. During server start Weblogic gives the following message: <BEA-010087> <The EJB deployment named: YYY.jar is being recompiled within the WebLogic Server. Please consult the server logs if there are any errors. It is also poss...

JBoss Seam Design Patterns?

I've really taken a liking to the JBoss Seam application framework. Since the notion of injection/outjection and tight integration between JSF/EJBs/JPA is relatively scarce among Java application frameworks, I was looking for some good resources for design patterns and best practices for using this framework. I've poured over the examp...

Weld injection failing when calling a method from an super/abstract class with Wicket.

Hi all. I am having a problem with weld-wicket. When @Inject-ing an EJB that inherits from an abstract class, if I attempt to call a method from the abstract class I get an ejb-ref error. However if I call a method from the concrete class it works perfectly. I can override methods and call them, and I can delegate an overridden method ...

What happens to dereferenced hibernate (JPA) entities?

In a project i am working on, we have an EJB backend where various clients connect remotely (i.e. Web layer, web services layer, etc). The clients are on another machine and can be in another data center, so the front end and backend are never in the same app server. The backend is layered as follows: SLSB <-> Service Layer Objects <-...

entitymanager persist

I have a problem when trying to update foreign keys. Using the merge function I always get a out of memory error, or I get a timeout Fakultaet and Standort are foreign keys in the Raum table (many to one, and lazy fetching) Raum does eager fetching for the Fakultaet and Standort @Stateless @Local (IRaumHomeLocal.class) @Remote (IRaumHo...

case-insensitive search in EJB QL

Hello, This looks really simple and I can't believe I haven't found a solution myself. I have a bean named PersonBean, which has a name. Now I want to write a finder method that takes a string and looks for people with that string in their name, case-insensitively. Here is my current EJB QL: SELECT OBJECT(p) FROM Person p WHERE (p.name...

when is an EJB CMP entity bean actually created

Hello, I have a session bean that provides a business method, in which it creates several CMP entity beans, something like this public void businessMethod(int number) { try { MyBeanHome home = lookupMyBean(); DataSource dataSource = getMyDataSource(); Statement statement = dataSource.getConnection().createSta...

Seam - EJB3 in Web Module/WAR?

I'm writing an application using Seam 2.2.x which will be deployed on JBoss 5.1. I have an EJB module with all of the business logic en EJB's. However, I'd also like to have statless session EJBs in the web module to act as action classes. Is this possible? Do I need to perform any additional configuration to get this working? I hav...

EJB-QL exception

select DISTINCT TOP 10 o.MaterialNumber from MaterialCreation_MDO o where o.MaterialGroup= ?1 and o.Noun= ?2 and o.MaterialNumber like ?3 order by o.MaterialNumber desc this query is throwing exception on encountering 'TOP' keyword in ejb-ql statement.... ...

What to learn now? EJB or Android Programming.

I learned all basic java classes and how to use them. I like to learn Android App Programming. But one of my colleague suggested me to learn EJB. What is the best to learn? ...

Can DI frameworks provide singleton scope in EJB app. (varying classloader usage)?

Hi. Let's say I want to use an EJB container and I don't know how the container implementation is using classloaders. Now, I want to have in-memory shared state with my custom datastructures (so no HSQLDB etc.). in this app., and the EJB spec happens to be < EJB 3.1 and I can't use the EJB singleton service. If I'd use DI frameworks...

Help me to understand SEAM and Hibernate?

Hi, I want to use SEAM Framework with Hibernate but do not want to use EJB. I cannot use EJB. First question is, can I use EntityManager? or is EntityManager a part of EJB? How can I get access to use Hibernate in my SEAM component? Thanks, Philip ...

Are there any built-in method for obtaining a list of existing EJB3 Sessions?

I use JBoss 5. I would like to destroy sessions manually. Are there any way to query container for sessions of particular type, for particular authenticated user. Or at least, query for all managed sessions? ...

Classloader problem with EJB

Hi! I'm working on a project which includes persistence library (JPA 1.2), EJB 3 and Web presentation layer (JSF). I develop application using Eclipse and application is published on Websphere Application Server Community Edition (Geronimo 2.1.4) through eclipse plugin (but the same thing happens if I publish manually). When publishing ...

UML Tool for JavaEE-applications, with good Annotation/EJB-support

I'm looking for a good UML tool (free or at least available as a Trial, availability as an Eclipse- or Netbeans-plugin would also be nice) to visualize the class hierarchy (doesn't have to be strict UML) inside an JavaEE-application. It should have a decent EJB/annotation support (most important feature). I googled around and found this...

Using the client jar in EJB 3 and design patterns

Hi, I'm new to EJB 3 and pretty confused with some doubts which Google didn't provide with a satisfactory answer. I'm trying to create a framework with some base classes and some utility methods which my other applications can use. All applications are to be deployed on the same server. When I'm trying to create a new EJB 3.0 project ...

"javax.ejb.NoSuchEJBException: Could not find stateful bean: "

Hello All, I'm struggling futher in my adventure with Jboss and EJB 3.0. I joined Spring 3.0 with EJB. I have 3 modules - web module with Spring controllers, ejb module with my EJB beans and spring mogule with other classes like dao or some helpers. All in the ear. So, in my Spring Controller I have the following code: @Controller publ...

Socket Communication - StreamCorruptedException(Jboss Remoting)

Hi All, I am using EJB3 as the client socket and the server socket is a normal java class. My Application server is Sun GlassfishV2. I would like to communicate from the EJBBean(Client) to the server using Jboss Remoting. If I use transport protocol "sslsocket" in the InvokerLocator class means its working fine. But If I use the transpo...

EJB 3.1 timer rollback exception

Hey fellows, I've been getting a load of rollbackexception when calling some SELECT JPQL or namedqueries from a Singleton. The Singleton as one method with the @Schedule annotation calling the some others db query which run fine. But once that shceduled method calls on some other methods which at their turn call db queries then everythi...

"Unable to convert ejbRef for ejb" on CDI (Weld) injection of @Stateless EJB into @SessionScoped JSF2 bean in Glassfish

[UPDATE: After discussion on the Glassfish forums/ML at http://forums.java.net/jive/thread.jspa?messageID=480532 a bug was filed against Glassfish https://glassfish.dev.java.net/issues/show_bug.cgi?id=13040 for this issue.] I'm trying to inject a local no-interface view of a @Stateless EJB into a JSF2 @Named @javax.enterprise.context.Se...