[servicemix-dev] SpringJBIContainer and Singleton?

classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[servicemix-dev] SpringJBIContainer and Singleton?

Maxim Surov
Hi,
 
I am using JBoss + ServiceMix.
 
And I use SpringJBIContainer in ordrer to deploy components.
Each JBI component is being deployed in a single .jar
 
Can we be sure that all components work with single JBIContainer instance?
 
If it's not true, should we make JBIContainer Singleton?
 
Regards,
Maxim
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] SpringJBIContainer and Singleton?

Philip Dodds-2
Are you using the JBoss deployer? Or are you simply creates an MBean for a SpringJBIContainer?

P

On 10/31/05, Maxim Surov <[hidden email]> wrote:
Hi,
 
I am using JBoss + ServiceMix.
 
And I use SpringJBIContainer in ordrer to deploy components.
Each JBI component is being deployed in a single .jar
 
Can we be sure that all components work with single JBIContainer instance?
 
If it's not true, should we make JBIContainer Singleton?
 
Regards,
Maxim

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] SpringJBIContainer and Singleton?

Maxim Surov
Yes, I am using JBoss deployer.
----- Original Message -----
Sent: Monday, October 31, 2005 7:03 PM
Subject: Re: [servicemix-dev] SpringJBIContainer and Singleton?

Are you using the JBoss deployer? Or are you simply creates an MBean for a SpringJBIContainer?

P

On 10/31/05, Maxim Surov <[hidden email]> wrote:
Hi,
 
I am using JBoss + ServiceMix.
 
And I use SpringJBIContainer in ordrer to deploy components.
Each JBI component is being deployed in a single .jar
 
Can we be sure that all components work with single JBIContainer instance?
 
If it's not true, should we make JBIContainer Singleton?
 
Regards,
Maxim

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[servicemix-dev] multiple JBI components and JBoss deployer

Maxim Surov
In reply to this post by Philip Dodds-2
Guys,
 
How to deploy several JBI components using jbi-spring.xml to be worked in a single JBIContainer ?
 
Regards,
Maxim
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[servicemix-dev] multiple JBI component?

Maxim Surov
In reply to this post by Philip Dodds-2
Guys,
 
I use JBoss + JBoss deployer.
 
I use several. jars, each jar contains jbi-spring.xml
 
Is this approach supposed to work?
 
Thanks,
Maxim
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[servicemix-dev] JBI container instances

Maxim Surov
In reply to this post by Philip Dodds-2
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Guillaume Nodet-3
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Maxim Surov
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" <[hidden email]>
To: <[hidden email]>
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
>
>
>

jbi-spring.xml (5K) Download Attachment
jbi-spring.xml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Guillaume Nodet-3
Could you please provide the jbi.xml please.
Guillaume

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" <[hidden email]>
>To: <[hidden email]>
>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.JNDIConfigurationDirectory" 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.JNDIConfigurationDirectory" 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>
>>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Guillaume Nodet-3
In reply to this post by Maxim Surov
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" <[hidden email]>
>To: <[hidden email]>
>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.JNDIConfigurationDirectory" 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.JNDIConfigurationDirectory" 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>
>>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: [servicemix-dev] JBI container instances

Philip Dodds
In reply to this post by Maxim Surov

Are the Jars standard JBI components or are they using the Spring JBI container that is part of the Spring Client Toolkit?

 

The example actually uses two components in two jars that are able to operate separately?

 

P

 


From: Maxim Surov [mailto:[hidden email]]
Sent: Tuesday, November 01, 2005 8:26 AM
To: [hidden email]
Subject: [servicemix-dev] JBI container instances

 

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Maxim Surov
In reply to this post by Guillaume Nodet-3
Here they are :

Please, see attach

Thanks in advance,
Maxim

----- Original Message -----
From: "Guillaume Nodet" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, November 01, 2005 5:19 PM
Subject: Re: [servicemix-dev] JBI container instances


