We was using older version of Spring (2.5 I guess) but maybe it will
be helpful also for you:
In Web application which want to contact remote server you define bean like:
        <bean id="crService"
class="org.springframework.remoting.rmi.JndiRmiProxyFactoryBean">
                <property name="jndiName"
value="t3://${ejbServerName}/crService"/>
                <property name="lookupStubOnStartup" value="false"/>
                <property name="cacheStub" value="false"/>
                <property name="refreshStubOnConnectFailure" value="true"/>
                <property name="jndiEnvironment">
                        <props>
                                <prop
key="java.naming.factory.url.pkgs">weblogic.jndi.factories</prop>
                        </props>
                </property>
                <property name="serviceInterface"
value="sk.f4ss.XXX.serviceapi.CrService"/>
        </bean>

Than you can use "crService" in web applicatoin like local service. On
service side you will export service like:
        <bean id="crServiceImpl"
class="org.springframework.remoting.rmi.JndiRmiServiceExporter">
                <property name="service" ref="crService"/>
                <property name="serviceInterface"
value="sk.f4ss.XXX.serviceapi.CrService"/>
                <property name="jndiName" value="crService"/>
        </bean>

That's it, nothing more.

Just for reference. On service side we use
org.springframework.web.context.ContextLoaderListener
On Web side we use standard org.springframework.web.servlet.DispatcherServlet

Detail depend on your possibilities. Spring provides more ways to call
service. Above configuration is using RMI and JNDI (with WebLogic
specific T3 protocol).

Pavel

On Tue, Apr 13, 2010 at 12:09 PM, MasterBoy <master1...@hotmail.com> wrote:
>
> thank you Pavil,
>
> Well the ApplicationContext.xml regenerated every time i regenerate my
> application.
>
> so should i use more.xml file to add my spring remoting  code?
>
>
>
> PaloT wrote:
>>
>> Hello,
>> Oracle (BEA) Weblogic is biggest commercial app server. Big
>> organizations use it and we deployed system developed by Sculptor to
>> this environment. Web tier (consisting of more physical and logical
>> servers) call services in service tier (consisting of more physical
>> and logical servers). It's used in huge production system. I used it
>> as proof that things are working well.
>> RCP is Rich Client Platform from Eclipse and this project nature is
>> used for developing client side application inside Eclipse RCP. It has
>> nothing common with RPC.
>>
>> Real services are instantiated inside server with Spring configuration
>> file src/generated/resources/applicationContext.xml with Service
>> annotations on classes. Rest is Spring configuration which is
>> described in Spring remoting manual.
>>
>> Hope this help
>>
>> Pavel
>>
>> On Mon, Apr 12, 2010 at 11:46 AM, MasterBoy <master1...@hotmail.com>
>> wrote:
>>>
>>> Hi Pavel,
>>>
>>> I didn't understand what BEA cluster mean! had you worked on this before?
>>> if
>>> you have any pist please?
>>>
>>> I have a question, i found that we can add rcp to the nature project!!
>>> are that have any relation with the remoting!!!
>>>
>>> Thank You
>>> Best regards
>>> Zakariae
>>>
>>>
>>> PaloT wrote:
>>>>
>>>> It's not generated automatically (at least from what I know). We did
>>>> it manually, deployed on BEA cluster - no problem.
>>>>
>>>> Pavel
>>>>
>>>>
>>>> On Sun, Apr 11, 2010 at 1:28 AM, MasterBoy <master1...@hotmail.com>
>>>> wrote:
>>>>>
>>>>> Hi folks!
>>>>>
>>>>> I have a question! are there a way to generate the business and the
>>>>> presentation projects as a projects deployed on a separate servers?
>>>>>
>>>>> I mean that if sculptor support the generation of the two projects as a
>>>>> remoting projects?
>>>>> Using remoting spring, or other ways.
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/Remoting-between-business-and-GUI-projects%21-tp28205783s17564p28205783.html
>>>>> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Download Intel® Parallel Studio Eval
>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>> proactively, and fine-tune applications for parallel performance.
>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>> _______________________________________________
>>>>> Fornax-developer mailing list
>>>>> Fornax-developer@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download Intel® Parallel Studio Eval
>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>> proactively, and fine-tune applications for parallel performance.
>>>> See why Intel Parallel Studio got high marks during beta.
>>>> http://p.sf.net/sfu/intel-sw-dev
>>>> _______________________________________________
>>>> Fornax-developer mailing list
>>>> Fornax-developer@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Remoting-between-business-and-GUI-projects%21-tp28205783s17564p28216128.html
>>> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> Fornax-developer mailing list
>>> Fornax-developer@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Fornax-developer mailing list
>> Fornax-developer@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Remoting-between-business-and-GUI-projects%21-tp28205783s17564p28227600.html
> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to