phttp dynamic.xml

来源:互联网 发布:java封装继承多态详解 编辑:程序博客网 时间:2024/06/05 17:16
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"xmlns:pe="http://www.csii.com.cn/schema/pe"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/osgihttp://www.springframework.org/schema/osgi/spring-osgi.xsdhttp://www.csii.com.cn/schema/pehttp://www.csii.com.cn/schema/pe/pe-1.0.xsd"><osgi:list id="appCtxServices" interface="org.springframework.osgi.context.ConfigurableOsgiBundleApplicationContext" cardinality="0..N"><osgi:listener bind-method="onBind" unbind-method="onUnbind" ref="WebModuleRegistry" /></osgi:list><osgi:reference id="httpService" interface="org.osgi.service.http.HttpService"><osgi:listener bind-method="onBind" unbind-method="onUnbind" ref="ServletRegistry" /><osgi:listener bind-method="onBindHttpService" unbind-method="onUnbindHttpService" ref="WebModuleRegistry" /></osgi:reference><osgi:reference id="ibsdbDataSource" bean-name="ibsdbDataSource"interface="javax.sql.DataSource" /><osgi:reference id="ibsdbSqlExecutor" bean-name="ibsdbSqlExecutor"interface="com.csii.pe.service.jdbc.SqlExecutor" /><osgi:reference id="ibsdbTxTemplate" bean-name="ibsdbTxTemplate"interface="org.springframework.transaction.support.TransactionTemplate" /><!--Every bundle using SQLMAPPING should set configuration seperately--><!-- ibsdb --><bean id="ibsdbSqlMapExecutor" class="org.springframework.orm.ibatis.SqlMapClientTemplate"><property name="dataSource" ref="ibsdbDataSource" /><property name="sqlMapClient"><bean class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"><property name="configLocation"value="osgibundle:/META-INF/config/sql-mapping/ibsdbSqlMapConfig.xml" /></bean></property></bean><!-- specified ibsdb --><bean id="SpecifiedDbTypeSqlMapClientForIBSDB" class="com.csii.uibs.SpecifiedDbTypeSqlMapClient"><property name="sqlMap" ref="ibsdbSqlMapExecutor" /><property name="dbType" value="${SpecifiedSqlMapClientForIBSDB.dbType}" /></bean><bean id="jdbcAccessAwareProcessor" class="com.csii.pe.config.support.JdbcAccessAwareProcessor"><property name="sqlExecutor" ref="ibsdbSqlExecutor" /><property name="sqlExecutors"><map><entry key="ibsdb" value-ref="ibsdbSqlExecutor" /></map></property><property name="sqlMap" ref="ibsdbSqlMapExecutor" /><property name="sqlMaps"><map><entry key="ibsdb" value-ref="ibsdbSqlMapExecutor" /><entry key="sibsdb" value-ref="SpecifiedDbTypeSqlMapClientForIBSDB" /></map></property><property name="transactionTemplate" ref="ibsdbTxTemplate" /><property name="transactionTemplates"><map><entry key="ibsdb" value-ref="ibsdbTxTemplate" /></map></property></bean><!-- 动态Web模块注册表 --><bean id="WebModuleRegistry" class="com.csii.pe.dynamic.http.WebModuleRegistry" /><bean id="ServletRegistry" class="com.csii.ibs.pcommon.http.serlvet.WHBCMainServletRegistry"><property name="mainServlet" ref="MainServlet" /><property name="bundleContext" ref="bundleContext" /></bean><!--     <osgi:service ref="MainServlet" interface="com.csii.pe.dynamic.http.MainServlet" /> --><bean id="MainServlet" class="com.csii.pe.dynamic.http.MainServlet" /><osgi:service ref="SFtpDownloadBillTransport" interface="com.csii.pe.service.comm.Transport" /></beans>


