ejb-2.x

Mixing EJB 2.x BMP entity beans with Hibernate 3.x

I have a large application that uses EJB 2.x entity beans (BMP). This is well-known to be a horrible persistence strategy (I can elaborate if necessary). I'd like to start migrating this application to use a much more expressive, transparent, and non-invasive persistence strategy, and given my company's previous experience with it, Hibe...

Can you run EJB 2.1 beans in OSGi?

I have a J2EE 1.3 app that uses EJB 2.1 session and entity beans. Currently this app runs as an EAR file on JBoss. I'd like to switch to the SpringSource dm Application Server because of all the benefits that OSGi provides. Does anyone know if there's an OSGi bundle that can act as an EJB container? Can OpenEJB do this? ...

Migrating EJB2.x BMP entity beans

We use EJB2.x entity beans with BMP (bean managed persistence). It appears BMP is not supported in EJB3. We had wanted to stay current and upgrade to EJB3. Does anyone know if there are in fact any BMP options available in 3.0? From what I can tell, using 3.0, all entity beans have to use JPA and by definition ORM. There are some op...

How do I migrate ejb2 stateless session beans to ejb3 piecemeal?

The EJB3 spec indicates that EJB2 and EJB3 can co-exist in a single application. I wish to migrate my EJB2 stateless session beans to EJB3 stateless session beans. This question does not relate to JPA at all (that is a separate piece of work to be carried out in the future) I'm running on websphere 6.1 with the EJB3 feature pack instal...

How to configure EJB lookup in clusterd websphere environment.

Hello, I'm developing a EJB client. The EJB (2.1) server in deployed as Websphere 6.0 cluster. I'm doing the jndi lookup after acquirement of the InitialContent object for specific ip address using the following code: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTIORY,com.ibm.websphere.naming.WsnInitialContextFac...

JMS queue in Weblogic10 EJB2 session bean able to send but not to receive

I try to receive a JMS message in an EJB2 (legacy sucks ;-) stateless session bean, in weblogic 10.0.1, with bean managed transactions. Queue definition from jms folder looks like <uniform-distributed-queue name="ReqQueue"> <default-targeting-enabled>true</default-targeting-enabled> <delivery-params-overrides> <delivery-mode>Non...

Using rownum in EJBQL for Pagination CMP 2.1

I need to implement Pagintion of CMP2.1 Entity Beans. Is it possible to do it using EJB-QL ? Am using weblogic10.3 + Oracle DB. I was planning to use "rownum >= min_row_size + PreparedQUery.setMaxResult()" to get desired result . But rownum in EJB-QL is not recognized by weblogic . Is there any way to specify psuedo column in EJb-QL ? ...

How to create EJB 2.1 beans in Eclipse 3.5

I am not able to create EJB 2.1 beans using a wizard in the latest version of Eclipse. I only see options to create EJB 3.0 beans. I selected 2.1 as the 'EJB Module Version' while creating the "EJB Project". But now when I want to create a session bean, I don't see any option to create a 2.1 bean. Is there a plugin/setting I need to en...

JBoss Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag

I've copied and pasted the example ejb-jar.xml and jboss.xml file from http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex and I'm receiving the following error when JBoss attempts to deploy it: ERROR [ScannerThread] deployment.MainDeployer (MainDeployer.java:943) - Could not create deployment: file:/...-ej...

How exception propogates when EJB2.0 is used on Jboss 4.0.2(windows XP)?

public interface HelloWorldHome extends javax.ejb.EJBHome{ public void create() throws java.rmi.RemoteException, com.MyException; --This is a BMP-- public class HelloWorldBean implements EntityBean{ ----implemented methods---- public HelloWorldEntity ejbCreate() throws com.MyException{ throw new MyException("This is explicitly...

IllegalStateException: Cannot obtain inMethodFlag for: getPrimaryKey

Can anyone tell me why following exception comes? java.rmi.ServerException: RuntimeException; nested exception is: java.lang.IllegalStateException: Cannot obtain inMethodFlag for: getPrimaryKey How to avoid it? Thanks in advance. ...

Generate EJB 2.x interfaces

Hi all, to follow my previous question: http://stackoverflow.com/questions/2560272/xdoclet-a-dead-tool what tool can I use nowadays to generate the homes & interfaces of my EJB's? Thanks by advance, Alban. ...

Ejb lookup failing on WAS7.0 with NamingException

Hi, I have an application developed on RAD using WAS 6.0. I migrated the code to WID 7.0. After making some changes in the EJB modules(Had to remove the bnd.xmi file from each ejb module to deploy the application on Application Server)the application is running fine, but the EJB modules give the following error: NamingException has Occu...

Is this valid EJB-QL?

I have the following construct in EJB-QL several EJB 2.1 finder methods: SELECT distinct OBJECT(rd) FROM RequestDetail rd, DetailResponse dr WHERE dr.updateReqResponseParentID is not null and dr.updateReqResponseParentID = ?1 and rd.requestDetailID = dr.requestDetailID and rd.deleted is null and dr.deleted is ...

Ejb 2.0 deployment issues on Jboss 5.1

I am deploying an ear application on Jboss 5.1.0. and i facing some issues. I had two ears one i had copied to deploy folder and the other in deploy-hasingleton. The ear which is in deploy-hasingleton is throwing some errors.when i serached in google i came to know that there is some issue with EJB 2.x on jboss 5.1.i was not able to fi...

how EJB Life cycle methods are invoked

Can some one explain on how typical sessin bean's life cycle is and who hadle those? ...

EJB2 deployment problem (JBoss 3.2.1)

When I try to deploy my simple app I get the following error: Bean : TestEJB Method : public abstract S2KManager create() throws CreateException, RemoteException Section: 7.10.6 Warning: The method return values in the home interface must be of valid types for RMI/IIOP. First some technical information: JBoss 3.2.1 JDK 1.4.2 EJB2 ...

JBoss EJB2 Timers Service - multiple servers, single TIMERS table?

Hi I can't find this in the JBoss documentation anywhere, so am asking here. Can multiple, non-clustered JBoss instances access and share the same TIMERS table (as used by EJB2 Timers Service) without upsetting each other, or does each one need its own table? In the case of a cluster, is it essential that the nodes in the cluster all ...

How to add the ear JNDI namespace to EJB2.x Beans?

In the project I am currently working at we have about 20 different EJB 2 JARs that are used across multiple (Swing-) clients. Example: customer-1.0.0.jar ^ ^ | | client-app-1 client-app-2 These different client applications have different release cycles so they usually need differe...

The simplest way to convert EJB 2.0 project to EJB 3.0

What is the simplest way to convert EJB 2.0 (WebLogic 8.1) project to EJB 3.0 (OAS or WebLogic etc)? I found just this article "Converting an EJB 2.0 Entity Bean to EJB 3.0", which could automate this process, but forced to do too much manual manipulations. ...