当我试图在oracle weblogic服务器上使用消息驱动bean时,我遇到了奇怪的错误。
当我在队列中添加新消息时,服务器尝试调用消息驱动bean时,我得到以下错误:
com.oracle.injection.provider.weld.WeldBeanManager createEjb
INFO: Could not find the weld descriptor for ejb: HelloWorldMessageDrivenBean
我的bean看起来像这样:
@MessageDriven(mappedName = "jms/HelloWorldQueue", ac
我目前正在学习EJB的基础知识。在“Java 7 the Big Picture”一书中,有人提到:
会话bean通常是通过远程接口访问的(不过,正如我们将要看到的,有些情况下不需要远程接口),而消息驱动bean只有一个bean实现类。
基于上述语句,调用消息驱动bean (MDB)就像通过remote interface调用远程会话bean一样(其服务器端接口由@Remote注释完成)似乎是不可能的。
例如,如果远程EJB容器上有MDB,那么:
@Remote
@MessageDriven(mappedName="jms/HelloQueue")
public cla
在演示spring启动项目中配置spring-session-data-redis之后,bootRun任务将失败,并收到以下消息:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method redisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration required a bean of type
嗨,我经常在glassfish中得到以下异常,有人能在这方面帮助我吗?日志消息为空。
The log message is null.
java.sql.SQLException: Error in allocating a connection. Cause: java.lang.IllegalStateException: Wrong XAState: 0
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
at com.sify.beaserv.bean.PollBoxBean.getNo
如何确保我的单例消息驱动bean一次处理一条消息?
@Singleton
public class MyMdb implements MessageListener {
@Override
public void onMessage(final Message message) {
...
}
}
同步onMessage方法不起作用,因为这会导致以下错误:
weblogic.ejb.container.compliance.ComplianceException: In EJB MyMdb, Enterprise Bean methods must no
在多线程/多应用程序环境中使用Oracle,我只在一个线程中运行了大约10分钟后,收到了一个AQOracleSQLException:Exhausted。
oracle.AQ.AQOracleSQLException: Exhausted Resultset
at oracle.AQ.AQOracleSession.getQueue(AQOracleSession.java:751)
at au.com.xxx.queue.OracleQueue$$anonfun$2.apply(OracleQueue.scala:53)
AQOracleSession通过Sp