I created https://issues.apache.org/jira/browse/ARTEMIS-345 to track the issue.
Derek On 13 January 2016 at 14:49, Clebert Suconic <clebert.suco...@gmail.com> wrote: > I see... > > > The URIFactory will use Bean Utils... and there's a property BeanUtils > won't know how to deal with. > > It's ignorable.. but we should fix it. > > Can you open a JIRA on Artemis? > > > a Simple new ActiveMQConnectionFactory("vm://0") on a testcase will > report the exception on logs. > > On Wed, Jan 13, 2016 at 2:42 PM, Derek Mahar <derek.ma...@gmail.com> > wrote: > > Example spring-integration reports the warning if I initialize bean > > "connectionFactory" > > (org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory) > > using URI "vm://0" instead of a TransportConfiguration in > > examples/features/standard/spring-integration/src/main/ > > resources/spring-jms-beans.xml": > > > > diff --git > > > a/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > > > b/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > > index 274a8fa..75df943 100644 > > --- > > > a/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > > +++ > > > b/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > > @@ -53,12 +53,7 @@ under the License. > > </bean> > > > > <bean id="connectionFactory" > > > class="org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory"> > > - <constructor-arg value="false"/> > > - <constructor-arg> > > - <bean > > class="org.apache.activemq.artemis.api.core.TransportConfiguration"> > > - <constructor-arg > > > value="org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory"/> > > - </bean> > > - </constructor-arg> > > + <constructor-arg value="vm://0"/> > > </bean> > > > > <bean id="exampleQueue" > > class="org.apache.activemq.artemis.jms.client.ActiveMQQueue"> > > > > > > When using the TransportConfiguration, spring-integration doesn't report > > the warning. > > > > Derek > > > > On 13 January 2016 at 13:15, Clebert Suconic <clebert.suco...@gmail.com> > > wrote: > > > >> It's ignorable I think. > >> > >> If y provide how to replicate it I will make sure the bean Utils will > >> ignore it. > >> > >> Sent from my iPhone > >> > >> > On Jan 13, 2016, at 12:30 PM, Derek Mahar <derek.ma...@gmail.com> > wrote: > >> > > >> > Oh, I hadn't seen that warning about the NIO! I was actually > referring > >> to > >> > the subsequent warning that included a long stack trace: > >> > > >> > WARNING: Error when creating PropertyDescriptor for public > synchronized > >> > boolean > >> > > >> > org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.setThreadPools(java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService)! > >> > Ignoring this property. > >> > java.beans.IntrospectionException: bad write method arg count: public > >> > synchronized boolean > >> > > >> > org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.setThreadPools(java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService) > >> > at > >> > > >> > java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:657) > >> > at > >> > java.beans.PropertyDescriptor.setWriteMethod(PropertyDescriptor.java:327) > >> > at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:139) > >> > at > >> > > >> > org.apache.commons.beanutils.FluentPropertyBeanIntrospector.createFluentPropertyDescritor(FluentPropertyBeanIntrospector.java:177) > >> > at > >> > > >> > org.apache.commons.beanutils.FluentPropertyBeanIntrospector.introspect(FluentPropertyBeanIntrospector.java:140) > >> > at > >> > > >> > org.apache.commons.beanutils.PropertyUtilsBean.fetchIntrospectionData(PropertyUtilsBean.java:2234) > >> > at > >> > > >> > org.apache.commons.beanutils.PropertyUtilsBean.getIntrospectionData(PropertyUtilsBean.java:2215) > >> > at > >> > > >> > org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:950) > >> > at > >> > > >> > org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:929) > >> > at > >> > > >> > org.apache.activemq.artemis.utils.uri.URISchema.setData(URISchema.java:160) > >> > at > >> > > >> > org.apache.activemq.artemis.uri.InVMServerLocatorSchema.internalNewObject(InVMServerLocatorSchema.java:40) > >> > at > >> > > >> > org.apache.activemq.artemis.uri.InVMServerLocatorSchema.internalNewObject(InVMServerLocatorSchema.java:29) > >> > at > >> > > >> > org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:94) > >> > at > >> > > >> > org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:37) > >> > at > >> > > >> > org.apache.activemq.artemis.utils.uri.URIFactory.newObject(URIFactory.java:59) > >> > at > >> > > >> > org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.newLocator(ServerLocatorImpl.java:403) > >> > at > >> > > >> > org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:179) > >> > at > >> > > >> > org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory.<init>(ActiveMQJMSConnectionFactory.java:38) > >> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > >> > at > >> > > >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > >> > at > >> > > >> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > >> > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > >> > at > >> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) > >> > at > >> > > >> > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121) > >> > at > >> > > >> > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) > >> > at > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035) > >> > at > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939) > >> > at > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) > >> > at > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > >> > at > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) > >> > at > >> > > >> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) > >> > at > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) > >> > at > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) > >> > at > >> > > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) > >> > at > >> > > >> > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925) > >> > at > >> > > >> > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) > >> > at > >> > > >> > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) > >> > at > >> > > >> > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) > >> > at > >> > > >> > org.apache.activemq.artemis.jms.example.SpringExample.main(SpringExample.java:25) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > at > >> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > >> > at > >> > > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> > at java.lang.reflect.Method.invoke(Method.java:497) > >> > at > >> > > >> > org.apache.activemq.artemis.maven.ArtemisClientPlugin.doExecute(ArtemisClientPlugin.java:61) > >> > at > >> > > >> > org.apache.activemq.artemis.maven.ArtemisAbstractPlugin.execute(ArtemisAbstractPlugin.java:75) > >> > at > >> > > >> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) > >> > at > >> > > >> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > >> > at > >> > > >> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > >> > at > >> > > >> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > >> > at > >> > > >> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > >> > at > >> > > >> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > >> > at > >> > > >> > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > >> > at > >> > > >> > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) > >> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > >> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) > >> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) > >> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) > >> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) > >> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > at > >> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > >> > at > >> > > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> > at java.lang.reflect.Method.invoke(Method.java:497) > >> > at > >> > > >> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > >> > at > >> > > >> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > >> > at > >> > > >> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > >> > at > >> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > >> > > >> > I could reproduce this warning using Java 7 or 8 and Spring Framework > >> 3.1.4 > >> > or 4.2.4. > >> > > >> > Derek > >> > > >> > On 12 January 2016 at 20:08, Clebert Suconic < > clebert.suco...@gmail.com> > >> > wrote: > >> > > >> >> I am on the iPhone. With I could see on the little screen you > configured > >> >> journal type to asynchronous IO and it couldn't find the native > library > >> or > >> >> libaio. > >> >> > >> >> Either set the library path or set the journal to pure Java. (NIO). > >> >> > >> >> The server would test it for u. But on the embedded you may have to > be > >> >> more specific. > >> >> > >> >> Sent from my iPhone > >> >> > >> >>> On Jan 12, 2016, at 5:02 PM, Derek Mahar <derek.ma...@gmail.com> > >> wrote: > >> >>> > >> >>> What might be the cause of the following warning ? > >> >>> > >> >>> [INFO] --- artemis-maven-plugin:1.2.1-SNAPSHOT:runClient > (runClient) @ > >> >>> spring-integration --- > >> >>> Creating bean factory... > >> >>> Jan 12, 2016 4:50:50 PM > >> >>> org.springframework.context.support.ClassPathXmlApplicationContext > >> >>> prepareRefresh > >> >>> INFO: Refreshing > >> >> > >> > org.springframework.context.support.ClassPathXmlApplicationContext@12aa381f > >> >> : > >> >>> startup date [Tue Jan 12 16:50:50 EST 2016]; root of context > hierarchy > >> >>> Jan 12, 2016 4:50:50 PM > >> >>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader > >> >>> loadBeanDefinitions > >> >>> INFO: Loading XML bean definitions from class path resource > >> >>> [spring-jms-beans.xml] > >> >>> Jan 12, 2016 4:50:51 PM > >> >>> org.springframework.beans.factory.support.DefaultListableBeanFactory > >> >>> preInstantiateSingletons > >> >>> INFO: Pre-instantiating singletons in > >> >> > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory@ff2266c > >> >> : > >> >>> defining beans > >> >> > >> > [securityManager,EmbeddedJms,connectionFactory,exampleQueue,listener,MessageSender,listenerContainer]; > >> >>> root of factory hierarchy > >> >>> Jan 12, 2016 4:50:51 PM > >> >>> > org.apache.activemq.artemis.core.deployers.impl.FileConfigurationParser > >> >>> parseMainConfig > >> >>> WARN: AMQ222018: AIO was not located on this platform, it will fall > >> back > >> >> to > >> >>> using pure Java NIO. If your platform is Linux, install LibAIO to > >> enable > >> >>> the AIO journal > >> >>> Jan 12, 2016 4:50:51 PM > >> >>> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl > start > >> >>> INFO: AMQ221000: live Message Broker is starting with configuration > >> >> Broker > >> >>> Configuration > >> >> > >> > (clustered=false,journalDirectory=data/journal,bindingsDirectory=data/bindings,largeMessagesDirectory=data/largemessages,pagingDirectory=data/paging) > >> >>> Jan 12, 2016 4:50:51 PM > >> >>> > >> > org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl > >> >>> <init> > >> >>> INFO: AMQ221043: Protocol module found: [artemis-server]. Adding > >> protocol > >> >>> support for: CORE > >> >>> Jan 12, 2016 4:50:52 PM > >> >>> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl > >> >> deployQueue > >> >>> INFO: AMQ221003: Trying to deploy queue jms.queue.exampleQueue > >> >>> Jan 12, 2016 4:50:52 PM > >> >>> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation run > >> >>> INFO: AMQ221007: Server is now live > >> >>> Jan 12, 2016 4:50:52 PM > >> >>> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl > start > >> >>> INFO: AMQ221001: Apache ActiveMQ Artemis Message Broker version > >> >>> 1.2.1-SNAPSHOT [localhost, > nodeID=8c797eaa-b976-11e5-a967-080027f267a9] > >> >>> Jan 12, 2016 4:50:52 PM > >> >>> org.apache.commons.beanutils.FluentPropertyBeanIntrospector > introspect > >> >>> WARNING: Error when creating PropertyDescriptor for public > synchronized > >> >>> boolean > >> >> > >> > org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.setThreadPools(java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService)! > >> >>> Ignoring this property. > >> >>> java.beans.IntrospectionException: bad write method arg count: > public > >> >>> synchronized boolean > >> >> > >> > org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.setThreadPools(java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService) > >> >>> at > >> >> > >> > java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:657) > >> >>> at > >> >> > >> > java.beans.PropertyDescriptor.setWriteMethod(PropertyDescriptor.java:327) > >> >>> at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:139) > >> >>> at > >> >> > >> > org.apache.commons.beanutils.FluentPropertyBeanIntrospector.createFluentPropertyDescritor(FluentPropertyBeanIntrospector.java:177) > >> >>> at > >> >> > >> > org.apache.commons.beanutils.FluentPropertyBeanIntrospector.introspect(FluentPropertyBeanIntrospector.java:140) > >> >>> at > >> >> > >> > org.apache.commons.beanutils.PropertyUtilsBean.fetchIntrospectionData(PropertyUtilsBean.java:2234) > >> >>> at > >> >> > >> > org.apache.commons.beanutils.PropertyUtilsBean.getIntrospectionData(PropertyUtilsBean.java:2215) > >> >>> at > >> >> > >> > org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:950) > >> >>> at > >> >> > >> > org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:929) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.utils.uri.URISchema.setData(URISchema.java:160) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.uri.InVMServerLocatorSchema.internalNewObject(InVMServerLocatorSchema.java:40) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.uri.InVMServerLocatorSchema.internalNewObject(InVMServerLocatorSchema.java:29) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:94) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.utils.uri.URISchema.newObject(URISchema.java:37) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.utils.uri.URIFactory.newObject(URIFactory.java:59) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.newLocator(ServerLocatorImpl.java:403) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:179) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory.<init>(ActiveMQJMSConnectionFactory.java:38) > >> >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > >> Method) > >> >>> at > >> >> > >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > >> >>> at > >> >> > >> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > >> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > >> >>> at > >> >> > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) > >> >>> at > >> >> > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) > >> >>> at > >> >> > >> > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925) > >> >>> at > >> >> > >> > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) > >> >>> at > >> >> > >> > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) > >> >>> at > >> >> > >> > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.jms.example.SpringExample.main(SpringExample.java:25) > >> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> >>> at > >> >> > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > >> >>> at > >> >> > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> >>> at java.lang.reflect.Method.invoke(Method.java:497) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.maven.ArtemisClientPlugin.doExecute(ArtemisClientPlugin.java:61) > >> >>> at > >> >> > >> > org.apache.activemq.artemis.maven.ArtemisAbstractPlugin.execute(ArtemisAbstractPlugin.java:75) > >> >>> at > >> >> > >> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) > >> >>> at > >> >> > >> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > >> >>> at > >> >> > >> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > >> >>> at > >> >> > >> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > >> >>> at > >> >> > >> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > >> >>> at > >> >> > >> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > >> >>> at > >> >> > >> > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > >> >>> at > >> >> > >> > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) > >> >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > >> >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) > >> >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) > >> >>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) > >> >>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) > >> >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) > >> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> >>> at > >> >> > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > >> >>> at > >> >> > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> >>> at java.lang.reflect.Method.invoke(Method.java:497) > >> >>> at > >> >> > >> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > >> >>> at > >> >> > >> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > >> >>> at > >> >> > >> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > >> >>> at > >> >> > >> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > >> >>> > >> >>> Jan 12, 2016 4:50:52 PM > >> >>> org.springframework.context.support.DefaultLifecycleProcessor start > >> >>> INFO: Starting beans in phase 2147483647 > >> >>> Sending message... > >> >>> MESSAGE RECEIVED: Hello world > >> >>> Jan 12, 2016 4:50:52 PM > >> >>> org.springframework.context.support.ClassPathXmlApplicationContext > >> >> doClose > >> >>> INFO: Closing > >> >> > >> > org.springframework.context.support.ClassPathXmlApplicationContext@12aa381f > >> >> : > >> >>> startup date [Tue Jan 12 16:50:50 EST 2016]; root of context > hierarchy > >> >>> Jan 12, 2016 4:50:52 PM > >> >>> org.springframework.context.support.DefaultLifecycleProcessor stop > >> >>> INFO: Stopping beans in phase 2147483647 > >> >>> Jan 12, 2016 4:50:53 PM > >> >>> org.springframework.beans.factory.support.DefaultListableBeanFactory > >> >>> destroySingletons > >> >>> INFO: Destroying singletons in > >> >> > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory@ff2266c > >> >> : > >> >>> defining beans > >> >> > >> > [securityManager,EmbeddedJms,connectionFactory,exampleQueue,listener,MessageSender,listenerContainer]; > >> >>> root of factory hierarchy > >> >>> Jan 12, 2016 4:50:53 PM > >> >>> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl stop > >> >>> INFO: AMQ221002: Apache ActiveMQ Artemis Message Broker version > >> >>> 1.2.1-SNAPSHOT [8c797eaa-b976-11e5-a967-080027f267a9] stopped, > uptime > >> >> 1.756 > >> >>> seconds > >> >>> [INFO] > >> >>> > >> ------------------------------------------------------------------------ > >> >>> [INFO] BUILD SUCCESS > >> >>> [INFO] > >> >>> > >> ------------------------------------------------------------------------ > >> >>> [INFO] Total time: 10.093 s > >> >>> [INFO] Finished at: 2016-01-12T16:50:53-05:00 > >> >>> [INFO] Final Memory: 28M/90M > >> >>> [INFO] > >> >>> > >> ------------------------------------------------------------------------ > >> >>> [WARNING] The requested profile "example" could not be activated > >> because > >> >> it > >> >>> does not exist. > >> >>> > >> >>> > >> >>> I encountered this warning after initializing bean > "connectionFactory" > >> >>> > (org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory) > >> >> using > >> >>> URI "vm://0" instead of a TransportConfiguration: > >> >>> > >> >>> diff --git > >> >> > >> > a/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > >> >> > >> > b/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > >> >>> index 274a8fa..75df943 100644 > >> >>> --- > >> >> > >> > a/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > >> >>> +++ > >> >> > >> > b/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > >> >>> @@ -53,12 +53,7 @@ under the License. > >> >>> </bean> > >> >>> > >> >>> <bean id="connectionFactory" > >> >> > >> > class="org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory"> > >> >>> - <constructor-arg value="false"/> > >> >>> - <constructor-arg> > >> >>> - <bean > >> >>> class="org.apache.activemq.artemis.api.core.TransportConfiguration"> > >> >>> - <constructor-arg > >> >> > >> > value="org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory"/> > >> >>> - </bean> > >> >>> - </constructor-arg> > >> >>> + <constructor-arg value="vm://0"/> > >> >>> </bean> > >> >>> > >> >>> <bean id="exampleQueue" > >> >>> class="org.apache.activemq.artemis.jms.client.ActiveMQQueue"> > >> >>> > >> >>> > >> >>> I did not encounter this warning when running the example using the > >> >>> TransportConfiguration. Might I have incorrectly initialized > >> >>> ActiveMQJMSConnectionFactory? > >> >>> > >> >>> Derek > >> >>> > >> >>> On 12 January 2016 at 14:39, Clebert Suconic < > >> clebert.suco...@gmail.com> > >> >>> wrote: > >> >>> > >> >>>> Derek, as you're touching the spring example... it would be great > if > >> >>>> you can make contributions to the example.. PRs.. etc... > >> >>>> > >> >>>> The example still using the TransportConfiguration, while it's > easier > >> >>>> to use URIs. if you make any simplification or improvements it > would > >> >>>> be great if you sent a Pull Request (or a diff if you prefer). > >> >>>> > >> >>>> On Tue, Jan 12, 2016 at 2:33 PM, Justin Bertram < > jbert...@apache.com> > >> >>>> wrote: > >> >>>>> Keep in mind that the configuration for the broker would need to > >> change > >> >>>> if it's in another JVM as the example only supports in-vm > connections. > >> >>>>> > >> >>>>> > >> >>>>> Justin > >> >>>>> > >> >>>>> ----- Original Message ----- > >> >>>>> From: "Justin Bertram" <jbert...@apache.com> > >> >>>>> To: users@activemq.apache.org > >> >>>>> Sent: Tuesday, January 12, 2016 1:18:37 PM > >> >>>>> Subject: Re: Client and server artifacts in Spring JMS example. > >> >>>>> > >> >>>>> You're mostly right. Everything but the "securityManager" and > >> >>>> "EmbeddedJms" beans are for the client. > >> >>>>> > >> >>>>> > >> >>>>> Justin > >> >>>>> > >> >>>>> ----- Original Message ----- > >> >>>>> From: "Derek Mahar" <derek.ma...@gmail.com> > >> >>>>> To: users@activemq.apache.org > >> >>>>> Sent: Tuesday, January 12, 2016 1:14:12 PM > >> >>>>> Subject: Client and server artifacts in Spring JMS example. > >> >>>>> > >> >>>>> From > >> >> > >> > https://github.com/apache/activemq-artemis/blob/master/examples/features/standard/spring-integration/src/main/resources/spring-jms-beans.xml > >> >>>> , > >> >>>>> would it be accurate to separate the beans into the following > lists > >> of > >> >>>>> client and server components? > >> >>>>> > >> >>>>> Client > >> >>>>> > >> >>>>> - connectionFactory > >> >>>>> > (org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory) > >> >>>>> - exampleQueue > (org.apache.activemq.artemis.jms.client.ActiveMQQueue) > >> >>>>> - MessageSender > >> (org.apache.activemq.artemis.jms.example.MessageSender) > >> >>>>> > >> >>>>> > >> >>>>> Server > >> >>>>> > >> >>>>> - securityManager > >> >> > >> > (org.apache.activemq.artemis.spi.core.security.ActiveMQJAASSecurityManager) > >> >>>>> - EmbeddedJms > >> >>>>> > (org.apache.activemq.artemis.integration.spring.SpringJmsBootstrap) > >> >>>>> - listener > (org.apache.activemq.artemis.jms.example.ExampleListener) > >> >>>>> - listenerContainer > >> >>>>> (org.springframework.jms.listener.DefaultMessageListenerContainer) > >> >>>>> > >> >>>>> The purpose of this exercise would be to isolate the server from > the > >> >>>> client > >> >>>>> components in order to embed the server components alone into > another > >> >>>>> server process. > >> >>>>> > >> >>>>> Derek > >> >>>> > >> >>>> -- > >> >>>> Clebert Suconic > >> > > > > -- > Clebert Suconic >