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
0
votes
1 answer

SMTP mail sending fail

I am sending mail from my local machine and got following error ERROR [STDERR] javax.mail.SendFailedException: Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 553 sorry, relaying denied from your location…
chetan
  • 3,175
  • 20
  • 72
  • 113
0
votes
1 answer

Reliably telling stateful and stateless EJB 2.0 beans apart

I am trying to figure out an old and quite bit-rotten EJB 2.0 application, with a migration to EJB 3.x being a future possibility. EJB 3.x is nice enough to keep its bean definitions compact and use annotations for important metadata. Unfortunately,…
thkala
  • 84,049
  • 23
  • 157
  • 201
0
votes
1 answer

Local EJB Bean Not Found using Indirect JNDI which was working earlier

I am using EJB 2.1 in a separate module in a multi-module Maven Application. I am using indirect JNDI (ie. using java:comp/env/ Not used it much). Also I am using EJB 2.1 for the first time. But since this is only a local simple EJB so not much…
abhihello123
  • 1,668
  • 1
  • 22
  • 38
0
votes
0 answers

Error staring EJB3 service JBOSS, org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0

I had an EJB3 that is using an EJB2 interfaces and it's deploying fine on my local dev instance. However, trying to deploy it on one of the servers at work I get the following exception…
0
votes
1 answer

EJB 2.1 ClasscastException

Below is my code Properties localProperties = new Properties(); localProperties.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory"); localProperties.setProperty("java.naming.factory.url.pkgs",…
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
0
votes
1 answer

Cannot access bean when deploying ejb module and web module separately?

I was testing an EJB 2.x application. I created 2 module separately: EJB module: contains a simple stateless session bean Web module: contains a single servlet page to lookup EJB module. I was using Jboss 4.2.3. First, I deployed the EJB module and…
ipkiss
  • 13,311
  • 33
  • 88
  • 123
0
votes
1 answer

synchronized block in ejb2 stateless session bean

So far i have heard that synchronized is not recommended for ejb session bean. I have one problem that i resolved by using synchronized. Code where i used synchronized. if(strBatchID != null && strBatchNumber != null){ …
chetan
  • 3,175
  • 20
  • 72
  • 113
-1
votes
1 answer

Does Jboss 7.1 AS supports ejb 2.1?

it seems jboss AS 7.1 supports ejb 2.1.Our ejb 2.1 based application is deployed on jboss 5 AS. We are migrating it to jboss7.1. but i want to know what are the additional configurations required to run ejb 2.1 without any errors?
-1
votes
1 answer

Inject Spring config file into Ejb using Annotation

Am trying to migrate project from ejb2.1 to ejb3.1. In my current project's ejb-jar.xml, i am using for loading the spring configuration xml file{which initializes the beans which going to be called in ejbbean class in onEjbCreate() method using…
A K M
  • 11
  • 9
-1
votes
1 answer

EJB 2.1: Prevent Bean passivation immediately after it is activated

Running a ejb 2.1 entity bean on jboss 6.3. This bean is being passivated immediately after its activated. any idea why this happens, and is it possible to stop it from happening for at least a few seconds. This happens between method calls. I can't…
lego.warrior
  • 342
  • 3
  • 16
-1
votes
1 answer

How Handle can be used in Ejb apps? What's its significance?

I can see that Handle stores the reference to the beans. But how its useful for clients calling this ejb? What are the things that clients can achieve by getting the Handle to the ejb bean?
Rahul Vedpathak
  • 1,346
  • 3
  • 16
  • 30
-2
votes
1 answer

Can an ESB provide an EJB2.0 and EJB3.0 interface in parallel?

Today I received an email, which announced that a service will be migrated from EJB2.0 to EJB3.0 and the EJB2.0 interface won't be supported further. But as we're using an Enterprise Service Bus, I was wondering why they don't provide both…
Christian Strempfer
  • 7,291
  • 6
  • 50
  • 75
-2
votes
1 answer

Does JBoss 7.x Support J2EE 5.0 and EJB 2.0?

I have an application build on J2EE EJB 2.0 deployed on JBoss 5.1.0. I want to migrate that application to JBoss 7. Does JBoss 7.x Support J2EE 5.0 and EJB 2.0? If Yes, then how to Migrate Jboss 5.1.0 to JBoss 7.x?
Ankit Duggal
  • 55
  • 2
  • 13
-2
votes
1 answer

Can we have a deployment Descriptor in EJB 3.x

I am trying to narrow down the major changes in in EJB 3 and EJB 2, and noted the following changes EJB 3.X does not required a deployment descriptor; does this mean we can not have a deployment descriptor ? Also the home and the remote interfaces…
-3
votes
1 answer

Calling EJB through java

I have no knowledge of EJB. I am asssuming its an alternative to get data from somewhere as we do in consuming webservices. For my new project we will be using EJB for getting data. These services will be developed by some other team. I was hoping…
Dhananjay
  • 734
  • 1
  • 9
  • 14
1 2 3
15
16