|
Re: [CDO] 3.0 Standalone (spring wired) server and client example [message #507679 is a reply to message #507536] |
Thu, 14 January 2010 11:04 |
|
Hi Assen,
Normally that's quite simple: You prepare your IManagedConatiner with
JVM factories instead of TCP factories (see JVMUtil.prepareContainer).
I'm confused by your xml example. You seem to create the acceptor and
connector beans explicitely:
<bean id="accpetor" class="org.eclipse.net4j.internal.tcp.TCPAcceptor" init-method="activate" destroy-method="deactivate">
<property name="address" value="localhost"/>
<property name="port" value="2036"/>
<property name="selector">
<bean id="selector" class="org.eclipse.net4j.internal.tcp.TCPSelector" init-method="activate" destroy-method="deactivate"/>
</property>
<property name="config" ref="serverConfig"/>
</bean>
<bean id="connector" class="org.eclipse.net4j.internal.tcp.TCPClientConnector">
<property name="host" value="localhost"/>
<property name="port" value="2036"/>
<property name="selector" ref="selector"/>
<property name="config" ref="clientConfig"/>
</bean>
Why do you need the factories then?
Cheers
/Eike
----
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Assen Sharlandjiev schrieb:
> Hi,
>
> Please have a look at the following example
> http://wiki.eclipse.org/CDO_Spring
>
> I want to run a CDO server inside a J2EE web application, without the
> OSGI container.
> Eike, can you help me out with replacing the TCP transport with JVM
> transport?
>
> Thanks in advance,
> Assen
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds