I have had a look at the MDB problem this morning and found a simple bug in
my original code for SpyConnectionConsumer that would certainly have been
causing problems. As the CVS update says the fix should hopefully fix the
problem people were having with MDB but as we are not using MDB ourselves
and are currently having a bit of trouble with the new build system I can't
test the fix. So please feel free to test the new fix and let us know if it
still ain't working.
Cheers,
david
PS: As I am new to the list I should probably introduce myself. My name is
David Maplesden and I work at Orion Systems in NZ with Paul Kendall. I am
responsible for the majority of the recent major changes to jboss mq
submitted by Paul. They were submitted by him cause I am (to date) too lazy
to set up a CVS account and stuff. Anyone with any problems with the new
code or questions etc feel free to send me an e-mail, if I'm not too busy at
work I'll get back to you ASAP.
> -----Original Message-----
> From: Jason Dillon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 13, 2001 9:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-dev] MDB has stopped working
>
>
> This is exactly what I say on friday, when the PooledExecutor
> was removed
> from JBossMQ. I have not had time to look into why it does
> not work as of
> yet. I do know that the previous jars work, and probably
> better than any
> other version that I had seen, at least with respect to the
> application I am
> building (which is highly JMS driven).
>
> --jason
>
>
> On Mon, 13 Aug 2001, Peter Antman wrote:
>
> > Hi,
> > It seems as if MDB has stopped working with the latest
> jbossmq. I build
> > with a clean checkout of jboss-all today and have run both
> the mdbtest
> > and tested jms-hello-topic and jms-hello-queue from the new
> JMS chapter
> > examples:
> >
> > MDB:s deployes OK, it is OK to send to MDB, but the MDB
> will not receive
> > any thing send to it after is has been deployed.
> >
> > It will however raise an exception when undeploying because
> there seemd
> > to be stuff waiting
> >
> > Here is some outpout:
> >
> > Manually deploy HelloQueueMDB.jar (from example)
> >
> > [ContainerFactory] Deployed application:
> file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DE
> V/tmp/deploy/Default/HelloQueueMDB.jar
> > [J2eeDeployer#Default] J2EE application:
> file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DE
> V/deploy/HelloQueueMDB.jar is deployed.
> >
> >
> > Send some messages
> > ant jms-hello-sender25 (from example)
> >
> > Nothing happens!!
> >
> > Undeploy the bean:
> >
> > [AutoDeployer] Auto undeploy of
> file:/home/pra/src/rw/jboss-all/build/output/jbo
> > ss-2.5alpha-DEV/deploy/HelloQueueMDB.jar
> > [J2eeDeployer#Default] Stopping module HelloQueueMDB.jar
> > [ContainerFactory]
> Undeploying:file:/home/pra/src/rw/jboss-all/build/output/jbos
> > s-2.5alpha-DEV/tmp/deploy/Default/HelloQueueMDB.jar
> > [ContainerManagement] Stopping
> > [ContainerManagement] Stopped
> > [ContainerManagement] Destroying
> > [ContainerManagement] Destroyed
> > [ContainerManagement] Destroying
> > [ContainerManagement] Destroyed
> > [JMSContainerInvoker] Could not close consumer
> > org.jboss.mq.SpyJMSException: Cannot acknowlege a message
> > at org.jboss.mq.Connection.send(Connection.java:435)
> > at
> org.jboss.mq.SpyConnectionConsumer.close(SpyConnectionConsumer.java:8
> > 1)
> > at
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.destroy(JMSContainerInv
> > oker.java:542)
> > at
> org.jboss.ejb.MessageDrivenContainer.destroy(MessageDrivenContainer.j
> > ava:251)
> > at org.jboss.ejb.Application.destroy(Application.java:239)
> > at
> org.jboss.ejb.ContainerFactory.undeploy(ContainerFactory.java:531)
> > at
> org.jboss.ejb.ContainerFactory.undeploy(ContainerFactory.java:325)
> > at java.lang.reflect.Method.invoke(Native Method)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
> > 28)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> > 23)
> > at
> org.jboss.deployment.J2eeDeployer.stopModule(J2eeDeployer.java:586)
> > at
> org.jboss.deployment.J2eeDeployer.stopApplication(J2eeDeployer.java:5
> > 67)
> > at
> org.jboss.deployment.J2eeDeployer.undeploy(J2eeDeployer.java:294)
> > at java.lang.reflect.Method.invoke(Native Method)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
> > 28)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> > 23)
> > at
> org.jboss.ejb.AutoDeployer.undeploy(AutoDeployer.java:403)
> > at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:184)
> > at java.lang.Thread.run(Thread.java:484)
> > linked exception is:
> > javax.jms.JMSException: The provided subscription does not exist
> > at
> org.jboss.mq.server.ClientConsumer.acknowledge(ClientConsumer.java:22
> > 2)
> > at
> org.jboss.mq.server.JMSServer.acknowledge(JMSServer.java:299)
> > at
> org.jboss.mq.server.JMSServer.acknowledge(JMSServer.java:291)
> > at
> org.jboss.mq.il.jvm.JVMServerIL.acknowledge(JVMServerIL.java:99)
> > at org.jboss.mq.Connection.send(Connection.java:433)
> > at
> org.jboss.mq.SpyConnectionConsumer.close(SpyConnectionConsumer.java:8
> > 1)
> > at
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.destroy(JMSContainerInv
> > oker.java:542)
> > at
> org.jboss.ejb.MessageDrivenContainer.destroy(MessageDrivenContainer.j
> > ava:251)
> > at org.jboss.ejb.Application.destroy(Application.java:239)
> > at
> org.jboss.ejb.ContainerFactory.undeploy(ContainerFactory.java:531)
> > at
> org.jboss.ejb.ContainerFactory.undeploy(ContainerFactory.java:325)
> > at java.lang.reflect.Method.invoke(Native Method)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
> > 28)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
> java:1523)
> > at
> org.jboss.deployment.J2eeDeployer.stopModule(J2eeDeployer.java:586)
> > at
> org.jboss.deployment.J2eeDeployer.stopApplication(J2eeDeployer.java:5
> > 67)
> > at
> org.jboss.deployment.J2eeDeployer.undeploy(J2eeDeployer.java:294)
> > at java.lang.reflect.Method.invoke(Native Method)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
> > 28)
> > at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> > 23)
> > at
> org.jboss.ejb.AutoDeployer.undeploy(AutoDeployer.java:403)
> > at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:184)
> > at java.lang.Thread.run(Thread.java:484)
> > [ContainerFactory] Undeployed application:
file:/home/pra/src/rw/jboss-all/build
> /output/jboss-2.5alpha-DEV/tmp/deploy/Default/HelloQueueMDB.jar
> [J2eeDeployer#Default] Destroying application HelloQueueMDB.jar
> [J2eeDeployer#Default] Destroyed
>
>
>
> Deploy the bean again:
>
> [AutoDeployer] Auto deploy of
file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DEV/deploy/Hello
QueueMDB.jar
> [J2eeDeployer#Default] Deploy J2EE application:
file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DEV/deploy/Hello
QueueMDB.jar
> [J2eeDeployer] Create application HelloQueueMDB.jar
> [J2eeDeployer] install EJB module HelloQueueMDB.jar
> [ContainerFactory]
Deploying:file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DEV/tm
p/deploy/Default/HelloQueueMDB.jar
> [Verifier] Verifying
file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DEV/tmp/deploy/D
efault/HelloQueueMDB.jar/ejb1004.jar
> [ContainerFactory] Deploying HelloQueueMDB
> [ContainerManagement] Initializing
> [ContainerManagement] Initialized
> [ContainerManagement] Starting
> [ContainerManagement] Started
> [ContainerFactory] Deployed application:
file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DEV/tmp/deploy/D
efault/HelloQueueMDB.jar
> [J2eeDeployer#Default] J2EE application:
file:/home/pra/src/rw/jboss-all/build/output/jboss-2.5alpha-DEV/deploy/Hello
QueueMDB.jar is deployed.
> [Default] Bean got messageTextMessage@Hello World no. 2
> [Default] Bean got messageTextMessage@Hello World no. 4
> [Default] Bean got messageTextMessage@Hello World no. 3
> [Default] Bean got messageTextMessage@Hello World no. 6
> [Default] Bean got messageTextMessage@Hello World no. 8
> [Default] Bean got messageTextMessage@Hello World no. 7
> [Default] Bean got messageTextMessage@Hello World no. 5
> [Default] Bean got messageTextMessage@Hello World no. 10
> [Default] Bean got messageTextMessage@Hello World no. 9
>
> That is weird behaviour indeed.
>
> //Peter
>
>
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development