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
2
votes
2 answers

case-insensitive search in EJB QL

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,…
phunehehe
  • 8,618
  • 7
  • 49
  • 79
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…
keepmoving
  • 1,813
  • 8
  • 34
  • 74
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,615
  • 3
  • 32
  • 43
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,857
  • 12
  • 65
  • 109
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
  • 90,445
  • 31
  • 189
  • 263
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
2 answers

Eclipse Kepler 'Prepare for Deployment' option to create EJB stubs

So we are currently analysing if it is feasible to move out from MyEclipse->Eclipse and one of the areas where we are currently stuck is EJB Deploy. In MyEclipse there is an option named 'Run EJB Deploy' which generates .ejbDeploy folder with the…
Yogendra
  • 331
  • 5
  • 21
2
votes
1 answer

Restructure or reassemble an EJB 2 EAR for debugging in Eclipse

I am working on a legacy application that was written in EJB 2. I want to load it in eclipse and debug it within Eclipse. I know I can build it and deploy it in a local Jboss 5.1 installation and remote debug from Eclipse but the problem with this…
ziggy
  • 15,677
  • 67
  • 194
  • 287
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…
Soumen K
  • 41
  • 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
  • 65
  • 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,990
  • 7
  • 39
  • 56
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
  • 3,175
  • 20
  • 72
  • 113
1 2
3
15 16