Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] 3.0 Standalone (spring wired) server and client example
[CDO] 3.0 Standalone (spring wired) server and client example [message #507536] Wed, 13 January 2010 19:16 Go to next message
Assen Sharlandjiev is currently offline Assen SharlandjievFriend
Messages: 17
Registered: January 2010
Location: Sofia, Bulgaria
Junior Member

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
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 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6450
Registered: July 2009
Senior Member
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
>


Previous Topic:childen of a resource
Next Topic:editor code usage
Goto Forum:
  


Current Time: Mon Nov 11 19:43:31 GMT 2019

Powered by FUDForum. Page generated in 0.02270 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top