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.

242 questions
2
votes
1 answer

How to access EJB using JNDI Weblogic

Hello I am trying to access EJB component using JNDI. For this i made a simple program called HelloWorld. Remote Interface public interface HelloWorldEJB extends EJBObject { public String sayHello() throws RemoteException; } Home…
Still Learning
  • 1,293
  • 4
  • 17
  • 48
2
votes
2 answers

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…
cubanacan
  • 644
  • 1
  • 9
  • 26
2
votes
0 answers

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…
Roland Schneider
  • 3,517
  • 3
  • 29
  • 42
2
votes
1 answer

Application vs Container authentication in EJB

I am fresher to EJB, working on a maintenance application that is using EJB2.0. I am just going through the application code and trying to understand it. It has got ejb-jar.xml with some session beans as shown below.
srk
  • 4,534
  • 11
  • 54
  • 102
2
votes
3 answers

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 …
Yishai
  • 84,976
  • 26
  • 176
  • 250
2
votes
1 answer

JBWEB000236: Servlet.service() for servlet strutsAction threw exception: java.lang.StackOverflowError

I'm migrating my application from Jboss 4 to Jboss 7(jboss eap 6.1 alpha) getting the below error, while trying to search results in my project. I'm using Java 6, Struts 1.2, EJB 2.0, Jboss 6 EAP alpha. Note: The same code works fine when running in…
lee b
  • 61
  • 1
  • 2
  • 6
2
votes
5 answers

Failed to marshal EJB parameters --- IllegalArgumentException: Can not set org.apache.commons.collections.FastHashMap field

I'm getting the below error while trying to save a search results using the Remote interface for SearchFacade.java "Failed to marshal EJB parameters" Can not set org.apache.commons.collections.FastHashMap field …
lee b
  • 61
  • 1
  • 2
  • 6
2
votes
1 answer

How to forward a jms message from one managed server (Weblogic) to another based on some selectors without using JMS Bridges?

I have a application in which I need to route my JMS messages to different managed servers based on some selector value. But I cannot use JMS bridges for the purpose as the application has more than 20 managed servers in production.so with the JMS…
Binary Bug
  • 31
  • 4
2
votes
1 answer

How change jndi remote lookup to local lookup in jboss 6.0.0

I am going through the Permormace activity of our project. This project has been deployed in JBOSS 6.0.0. Presenlty communication between EJBs using remote JNDI lookup using within the same container which is not required and it taking time. So I…
mRaza
  • 67
  • 1
  • 7
2
votes
1 answer

Cannot find the declaration of element 'XMLTooling'

we are upgrading from wls 9.2 to wls 10.3 and was able to build successfully but when running the application getting runtime exception as follows: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 8 in XML document from…
2
votes
2 answers

EJB 2.1 Vs EJB 3.1

Just wanted to know can i directly run the code which EJB code (adhering to 2.1 specs) in a EJB 3.1 container of an application server?In an application server, are there different versions of the EJB container one adhering to EJB 3.1 specs and…
hakish
  • 3,730
  • 7
  • 36
  • 55
1
vote
1 answer

perform sequential transaction using ejb2 stateless session bean

I want to perform client request in order they called session bean. But sometimes second request executed successfully before first one. Is sequential client request execution is possible using ejb2 stateless session Bean ? public generate(){ …
chetan
  • 2,995
  • 20
  • 67
  • 111
1
vote
0 answers

Migration of EJB 2.1 from WebSphere to JBoss

We have a application with EJB 2.1 running on WebSphere. Now we are migrating from WebSphere to Jboss 5.1. Could you anybody help how to migrate my EJB 2.1 stuff from Websphere to JBoss? I have ejb-jar.xml and I am not sure where to keep it. Do I…
chaatna
  • 61
  • 3
  • 8
1
vote
1 answer

How can I reflect as an annotation in EJB 3

I try migrate an EJB2.1 projetk into EJB3.1. I did not find any annotation for . How can i reflect this tag. The ejb-jar.xml part looks like: admin
Kayser
  • 6,116
  • 17
  • 49
  • 86
1
vote
2 answers

Porting EJB3 to EJB2

This is a weird situation. Let me explain it as best as I can. I have an interface Client which has methods which throw a Custom Exception. My EJB3 Remote extends this interface Client and was annotated @Remote. My EJB3 Bean used to extend the…
Ajay George
  • 11,113
  • 1
  • 37
  • 46
1 2
3
16 17