Updated Branches: refs/heads/master 3efa2767a -> 71af0db66
Fix simulator running NOTE: need to use mvn -Dsimulator client jetty:run to run Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/71af0db6 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/71af0db6 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/71af0db6 Branch: refs/heads/master Commit: 71af0db668df3cc92a18bf186209d91528f7589d Parents: 3efa276 Author: Chiradeep Vittal <chirad...@apache.org> Authored: Fri Aug 9 18:35:51 2013 -0700 Committer: Chiradeep Vittal <chirad...@apache.org> Committed: Fri Aug 9 18:36:18 2013 -0700 ---------------------------------------------------------------------- .../tomcatconf/simulatorComponentContext.xml.in | 32 +++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/71af0db6/client/tomcatconf/simulatorComponentContext.xml.in ---------------------------------------------------------------------- diff --git a/client/tomcatconf/simulatorComponentContext.xml.in b/client/tomcatconf/simulatorComponentContext.xml.in index 7225e84..c46d1de 100644 --- a/client/tomcatconf/simulatorComponentContext.xml.in +++ b/client/tomcatconf/simulatorComponentContext.xml.in @@ -25,7 +25,7 @@ OSS deployment component configuration --> <bean id="databaseUpgradeChecker" class="com.cloud.upgrade.DatabaseUpgradeChecker"/> - <bean id="configurationDaoImpl" class="com.cloud.configuration.dao.ConfigurationDaoImpl"/> + <bean id="configurationDaoImpl" class="org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl"/> <bean id="SimulatorDiscoverer" class="com.cloud.resource.SimulatorDiscoverer"> <property name="name" value="Simulator Agent"/> @@ -251,4 +251,34 @@ <property name="name" value="ExplicitDedicationProcessor"/> <property name="type" value="ExplicitDedication"/> </bean> + <!-- + RPC/Async/EventBus + --> + + <bean id="onwireRegistry" class="org.apache.cloudstack.framework.serializer.OnwireClassRegistry" + init-method="scan" > + <property name="packages"> + <list> + <value>org.apache.cloudstack.framework</value> + </list> + </property> + </bean> + + <bean id="messageSerializer" class="org.apache.cloudstack.framework.serializer.JsonMessageSerializer"> + <property name="onwireClassRegistry" ref="onwireRegistry" /> + </bean> + + <bean id="transportProvider" class="org.apache.cloudstack.framework.server.ServerTransportProvider" init-method="initialize"> + <property name="workerPoolSize" value="5" /> + <property name="nodeId" value="Node1" /> + <property name="messageSerializer" ref="messageSerializer" /> + </bean> + + <bean id="rpcProvider" class="org.apache.cloudstack.framework.rpc.RpcProviderImpl" init-method="initialize"> + <constructor-arg ref="transportProvider" /> + <property name="messageSerializer" ref="messageSerializer" /> + </bean> + + <bean id="messageBus" class = "org.apache.cloudstack.framework.messagebus.MessageBusBase" /> + <bean id="configDepot" class = "org.apache.cloudstack.framework.config.ConfigDepotImpl" /> </beans>