[JCA/JBoss] - Re: MDB with Oracle AQ via Sun Adapter
by kr8670
Hi,
I had exactly the same problem some time ago, as in first message got read and the next ones seemed to lock the queue somehow. As I was in a hurry and desperately needed it to work, I did the following:
1. checked out oracleaq source from cvs.dev.java.net:/cvs
2. In file com.sun.genericra.inbound.DeliveryHelper at the bottom there should be a line
((javax.jms.MessageListener) endPoint).onMessage(message);
Just after that line I put
endPoint.afterDelivery();
And messages started to be delivered as expected.
3. There was still a problem with JBoss hanging at shutdown, so in com.sun.genericra.inbound.InboundJmsResourcePool waitForAll I replaced
wait(this.consumer.getSpec().getEndpointReleaseTimeout() * 1000);
with
wait(1500);
There is still an exception thrown at the end of shutdown, but I can live with that for the time beeing. There surely has to be better ways to make this work, but as I said, I was in a hurry...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223950#4223950
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223950
15 years, 9 months
[JBoss Messaging] - Re: Sending Messages from EJB using container transaction
by fs5@gmx.net
"eontech" wrote :
| 1. Which connection factory to use so that JMS uses Container transaction? Currently we are using /ConnectionFactory
|
java:/JmsXA
"eontech" wrote :
| 2. Do we need to open connection every time we send a message or we can have a connection object initialized in post construct of Session bean. Currently we create it at post construct of session EJB
|
>From a JMS point of view, the connection object is thread safe. It should therefore be safe to put it to an instance variable of your EJB
"eontech" wrote :
| 3. Do we need to create session every time we send a message or we can have a session object initialized in post construct of Session bean. Currently we create it every time.
|
There is a correlation between session and transcation, furthermore the session object has not be thread-safe. So, you should create it for every transaction.
Kind regards,
Frank
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223947#4223947
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223947
15 years, 9 months
[JCA/JBoss] - ClassNotFoundException: org.jboss.resource.deployers.managem
by Rhodan
Hello
we are using jboss 5.0.1 inside an rcp plugin. On Jboss startup we ar getting an classNotFoundException which seems related to JCA:
009-04-07 10:47:15,320 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (Start Level Event Dispatcher) Error installing to Instantiated: name=LocalTxDataSourceTemplateInfo state=Described
| java.lang.RuntimeException: Error retrieving annotation attribute values
| at org.jboss.reflect.plugins.AnnotationValueFactory.createAnnotationValue(AnnotationValueFactory.java:107)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.createAnnotationValue(IntrospectionTypeInfoFactoryImpl.java:136)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getAnnotations(IntrospectionTypeInfoFactoryImpl.java:129)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:210)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:198)
| at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:394)
| at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getMethods(AbstractBeanInfoFactory.java:231)
| at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:152)
| at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:124)
| at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:75)
| at org.jboss.managed.plugins.factory.DeploymentTemplateInfoFactory.createTemplateInfo(DeploymentTemplateInfoFactory.java:154)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
| at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
| at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:297)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
| at org.jboss.Main.boot(Main.java:209)
| at com.qualitype.genoproof.rcp.server.jboss.Jboss.main(Jboss.java:60)
| at com.qualitype.genoproof.rcp.server.GenoproofServerPlugin.start(GenoproofServerPlugin.java:76)
| at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
| at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
| at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
| at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
| at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
| at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
| at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
| at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
| at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
| at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
| at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)
| Caused by: java.lang.TypeNotPresentException: Type org.jboss.resource.deployers.management.ConnectionFactoryProperty not present
| at sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(Unknown Source)
| at sun.reflect.annotation.AnnotationInvocationHandler.invoke(Unknown Source)
| at $Proxy58.value(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
| at org.jboss.reflect.plugins.AnnotationValueFactory.createAnnotationValue(AnnotationValueFactory.java:100)
| ... 73 more
| Caused by: java.lang.ClassNotFoundException: org.jboss.resource.deployers.management.ConnectionFactoryProperty
| at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483)
| at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
| at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
| at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
| at java.lang.ClassLoader.loadClass(Unknown Source)
| at java.lang.ClassLoader.loadClassInternal(Unknown Source)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Unknown Source)
| at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(Unknown Source)
| at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown Source)
| at sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source)
| at sun.reflect.annotation.AnnotationParser.parseSig(Unknown Source)
| at sun.reflect.annotation.AnnotationParser.parseClassValue(Unknown Source)
| at sun.reflect.annotation.AnnotationParser.parseMemberValue(Unknown Source)
| at sun.reflect.annotation.AnnotationParser.parseAnnotation(Unknown Source)
| at sun.reflect.annotation.AnnotationParser.parseAnnotations2(Unknown Source)
| at sun.reflect.annotation.AnnotationParser.parseAnnotations(Unknown Source)
| at java.lang.reflect.Method.declaredAnnotations(Unknown Source)
| at java.lang.reflect.Method.getDeclaredAnnotations(Unknown Source)
| at java.lang.reflect.AccessibleObject.getAnnotations(Unknown Source)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.readAnnotations(IntrospectionTypeInfoFactoryImpl.java:540)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getAnnotations(IntrospectionTypeInfoFactoryImpl.java:114)
| ... 71 more
|
In which jboss jar should this class reside ? Couldn't find it so far...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223943#4223943
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223943
15 years, 9 months