> Could you please provide the jbi.xml please.
> Guillaume
>
> 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" <[hidden email]>
> >To: <[hidden email]>
> >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.JNDIConfigurationDirector
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.JNDIConfigurationDirector
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>
> >>
>
>

jbi.xml (821 bytes) Download Attachment
jbi.xml (805 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Maxim Surov
In reply to this post by Guillaume Nodet-3
But , where should I have a container definition?

Thank you,
Maxim

----- Original Message -----
From: "Guillaume Nodet" <[hidden email]>
To: <[hidden email]>
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" <[hidden email]>
> >To: <[hidden email]>
> >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.JNDIConfigurationDirector
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.JNDIConfigurationDirector
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>
> >>
>
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Guillaume Nodet-3
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" <[hidden email]>
>To: <[hidden email]>
>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" <[hidden email]>
>>>To: <[hidden email]>
>>>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.JNDIConfigurationDirector
>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.JNDIConfigurationDirector
>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>
>>>>
>>>>        
>>>>
>>    
>>
>
>
>
>
>  
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Maxim Surov
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" <[hidden email]>
To: <[hidden email]>
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" <[hidden email]>
> >To: <[hidden email]>
> >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" <[hidden email]>
> >>>To: <[hidden email]>
> >>>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>
> >>>>
> >>>>
> >>>>
> >>
> >>
> >
> >
> >
> >
> >
> >
>
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Maxim Surov
In reply to this post by Guillaume Nodet-3
Can I use ComponentLifeCycle interface ?

----- Original Message -----
From: "Guillaume Nodet" <[hidden email]>
To: <[hidden email]>
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" <[hidden email]>
> >To: <[hidden email]>
> >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.JNDIConfigurationDirector
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.JNDIConfigurationDirector
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>
> >>
>
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Guillaume Nodet-3
In reply to this post by Maxim Surov
Currently, the jboss deployer / service can only handle jbi compliant
installation / deployment.
So you must deploy the servicemix component, and then you will be able
to deploy
service units containing xml files.
See
http://svn.servicemix.codehaus.org/branches/servicemix-1.1/base/src/test/resources/org/servicemix/components/servicemix/
where you have the component and a sample service unit.

Cheers,
Guillaume Nodet

Maxim Surov wrote:

>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" <[hidden email]>
>To: <[hidden email]>
>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" <[hidden email]>
>>>To: <[hidden email]>
>>>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" <[hidden email]>
>>>>>To: <[hidden email]>
>>>>>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>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>        
>>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>>    
>>
>
>
>
>
>  
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [servicemix-dev] JBI container instances

Maxim Surov
OK, thank you.
It seems we should adopt this approach to our project.


----- Original Message -----
From: "Guillaume Nodet" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, November 01, 2005 7:21 PM
Subject: Re: [servicemix-dev] JBI container instances


> Currently, the jboss deployer / service can only handle jbi compliant
> installation / deployment.
> So you must deploy the servicemix component, and then you will be able
> to deploy
> service units containing xml files.
> See
>
http://svn.servicemix.codehaus.org/branches/servicemix-1.1/base/src/test/resources/org/servicemix/components/servicemix/

> where you have the component and a sample service unit.
>
> Cheers,
> Guillaume Nodet
>
> Maxim Surov wrote:
>
> >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" <[hidden email]>
> >To: <[hidden email]>
> >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" <[hidden email]>
> >>>To: <[hidden email]>
> >>>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" <[hidden email]>
> >>>>>To: <[hidden email]>
> >>>>>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.JNDIConfigurationDirect
o

> >>
> >>
> >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.JNDIConfigurationDirect
o

> >>
> >>
> >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>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> >
> >
> >
>
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[servicemix-dev] ServiceController and ServiceMix

Maxim Surov
In reply to this post by Guillaume Nodet-3
Hi,

I should develop ServiceController module for ServiceMix + JBoss
environment.
Can you provide me some tips and tricks of how is better to implement this
capability?



I just need to get Normilized Messages, parse them and route workflow to a
particular JBI component.


Thank you,
Maxim


Loading...