Questions tagged [ejb-2.x]

This tag is used for question related to the session bean and message-driven bean component types of the EJB 2.x programming model. For questions about the persistent entities defined in the document "Java Persistence API" of the EJB 2.x specification, use the [JPA] tag.

This tag is used for question related to the session bean and message-driven bean component types of the EJB 2.x programming model. For questions about the persistent entities defined in the document "Java Persistence API" of the EJB 2.x specification, use the [JPA] tag.

240 questions
1
vote
1 answer

What is a global JNDI name and why does it differ between app servers?

I am studying up on EJB 3 from the book EJB in Action and this book in chapter 5 discusses about environment naming context(ENC). It says this : If you know how JNDI references worked in EJB 2, you’re familiar with the environment naming context…
Geek
  • 26,489
  • 43
  • 149
  • 227
1
vote
1 answer

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?
1
vote
1 answer

WildFly and old EJB2 code

We have a project with plenty of legacy EJB2 stuff along with new code written in EJB3. So we want to migrate it from JBoss AS 7 to WildFly. Does WildFly support EJB2? I have tried to find info about this, but found only info from June 10 2013 that…
dds
  • 2,335
  • 1
  • 31
  • 45
1
vote
2 answers

Locking problems using SimpleReadWriteEJBLock

First of all, I am using Oracle and JBoss 4.0.4 and I'm pretty much a newbie on JBoss matters. Our distributed application uses CMP beans with SimpleReadWrite... etc locking policy, which I'm told seemed the best choice at the time. (Original…
Alessandro
  • 601
  • 3
  • 11
  • 26
1
vote
0 answers

Cannot deploy MDB with durable subscription(topic) in EJB2.1 for Glassfish 4

I am in the process of migrate from OC4J to glassfish and struggles to deploy MDBs with durable subscriptions on Glassfish4 The class MyObserver implements MessageDrivenBean and MessageListener and is registered with a topic Created topic: …
gon
  • 46
  • 5
1
vote
1 answer

JSP with JSTL does not print variables

I have problem with JSTL taglib variable printing. My JSP file: <%@taglib prefix="c" uri="/WEB-INF/c.tld"%> <%@taglib prefix="fn" uri="/WEB-INF/fn.tld" %> .... <% String val1 = ""; Object val = RequestUtils.lookup(pageContext, "Form",…
Wojciech Szymski
  • 365
  • 4
  • 16
1
vote
1 answer

Specify table name for ejb 2.1 many to many relationship

I have an ejb 2.1 m:n relationship. The table is being created automatically. The thing is I want to specify the table name that is going to be created by this relationship. The question: Does a many to many relationship have an attribute to specify…
Fagner Brack
  • 2,365
  • 4
  • 33
  • 69
1
vote
0 answers

multiple method invocation in EJB2.0 session bean

I have one session bean with following method /** * This method is used to Update Voucher Expiry Date and Voucher Status for Voucher Service * @ejb.interface-method * @ejb.facade-method invalidate="true" * @ejb.transaction type="Supports"…
chetan
  • 3,175
  • 20
  • 72
  • 113
1
vote
1 answer

Migrating from EJB2 to EJB3 EntityBean performance

Our project is designed in EJB 2.0. We are not using any kind of EJB persistance methods in the BMP EntityBeans. In SessionBeans we are getting reference to EntityHome object by using method getEJBXXXXHome() method and there by calling…
user991255
  • 355
  • 1
  • 6
  • 13
1
vote
1 answer

EJB2.x container managed relationship

I am a total novice to EJB technologies, so recently I started learning EJB3.0, when reading through books/online resources, I found lot of references and comparisons to EJB2.0 and how EJB3.0 simplifies things by requiring developer to create fever…
rdeshmukh
  • 23
  • 4
1
vote
2 answers

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…
Rahul
  • 12,886
  • 13
  • 57
  • 62
1
vote
1 answer

ejb get currently executing bean

I have several stateless beans and some service class that is called by that beans. I can not directly pass bean instance to that service class. Are there any way to get currently executing bean instance? I just wonder if there any existing…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
1
vote
2 answers

java.io.StreamCorruptedException: unexpected end of block data - when communicating between defferent JVMs

I have a EJB client and a EJB2 server which runs on a JBoss 4 server. It was working fine for same JVM version(1.6). Then I upgrade client JVM to 1.7(but compiler version is 1.6) while keeping server JVM as the same(1.6).…
hmc
  • 85
  • 1
  • 10
1
vote
2 answers

Messages pending in subscriber queue

I am using jboss-5.1 to deploy message driven bean which is used to subscribe messages from a third party queue. Around 16 messages were posted to that queue but they remained pending in our subscriber queue. I restarted the server and the messages…
dev
  • 132
  • 1
  • 3
  • 11
1
vote
0 answers

EJB 2.1 subquery on JBoss AS7

Good morning, I'm migrating an EJB 2.1 project from JBoss AS5 to AS7, and I'm having some troubles. The project contains several EJB queries defined, and, some of them are not working, for example: