1,100
questions
-1
votes
1
answer
36
views
Eclipse marks ejb-jar.xml entry <ejb-class> as invalid
I'm on a legacy EJB project using Eclipse with the following ejb-jar.xml:
<ejb-jar version="3.1" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/...
0
votes
1
answer
34
views
EJB3 Websphere Custom JNDI Binding
I have an application which I am migrating an application(EJB Application to be specific) to EJB 3.1 from EJB 2.1.
Now, I want a custom JNDI mapping for a Stateless bean.
I had set the mappingName ...
0
votes
0
answers
33
views
Stop Execution of @Schedule timer on multiple Nodes
I have a scenario in which a javax.ejb.Schedule @Schedule timer job is deployed on WebSphere Application Server in a 2 cluster environment with 2 seperate nodes, meaning that there are always 2 ...
0
votes
1
answer
64
views
Do I need to clear the reference of return object from EJB Stateless Bean?
Hi I am little confused with stateless session bean's pool mechanism and internal object lifecycle. According to the spec, I understood that the container creates stateless session beans and put them ...
0
votes
0
answers
380
views
How to call a remote EJB 3.1 with its client on OpenLiberty
I'm new to Open Liberty. I need to call an EJB 3.1 deployed on WAS 8.5 but I can't find any documentation or tutorial on how to do it.
Is this feature present in OpenLiberty? Which features should i ...
0
votes
1
answer
128
views
Exception in thread "P=69052:O=0:CT" java.lang.ClassCastException: org.omg.stub.java.rmi._Remote_Stub
I'm using was 9.0, EJB 3.0 and I written a RMI class to call the remote's EJB. When I run, the console shows me this error:
Exception in thread "P=69052:O=0:CT" java.lang.ClassCastException:...
1
vote
1
answer
189
views
EJB update bean property at runtime
I have a bean that contains some web client implementation that can be REST or SOAP:
@Stateless
public class Service{
private Client client;
@PostConstruct
public void init() {
this.client =...
1
vote
0
answers
83
views
Weblogic 12c spent several minutes during startup resolving EJB references
The startup of my application takes almost 7 minutes, but more than 4 of them are used by Weblogic to resolve EJB references. I've profiled the startup of the server, and I've found that the time is ...
0
votes
1
answer
206
views
Does adding @TransactionAttribute(REQUIRED_NEW) in a method which is invoked from a Stateless Bean(which already has REQUIRED) work in EJB 3.1?
As per Spec, EJB doesn't support nested transactions, so what I wanted to know is, assume there are 2 classes (Parent and Child). Parent call is a stateless session bean and Child is a plain vanilla ...
1
vote
0
answers
271
views
Make <resource-ref/> optional in the sense that deployment does not fail when a JNDI name is not pointing to a valid resource
We have an EJB application with a jboss-ejb3.xml which defines resource-refs for JNDI mapped resources. In our use-case not all resources are available in all environments. Since jboss-ejb3.xml cannot ...
2
votes
1
answer
574
views
is it possible to create Singleton non-persistent ejb timer?
I am using an EJB automatic timer service with @schedule annotation. However I need help with the following.
I need a singleton time service (execution on only one node in a cluster) but don't want to ...
1
vote
0
answers
564
views
Wildfly 13 ejb stateless session bean not removed from pool
When load increases then stateless session beans count increases but later stateless beans are not removed from slsb-strict-max-pool when all are idle. Is there any setting to remove idle stateless ...
-1
votes
1
answer
67
views
EJB Major Distinctions from other Technologies that perform the same function? [closed]
What are some major distinctions between EJB and the other technologies that perform the same function, and why is there such focus on the technologies that are, or are not supported, as opposed to ...
1
vote
1
answer
66
views
Details with parameter and datatable for child entity
I am programming a Java EE application to do the yearly evaluation to the company workers. I want to display the details of the evaluation for every collaborateur when I click on Details.
The 3 ...
0
votes
0
answers
213
views
EJB over HTTP: Intercepting requests and responses
WildFly supports remote EJB calls via HTTP. Is it possible to intercept these requests and responses in order to manipulate them? Say I want to add a session ID / conversation ID to each/most request ...
2
votes
1
answer
3k
views
java.lang.NoClassDefFoundError: org/jboss/logging/Logger
JBoss Server Version : 7.3
Java Version : 1.8
IDE : eclipse
Exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger
at org.jboss.naming.remote....
1
vote
1
answer
705
views
javax.ejb.NoSuchEJBException: EJBCLIENT000079 Eclipse, JBOSS,EJB 3.1
javax.ejb.NoSuchEJBException: EJBCLIENT000079 with JBoss 7.1 and Eclipse
My test code is exactly same as given in the above post and the problem i am facing was also mentioned in the same post but do ...
2
votes
1
answer
571
views
Does GlassFish 5.0.1 (with Java 8) supports EJB 2.1 and EJB 3.1?
Does Does GlassFish 5.0.1 (with Java 8) supports EJB 2.1 and EJB 3.1 ?
I installed GlassFish with Payara and tried to deploy my .EAR application with EJB 3.1 Entity and session beans and it hangs up ...
1
vote
0
answers
437
views
EJB Asynchronous method Interceptors : is it possible to execute interceptor method in the caller thread
If a method annotated with @Asynchronous, has an interceptor, the @AroundInvoke method gets executed in the same thread that will execute the asynchronous method, is it possible to make the execution ...
1
vote
1
answer
307
views
PayaraMicro does not call @PreDestroy on EJB or ApplicationScoped
I'm migrating a WAR application from PayaraServer to Payara Micro to reduce RAM usage.
I just realise that @PreDestroy on EJBs are not called when stopping the instance with CTRL+C.
Is there a ...
4
votes
0
answers
257
views
Is EJB 3.1 TimerService Daylight Saving aware?
I'd like to create a programmable scheduler which triggers once per day. It has to trigger exactly at the same hour everyday whether Daylight Savingtime is on or off. So if it was set for 6 o'clock in ...
0
votes
1
answer
201
views
global transaction websphere 8.5.5.11 ejb
I have an interface :
public interface LogBookService extends EntityService<LogBookEntity, Long> {
void writelogNewTransaction(LogBookEntity log);
}
and its implementation :
@Stateless
@...
1
vote
0
answers
399
views
Stateless bean does not expose default method of interface implemented
I have a default method defined on an interface (AsynchronousTarget) and then implement that interface by @Stateless bean. Here is the interface and the bean:
public interface AsynchronousTarget { ...
0
votes
1
answer
74
views
Dozer with EJB 3.1 in TomEE
I am using EJB 3.1 in TomEE, I wanted to use a mapper so I choosed DOZER.
Here is the implementation :
@Startup
@Singleton
public class DozerInstantiator {
private Logger log = Logger.getLogger(...
-1
votes
1
answer
331
views
Asynchronous vs new Thread - Need help for a solution (Java)
I have a method which currently needs to return a result to the client no slower than it currently is. So it must call a method and forget about it, it should continue processing and not wait for that ...
0
votes
1
answer
823
views
Does ejb.jar and jboss-client.jar support java 11?
Does below jar support java 11?
ejb.jar - javax.ejb API v.3.1 -Bundle-Vendor: GlassFish Community
jboss-client.jar - 7.1.1.Final - JBoss by Red Hat
1
vote
1
answer
2k
views
EJB Timer service: WTRN0006W: Transaction xxxx has timed out after 120 seconds
We have 4 timer jobs that run daily at different time. We are using internal Default persistent Timer scheduler with 4 threads for this. In this batch jobs we are retrieving contents of many DB2 ...
1
vote
1
answer
1k
views
Can a startup singleton bean delay a J2EE container initialization?
According to the Java EE 6 Tutorial:
The EJB container is responsible for determining when to initialize a singleton session bean instance unless the singleton session bean implementation class is ...
0
votes
2
answers
916
views
Timer Service: Bean does not have timers in EJB3.1
Actually, am migrating an application from EJB2.1 to EJB3.1. After changed the application I got an issue while calling getTimers() method.
I am using the Websphere server.
Here is my code:
@...
2
votes
3
answers
18k
views
EJBCLIENT000409: No more destinations are available
i am doing migration from jboss 5 to wildfly 12.
i got stuck in one of my exceptions
i am doing ejb (3.1) invocation using wildfly 12 with jndi in java 8
i have deployed .ear file on the wildfly ...
0
votes
1
answer
2k
views
How to fix remote ejb lookup in Websphere Liberty?
I am trying to access the ejb deployed on websphere liberty 18.0.0.3
The binding location is: java:global/ITSORemote/ITSORemoteEJB/HelloRemoteEJB!com.ibm.itso.ejbRemote.view.HelloRemoteEJBRemote
My ...
0
votes
1
answer
346
views
AssertionError "Context may not be null" when looking up remote EJB from standalone client
I'm running WebLogic 12c and have several beans deployed as part of an EAR file. I also have a standalone client which I'm running from Eclipse that is trying to access the remote EJBs. I'm using ...
1
vote
1
answer
418
views
WebSphere Liberty 8.0.0.3 Remote EJB Lookup fails
WebSphere Liberty 8.0.0.3 EJB Lookup fails:
I created a EJB with the following code and deployed in WebSphere Liberty 8.0.0.3.
ITestEJBRemoteInterface.java
package ejb31.test;
import javax.ejb.EJB;...
1
vote
1
answer
5k
views
javax.ejb.NoSuchEJBException: EJBCLIENT000079 with JBoss 7.1 and Eclipse
I am quite new to JavaEE and tried to get a little Hello World example running (https://ibytecode.com/blog/how-to-create-a-simple-ejb3-project-in-eclipse-jboss-7-1/), but I am stuck with an
...
0
votes
1
answer
790
views
Problems looking up a WebLogic 12c EJB3 beans from a remote application
I am
using Java 7
using WebLogic Server Version: 12.1.3.0.0 (12c)
have a set of EJB3 beans as part of a deployed EAR file
just using @Stateless annotation on my beans
able to see the beans in the ...
2
votes
1
answer
376
views
How Application Exceptions work when both parent and child classes are annotated?
I'm referring to the JSR 318: Enterprise JavaBeansTM,Version 3.1 in this questions.
In chapter 14 (Exception Handling). Below example is there. And I understand it.
@ApplicationException(rollback=...
0
votes
0
answers
542
views
EJB annotation is not working with Restful Services
I went though a few question related to this on Stackoverflow and implemented my code the same way but still the @EJB annotation is not working for me when I use it from Restful Services.
1. EJB ...
0
votes
1
answer
1k
views
EJB 3.1 session beans not showing up in WebLogic 12c JNDI tree
The following is an example of an EJB I've created for my webapp. In my WebLogic 12c server, the EJBs show up in java:global, but not in any other part of the JNDI tree. I think because of that, I'm ...
1
vote
2
answers
14k
views
wildfly 14 : Services with missing/unavailable dependencies
I am new to wildfly and jpa.
I'm used eclipselink version 2.7.3 for library
this is my link for POM, persistence, and standalone files
when I deploying my ear file's I'm getting this error:
{
"...
1
vote
0
answers
181
views
Migrating IBM StartupBean EJB1.1 to @Startup EJB3.1
We are migrating 1.1 StartUp bean which previously used IBM interfaces:
<session id="StartUp">
<ejb-name>StartUp</ejb-name>
<home>com.ibm.websphere.startupservice....
0
votes
1
answer
116
views
Exception on stopping Weblogic application which holds a JCA connection factory
I am on Weblogic 12.2.1.2 where I deployed a JCA adapter and a consumer Web application.
The JCA connection factory is injected into my EJB by this code:
@ConnectionFactoryDefinition(
...
0
votes
1
answer
740
views
EJBs are getting duplicated in weblogic 12c using EAR deployment from jdeveloper 12c
My project consists of 2 modules webapp + jar(ejb module), when I tried to run this app from jdeveloper 12c deployed to integrated weblogic server, the server is identifying all ejb beans as twice, ...
2
votes
1
answer
165
views
Can I use lamba experssion to obtain an ejb dynamically through strategy pattern with CDI?
I know I can inject as an instance all the beans that match the interface and then choose between them programmatically :
@Inject @Any Instance<PaymentProcessor> paymentProcessorSource;
That ...
0
votes
1
answer
942
views
EJB not initializing in Wildfly 9.0.0 using @EJB
I'm trying to migrate from EJB2.x to EJB3.x and i'm using Wildfly 9.0.0.
The old EJB2.x is working in JBoss 4.2.2 and this is how it looks like:
public interface WUFFacadeRemote extends EJBObject {
...
1
vote
1
answer
1k
views
How to make Jersey @RolesAllowed with @Stateless work?
I'm not sure whether this is possible or not but I'm trying to setup a EJB + JAX-RS (Jersey) test project and use the @RolesAllowed annotation.
I'm currently getting the following error logs:
...
1
vote
2
answers
888
views
Does @Asynchronous in EJB 3.1 closes/releses the connection when the Async method is completed
In the EJB 3.1, we have annotated a method with @Asynchronous and using Future.get to fetch the results.
Question is when we do future.get(), does the database connections from the connection pool ...
1
vote
1
answer
2k
views
How to configure remote EJB connection details in wildfly-config.xml for a EJB client application deployed on JBoss EAP 7.1?
How to configure remote EJB connection details in wildfly-config.xml for a EJB client application deployed on JBoss EAP 7.1?
I tried placing it inside /META-INF folder of the EJB Jar and configure ...
0
votes
1
answer
43
views
Is a local client passed a direct reference to a EJB LocalBean?
When a local client gets a reference to a LocalBean, does the container provide a direct reference to bean instance? If not, what is provided?
Pointers to specs and authentic sources would be highly ...
0
votes
1
answer
2k
views
How to specify the deployment order for ejb and war to deploy inside an ear?
I have created a maven ear project which consists of 1 jar, 5 EJBs and 1 war. But when I tried to deploy it on server JBOSS EAP 7.0, the deployment order is not respected which is there in ...
2
votes
1
answer
1k
views
EJB: @Local invocation to another EAR
I'm using EJB 3.1 and Wildfly 8.2.Final
Ear 1 :
jar-impl with Bean1 (where I execute the lookup of Interface2)
lib /
jar with Interface2
Ear 2 :
jar-impl with Bean2
lib /
jar with ...