﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-梦在脚下-文章分类-Spring</title><link>http://www.blogjava.net/J2EE/category/32939.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 10 Jul 2008 09:51:32 GMT</lastBuildDate><pubDate>Thu, 10 Jul 2008 09:51:32 GMT</pubDate><ttl>60</ttl><item><title>Spring    Http远程调用applicationContext-invoker.xml</title><link>http://www.blogjava.net/J2EE/articles/214047.html</link><dc:creator>追梦人</dc:creator><author>追梦人</author><pubDate>Thu, 10 Jul 2008 09:38:00 GMT</pubDate><guid>http://www.blogjava.net/J2EE/articles/214047.html</guid><wfw:comment>http://www.blogjava.net/J2EE/comments/214047.html</wfw:comment><comments>http://www.blogjava.net/J2EE/articles/214047.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/J2EE/comments/commentRss/214047.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/J2EE/services/trackbacks/214047.html</trackback:ping><description><![CDATA[&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;beans xmlns="<a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/beans" target="_blank" link="http://www.springframework.org/schema/beans">http://www.springframework.org/schema/beans</a><wbr>"<br />
xmlns:xsi="<a onclick="showLinkBubble(this);return false" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" link="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a><wbr>"<br />
xmlns:aop="<a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/aop" target="_blank" link="http://www.springframework.org/schema/aop">http://www.springframework.org/schema/aop</a><wbr>"<br />
xmlns:tx="<a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/tx" target="_blank" link="http://www.springframework.org/schema/tx">http://www.springframework.org/schema/tx</a><wbr>"<br />
xsi:schemaLocation="<a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/beans" target="_blank" link="http://www.springframework.org/schema/beans">http://www.springframework.org/schema/beans</a><wbr> <a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" target="_blank" link="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</a><wbr><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/aop" target="_blank" link="http://www.springframework.org/schema/aop">http://www.springframework.org/schema/aop</a><wbr> <a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/aop/spring-aop-2.0.xsd" target="_blank" link="http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">http://www.springframework.org/schema/aop/spring-aop-2.0.xsd</a><wbr><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/tx" target="_blank" link="http://www.springframework.org/schema/tx">http://www.springframework.org/schema/tx</a><wbr> <a onclick="showLinkBubble(this);return false" href="http://www.springframework.org/schema/tx/spring-tx-2.0.xsd" target="_blank" link="http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">http://www.springframework.org/schema/tx/spring-tx-2.0.xsd</a><wbr>"<br />
default-autowire="byName"&gt;<br />
<br />
<br />
&lt;!--客服端设置--&gt;<br />
&lt;bean id="paymentManager" class= "org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="serviceUrl" value="<a onclick="showLinkBubble(this);return false" href="http://localhost:8080/pay.service" target="_blank" link="http://localhost:8080/pay.service">http://localhost:8080/pay.service</a><wbr>" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="serviceInterface" value="cn.com.vikijob.service.PaymentService" /&gt;<br />
&nbsp;&nbsp;&lt;/bean&gt; <br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;&lt;!--服务端设置--&gt;<br />
&lt;bean id="httpPaymentService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"&gt;<br />
&nbsp;&nbsp;&lt;property name="service" ref="paymentService" /&gt;<br />
&nbsp;&nbsp;&lt;property name="serviceInterface" value="cn.com.vikijob.service.PaymentService"/&gt;<br />
&lt;/bean&gt;<br />
&lt;bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt;<br />
&nbsp;&nbsp;&lt;property name="mappings"&gt;<br />
&nbsp;&nbsp; &lt;props&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;prop key="/pay.service"&gt;httpPaymentService&lt;/prop&gt;<br />
&nbsp;&nbsp; &lt;/props&gt;<br />
&nbsp;&nbsp;&lt;/property&gt;<br />
&lt;/bean&gt;<br />
&lt;/beans&gt;<img id="paperPicArea1" style="display: none; position: relative" src="http://imgcache.qq.com/ac/qzone_v4/b.gif"  alt="" />
<img src ="http://www.blogjava.net/J2EE/aggbug/214047.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/J2EE/" target="_blank">追梦人</a> 2008-07-10 17:38 <a href="http://www.blogjava.net/J2EE/articles/214047.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>