http.xml

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"xmlns:pe="http://www.csii.com.cn/schema/pe"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/osgihttp://www.springframework.org/schema/osgi/spring-osgi.xsdhttp://www.csii.com.cn/schema/pehttp://www.csii.com.cn/schema/pe/pe-1.0.xsd"><osgi:list id="appCtxServices" interface="org.springframework.osgi.context.ConfigurableOsgiBundleApplicationContext" cardinality="0..N"><osgi:listener bind-method="onBind" unbind-method="onUnbind" ref="WebModuleRegistry" /></osgi:list><osgi:reference id="httpService" interface="org.osgi.service.http.HttpService"><osgi:listener bind-method="onBind" unbind-method="onUnbind" ref="ServletRegistry" /><osgi:listener bind-method="onBindHttpService" unbind-method="onUnbindHttpService" ref="WebModuleRegistry" /></osgi:reference><osgi:reference id="ibsdbDataSource" bean-name="ibsdbDataSource"interface="javax.sql.DataSource" /><osgi:reference id="ibsdbSqlExecutor" bean-name="ibsdbSqlExecutor"interface="com.csii.pe.service.jdbc.SqlExecutor" /><osgi:reference id="ibsdbTxTemplate" bean-name="ibsdbTxTemplate"interface="org.springframework.transaction.support.TransactionTemplate" /><!--Every bundle using SQLMAPPING should set configuration seperately--><!-- ibsdb --><bean id="ibsdbSqlMapExecutor" class="org.springframework.orm.ibatis.SqlMapClientTemplate"><property name="dataSource" ref="ibsdbDataSource" /><property name="sqlMapClient"><bean class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"><property name="configLocation"value="osgibundle:/META-INF/config/sql-mapping/ibsdbSqlMapConfig.xml" /></bean></property></bean><!-- specified ibsdb --><bean id="SpecifiedDbTypeSqlMapClientForIBSDB" class="com.csii.uibs.SpecifiedDbTypeSqlMapClient"><property name="sqlMap" ref="ibsdbSqlMapExecutor" /><property name="dbType" value="${SpecifiedSqlMapClientForIBSDB.dbType}" /></bean><bean id="jdbcAccessAwareProcessor" class="com.csii.pe.config.support.JdbcAccessAwareProcessor"><property name="sqlExecutor" ref="ibsdbSqlExecutor" /><property name="sqlExecutors"><map><entry key="ibsdb" value-ref="ibsdbSqlExecutor" /></map></property><property name="sqlMap" ref="ibsdbSqlMapExecutor" /><property name="sqlMaps"><map><entry key="ibsdb" value-ref="ibsdbSqlMapExecutor" /><entry key="sibsdb" value-ref="SpecifiedDbTypeSqlMapClientForIBSDB" /></map></property><property name="transactionTemplate" ref="ibsdbTxTemplate" /><property name="transactionTemplates"><map><entry key="ibsdb" value-ref="ibsdbTxTemplate" /></map></property></bean><!-- 动态Web模块注册表 --><bean id="WebModuleRegistry" class="com.csii.pe.dynamic.http.WebModuleRegistry" /><bean id="ServletRegistry" class="com.csii.ibs.pcommon.http.serlvet.WHBCMainServletRegistry"><property name="mainServlet" ref="MainServlet" /><property name="bundleContext" ref="bundleContext" /></bean><!--     <osgi:service ref="MainServlet" interface="com.csii.pe.dynamic.http.MainServlet" /> --><bean id="MainServlet" class="com.csii.pe.dynamic.http.MainServlet" /><osgi:service ref="SFtpDownloadBillTransport" interface="com.csii.pe.service.comm.Transport" /></beans>

pwebcontext  的 dynamic.xml

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"xmlns:pe="http://www.csii.com.cn/schema/pe"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/osgihttp://www.springframework.org/schema/osgi/spring-osgi.xsdhttp://www.csii.com.cn/schema/pehttp://www.csii.com.cn/schema/pe/pe-1.0.xsd"><osgi:reference id="httpService" interface="org.osgi.service.http.HttpService"><osgi:listener bind-method="onBind" unbind-method="onUnbind" ref="ResourceServeltRegistry" /></osgi:reference><bean id="ResourceServeltRegistry" class="com.csii.pe.dynamic.http.resource.ResourceServeltRegistry"><property name="resourceMapping"><map><entry key="/ocx/*" value="/WebContent/ocx" /><entry key="/js/*" value="/WebContent/js" /><entry key="/css/*" value="/WebContent/css" /><entry key="/images/*" value="/WebContent/images" /><entry key="/zh_CN/*" value="/WebContent/zh_CN" /><entry key="/zh_TW/*" value="/WebContent/zh_TW" /><entry key="/en_US/*" value="/WebContent/en_US" /></map></property><property name="bundleContext" ref="bundleContext" /></bean></beans>


原创粉丝点击