ejb

Impossible to inject JMS QueueConnectionFactory in JBoss 6.1.0 with resource annotation

I was spending a lot time to sort out problem with JBoss 6.1.0 to inject JMS connection factory in my session bean. I am using JBoss 6.1.0 with default profile and running it in debian. Snip of my code are: @Resource(name="java:/QueueConnectionFactory") private QueueConnectionFactory factory There...

Can't get Remote EJB to work with EJB Client API on Wildfly

I'm currently struggling with getting remote EJB invocation to work on wildfly (8.x and 9.x). In detail it's about remote invocation from a standalone client application (not from another app server) using the EJB Client API approach. The remote naming approach works for me but isn't applicable in...

EJB @Asynchronous - Transaction is not active after few minutes executing

I've a async method in my singleton session bean, which after a few minutes executing, is thrown the following exception after finalize a method of another transaction: Caused by: org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 0:ffff0afd40ba:126a...

Could not find JAXBContextFinder for media type: application/json

I have a problem with development resteay+ejb+json. Using Jboss-5.1.0.GA. I get example from resteasy-jaxrs and adapted to use for my case. Added jars(this ask me jboss. in other case catch exception - class not found) into \jboss-5.1.0.GA\server\default\lib\ resteasy-jaxb-provider-1.2.1.GA jaxrs...

WildFly的学习

1. WildFly介绍: WildFly,前身是JBoss AS,从V8开始为区别于JBoss EAP,更名为WildFly. 由红帽 (Red Hat)开发,是另一个功能齐全且经过认证的应用服务器. Wildfly是一个开源的基于JavaEE的轻量级应用服务器。可以在任何商业应用中免费使用。 WildFly是一个灵活的、轻量的、强大管理能力的应用程序服务器。Wildfly是一个管理EJB的容器和服务器,但JBoss核心服务不包括支持servlet/JSP的WEB容器,一般与Tomcat或Jetty绑定使用。 特点 无与伦比的速度:快速启动,无限的网络性能和可扩展性。 非常的轻量级...

Check whether a JTA transaction is successfully committed

Is there a way to check if the current transaction is committed or not in JPA entity listeners something like the following? @ApplicationScoped public class EntityListener { @Inject private Event<EntityEvent> event; @Inject private EntityManager entityManager; @Resource private UserTransaction...

Cant inject Bean class into Restfull WebService (JAX-RS) [duplicate]

This question already has answers here : Inject an EJB into JAX-RS (RESTful service) (7 answers) Closed 3 years ago . I'm trying to save data acquired by Rest web service to database using hibernate/persistence. In one of my web modules i implemented that service. Database ejb connector is placed in...

Handling &#39;The EJB does not exist&#39; or &#39;Cannot load from BACKUPSTORE FOR Key&#39;

so the problem is pretty simple: We are using JSF 2.0 with Primefaces and EJB to handle our application and we have encountered a problem. We have a single @SessionScoped bean in which we store all ours @Stateful Session Beans . In one case, (when we didn't handle some exceptions from JPA) and there...