We use QuartzComponent that needs <property name="destinationService" ref="receiverServiceName"/> It can be pointed out in ActivationSpec
Where can I point this property without ActivationSpec ? Thanks, Maxim ----- Original Message ----- From: "Guillaume Nodet" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, November 01, 2005 6:11 PM Subject: Re: [servicemix-dev] JBI container instances > The container is started when you deploy the sar. > When you deploy archives, you are deploying jbi components / service > assemblies within the existing jbi container. > There is no need to have a container definition. > > Guillaume Nodet > > Maxim Surov wrote: > > >But , where should I have a container definition? > > > >Thank you, > >Maxim > > > >----- Original Message ----- > >From: "Guillaume Nodet" <[EMAIL PROTECTED]> > >To: <[email protected]> > >Sent: Tuesday, November 01, 2005 5:25 PM > >Subject: Re: [servicemix-dev] JBI container instances > > > > > > > > > >>It seems that your jbi-spring.xml contains jbi containers, so that > >>one container is created when you are deploying your jar. > >> > >>Your spring xml should contain beans implementing one of the following > >>interfaces: > >> ServiceInterfaceImplementation > >> ServiceEndPointImplementation > >> ServiceLifeCycleImplementation > >> > >>but you should not have a container inside the xml. > >> > >>Cheers, > >>Guillaume Nodet > >> > >>Maxim Surov wrote: > >> > >> > >> > >>>I use the following jbi-spring.xml in .jars (components) > >>>And also, I use jbi.xml > >>> > >>>So, meta-inf contains jbi-spring.xml amd jbi.xml > >>> > >>>Yes, they end up in different containers. > >>> > >>>Please, see attach > >>> > >>>Sure, I use JBoss deployer.sar > >>> > >>>Thank you, > >>>Maxim > >>> > >>> > >>> > >>>----- Original Message ----- > >>>From: "Guillaume Nodet" <[EMAIL PROTECTED]> > >>>To: <[email protected]> > >>>Sent: Tuesday, November 01, 2005 4:54 PM > >>>Subject: Re: [servicemix-dev] JBI container instances > >>> > >>> > >>> > >>> > >>> > >>> > >>>>I do not really see what you are doing... > >>>>You have set up a jbi container in jboss using the sar and you are > >>>>trying to deploy components in it. > >>>>These components are packaged using standard jbi ? with a jbi.xml in the > >>>>archive. > >>>>And you say that when you deploy two archives, they end up in different > >>>>containers. > >>>>Is this correct ? > >>>>Do you have some log, or something that might help ? > >>>> > >>>>Cheers, > >>>>Guillaume Nodet > >>>> > >>>>Maxim Surov wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Please, help me! > >>>>> > >>>>>I have a couple of JBI components. > >>>>>Each component in a separate .jar > >>>>> > >>>>>What should I do in order to make them run in a single JBIContainer > >>>>>instance? > >>>>> > >>>>>At the moment they run in different instances of JBI container. It > >>>>>means they cannot interact with each other. > >>>>>I deploy components in a single JBoss instance > >>>>>{JBOSS_HOME}/server/default/deploy > >>>>> > >>>>>Thank you, > >>>>>Maxim > >>>>> > >>>>> > >>>>> > >>>>> > >>>>------------------------------------------------------------------------ > >>>> > >>>><?xml version="1.0" encoding="UTF-8"?> > >>>><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "spring-beans.dtd"> > >>>> > >>>><beans> > >>>> <!-- the JBI container --> > >>>> <bean id="jbi" > >>>> > >>>> > >class="org.servicemix.jbi.container.SpringJBIContainer" singleton="true" > > > > > > >>>> <property name="createMBeanServer" value="false"/> > >>>> <property name="useMBeanServer" value="false"/> > >>>> <property name="activationSpecs"> > >>>> <list> > >>>> <bean > >>>> > >>>> > >class="org.servicemix.jbi.container.ActivationSpec"> > > > > > >>>> <property name="id" value="configer"/> > >>>> <property name="service" ref="receiverServiceName"/> > >>>> <property name="endpoint" value="configer"/> > >>>> <property name="component"> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.jbi.configurationmanager.ConfigurationManager"> > > > > > >>>> <property name="workManager" > >>>> > >>>> > >ref="workManager"/> > > > > > >>>> <property name="targetNS" > >>>> > >>>> > >value="http://www.anfyteam.com/anfynet2/"/> > > > > > >>>> <property name="serviceNS" > >>>> > >>>> > >value="http://www.anfyteam.com/anfynet2/"/> > > > > > >>>> <property name="serviceName" > >>>> > >>>> > >value="configer"/> > > > > > >>>> <property name="configurationScanner"> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.configurationmanager.fs.DirectoryScanner"> > > > > > >>>> <property name="fileOrDirectory" > >>>> > >>>> > >value="c:/anfy/myconf"/> > > > > > >>>> <property name="filter"> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.configurationmanager.fs.RegexFileFilter"> > > > > > >>>> <property name="regex" > >>>> > >>>> > >value=".*\.xml"/> > > > > > >>>> </bean> > >>>> </property> > >>>> </bean> > >>>> </property> > >>>> <property name="configurationSaver"> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.configurationmanager.jndi.JNDIConfigurationSaver"> > > > > > >>>> <property name="jndiContext" > >>>> > >>>> > >value="anfynet2"/> > > > > > >>>> </bean> > >>>> </property> > >>>> > >>>> </bean> > >>>> </property> > >>>> </bean> > >>>> <bean > >>>> > >>>> > >class="org.servicemix.jbi.container.ActivationSpec"> > > > > > >>>> <property name="id" value="configNotifier"/> > >>>> <property name="destinationService" > >>>> > >>>> > >ref="receiverServiceName"/> > > > > > >>>> <property name="component"> > >>>> <bean > >>>> > >>>> > >class="org.servicemix.components.quartz.QuartzComponent"> > > > > > >>>> <property name="triggers"> > >>>> <map> > >>>> <entry> > >>>> <key> > >>>> <bean > >>>> > >>>> > >class="org.quartz.SimpleTrigger"> > > > > > >>>> <property > >>>> > >>>> > >name="repeatInterval" value="10000"/> > > > > > >>>> <property > >>>> > >>>> > >name="repeatCount" value="-1"/> > > > > > >>>> </bean> > >>>> </key> > >>>> <bean > >>>> > >>>> > >class="org.quartz.JobDetail"> > > > > > >>>> <property name="name" > >>>> > >>>> > >value="configer notification"/> > > > > > >>>> <property name="group" > >>>> > >>>> > >value="ServiceMix"/> > > > > > >>>> </bean> > >>>> </entry> > >>>> </map> > >>>> </property> > >>>> </bean> > >>>> </property> > >>>> </bean> > >>>> <bean > >>>> > >>>> > >class="org.servicemix.jbi.container.ActivationSpec"> > > > > > >>>> <property name="id" value="scanner"/> > >>>> <property name="service" ref="scannerServiceName"/> > >>>> <property name="endpoint" value="configer"/> > >>>> <property name="component"> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.jbi.jndiscanner.JNDIScannerWrapper"> > > > > > >>>> <property name="workManager" > >>>> > >>>> > >ref="workManager"/> > > > > > >>>> <property name="serviceNS" > >>>> > >>>> > >value="http://www.anfyteam.com/anfynet2/"/> > > > > > >>>> <property name="serviceName" > >>>> > >>>> > >value="scanner"/> > > > > > >>>> <property name="component"> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.jbi.jndiscanner.JNDIScanner"> > > > > > >>>> <property name="configDir" > >>>> > >>>> > >ref="configDir"/> > > > > > >>>> </bean> > >>>> </property> > >>>> </bean> > >>>> </property> > >>>> </bean> > >>>> > >>>> </list> > >>>> </property> > >>>> </bean> > >>>> > >>>> <!-- configuration saver bean--> > >>>> <bean id="configDir" > >>>> > >>>> > >class="com.anfy.anfynet2.configurationmanager.jndi.JNDIConfigurationDirecto r > >y" init-method="init"> > > > > > >>>> <property name="jndiContext" value="anfynet2"/> > >>>> </bean> > >>>> > >>>> <!-- the work manager (thread pool) for this container --> > >>>> <bean id="workManager" > >>>> > >>>> > >class="org.jencks.factory.WorkManagerFactoryBean"> > > > > > >>>> <property name="threadPoolSize" value="30"/> > >>>> </bean> > >>>> > >>>> > >>>> <bean id="receiverServiceName" class="javax.xml.namespace.QName"> > >>>> <constructor-arg value="http://www.anfyteam.com/anfynet2/"/> > >>>> <constructor-arg value="configer"/> > >>>> </bean> > >>>> > >>>> <bean id="scannerServiceName" class="javax.xml.namespace.QName"> > >>>> <constructor-arg value="http://www.anfyteam.com/anfynet2/"/> > >>>> <constructor-arg value="scanner"/> > >>>> </bean> > >>>> > >>>></beans> > >>>> > >>>>------------------------------------------------------------------------ > >>>> > >>>><?xml version="1.0" encoding="UTF-8"?> > >>>><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "spring-beans.dtd"> > >>>> > >>>><beans> > >>>> <!-- the JBI container --> > >>>> <bean id="jbi" > >>>> > >>>> > >class="org.servicemix.jbi.container.SpringJBIContainer" singleton="true" > > > > > > >>>> <property name="createMBeanServer" value="false"/> > >>>> <property name="useMBeanServer" value="false"/> > >>>> <property name="activationSpecs"> > >>>> <list> > >>>> <bean > >>>> > >>>> > >class="org.servicemix.jbi.container.ActivationSpec"> > > > > > >>>> <property name="id" value="ConnectionManager"/> > >>>> <property name="service" > >>>> > >>>> > >ref="connectionManagerServiceName"/> > > > > > >>>> <property name="endpoint" > >>>> > >>>> > >value="ConnectionManager"/> > > > > > >>>> <property name="component" ref="connectionManager"/> > >>>> </bean> > >>>> </list> > >>>> </property> > >>>> </bean> > >>>> > >>>> <bean id="connectionManager" > >>>> > >>>> > >class="com.anfy.anfynet2.jbi.connectionmanager.ConnectionManagerWrapper"> > > > > > >>>> <property name="workManager" ref="workManager"/> > >>>> <property name="targetNS" > >>>> > >>>> > >value="http://www.anfyteam.com/anfynet2/"/> > > > > > >>>> <property name="serviceNS" > >>>> > >>>> > >value="http://www.anfyteam.com/anfynet2/"/> > > > > > >>>> <property name="serviceName" value="ConnectionManager"/> > >>>> <property name="component"> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.connectionmanager.ConnectionManager"> > > > > > >>>> <property name="configDir" ref="configDir"/> > >>>> <property name="connectionManagerConfig" > >>>> > >>>> > >ref="connectionManagerConfig"/> > > > > > >>>> </bean> > >>>> </property> > >>>> </bean> > >>>> > >>>> <!-- configuration saver bean--> > >>>> <bean id="configDir" > >>>> > >>>> > >class="com.anfy.anfynet2.configurationmanager.jndi.JNDIConfigurationDirecto r > >y" init-method="init"> > > > > > >>>> <property name="jndiContext" value="anfynet2"/> > >>>> </bean> > >>>> > >>>> <!-- configuration value object --> > >>>> <bean id="connectionManagerConfig" > >>>> > >>>> > >class="com.anfy.anfynet2.connectionmanager.ConnectionManagerConfig"> > > > > > >>>> <property name="serverPort" value="8081"/> > >>>> <property name="messageReceiver" ref="connectionManager"/> > >>>> <property name="messageProcessor" ref="messageProcessor"/> > >>>> <property name="filters"> > >>>> <map> > >>>> <entry> > >>>> <key> > >>>> <value>DebugFilter</value> > >>>> </key> > >>>> <bean > >>>> > >>>> > >class="com.anfy.anfynet2.connectionmanager.DebuggingProtocolFilter"/> > > > > > >>>> </entry> > >>>> </map> > >>>> </property> > >>>> </bean> > >>>> > >>>> <bean id="messageProcessor" > >>>> > >>>> > >class="com.anfy.anfynet2.connectionmanager.processors.MessageProcessorImpl" > > > > > > >>>> </bean> > >>>> > >>>> <!-- the work manager (thread pool) for this container --> > >>>> <bean id="workManager" > >>>> > >>>> > >class="org.jencks.factory.WorkManagerFactoryBean"> > > > > > >>>> <property name="threadPoolSize" value="30"/> > >>>> </bean> > >>>> > >>>> > >>>> <bean id="connectionManagerServiceName" > >>>> > >>>> > >class="javax.xml.namespace.QName"> > > > > > >>>> <constructor-arg value="http://www.anfyteam.com/anfynet2/"/> > >>>> <constructor-arg value="ConnectionManager"/> > >>>> </bean> > >>>> > >>>></beans> > >>>> > >>>> > >>>> > >> > >> > > > > > > > > > > > > > >
