Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » ECF + OSGI + TCP Socket
ECF + OSGI + TCP Socket [message #651526] Mon, 31 January 2011 14:09 Go to next message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

This is a multi-part message in MIME format.
--------------010807020801050805030007
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

finally I made the Target Platform running - thx for help

I had to install ECF into TargetPlatform because ECF Server should be
part of my Equinox OSGI RT App

first communication protocol to be implemented is TCPSocket
first Clients to be able to connect are BlackBerry Devices (where BB
knows 2 different kinds to connect:
directly from the device or thru BlackBerry Enterprise Server infrastructure
at first I'm testing direct connect because I don't get all errors back
thru BES infrastructure

----

....was not easy to setup all in TargetPlatform (will blog later how I
found solution)

now I can start the GenericServer from my OSGI Launch Config

have replaced all system.out with logging commands
and changed the protocol from 'ecftcp' to 'socket'
because the protocols are limitied from BlackBerry devices

GenericServer was started and can be connected thru URL
'socket://xxx.xxx.xxx.xx:3282/server'
got no error from BlackBerry
if I stop the GenericServer bundle then BlaclBerry reports correctly
'...connection refused...'

-------
but now I'm lost in dust...

it's not easy to understand all concepts of ECF from given documentation
and many classes / methods are without JavaDoc

perhaps someone can help me:

* GenericServer is running as one of my OSGI bundles
* configured thru server.xml as 'socket://<myip>:3282/server'

now my questions:
* where and how can I control the connection / disconnection of a client ?
* where and how do I get access to ServerSocket and Client Socket ?

in some classes I notice that you can trace some code -
how do I switch Tracing on ? ProgramArg or Extension ?

thx

ekke

--

ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml | blackberry
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
project lead: http://redview.org and http://red-open.org
eclipse committer: Runtime Project Riena - http://eclipse.org/riena
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490


--------------010807020801050805030007
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#ffffff" text="#000000">
finally I made the Target Platform running - thx for help<br>
<br>
I had to install ECF into TargetPlatform because ECF Server should
be part of my Equinox OSGI RT App<br>
<br>
first communication protocol to be implemented is TCPSocket<br>
first Clients to be able to connect are BlackBerry Devices (where BB
knows 2 different kinds to connect:<br>
directly from the device or thru BlackBerry Enterprise Server
infrastructure<br>
at first I'm testing direct connect because I don't get all errors
back thru BES infrastructure<br>
<br>
----<br>
<br>
...was not easy to setup all in TargetPlatform (will blog later how
I found solution)<br>
<br>
now I can start the GenericServer from my OSGI Launch Config<br>
<br>
have replaced all system.out with logging commands<br>
and changed the protocol from 'ecftcp' to 'socket'<br>
because the protocols are limitied from BlackBerry devices<br>
<br>
GenericServer was started and can be connected thru URL
'socket://xxx.xxx.xxx.xx:3282/server'<br>
got no error from BlackBerry<br>
if I stop the GenericServer bundle then BlaclBerry reports correctly
'...connection refused...'<br>
<br>
-------<br>
but now I'm lost in dust...<br>
<br>
it's not easy to understand all concepts of ECF from given
documentation<br>
and many classes / methods are without JavaDoc<br>
<br>
perhaps someone can help me:<br>
<br>
* GenericServer is running as one of my OSGI bundles<br>
* configured thru server.xml as 'socket://&lt;myip&gt;:3282/server'<br>
<br>
now my questions: <br>
* where and how can I control the connection / disconnection of a
client ?<br>
* where and how do I get access to ServerSocket and Client Socket ?<br>
<br>
in some classes I notice that you can trace some code -<br>
how do I switch Tracing on ? ProgramArg


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Re: ECF + OSGI + TCP Socket [message #651606 is a reply to message #651526] Mon, 31 January 2011 20:47 Go to previous messageGo to next message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

This is a multi-part message in MIME format.
--------------080006010800030405050504
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

hi,

has anyone some hints ?

I noticed that ServerManager#createServersFromConnectorList()
creates the Server Container (TCPServerSOContainer)

but I still don't know where/how to add my business logic
what should happen if connect / disconnect and receiving / sending data

thx for help

ekke

Am 31.01.11 15:09, schrieb ekke:
> finally I made the Target Platform running - thx for help
>
> I had to install ECF into TargetPlatform because ECF Server should be
> part of my Equinox OSGI RT App
>
> first communication protocol to be implemented is TCPSocket
> first Clients to be able to connect are BlackBerry Devices (where BB
> knows 2 different kinds to connect:
> directly from the device or thru BlackBerry Enterprise Server
> infrastructure
> at first I'm testing direct connect because I don't get all errors
> back thru BES infrastructure
>
> ----
>
> ...was not easy to setup all in TargetPlatform (will blog later how I
> found solution)
>
> now I can start the GenericServer from my OSGI Launch Config
>
> have replaced all system.out with logging commands
> and changed the protocol from 'ecftcp' to 'socket'
> because the protocols are limitied from BlackBerry devices
>
> GenericServer was started and can be connected thru URL
> 'socket://xxx.xxx.xxx.xx:3282/server'
> got no error from BlackBerry
> if I stop the GenericServer bundle then BlaclBerry reports correctly
> '...connection refused...'
>
> -------
> but now I'm lost in dust...
>
> it's not easy to understand all concepts of ECF from given documentation
> and many classes / methods are without JavaDoc
>
> perhaps someone can help me:
>
> * GenericServer is running as one of my OSGI bundles
> * configured thru server.xml as 'socket://<myip>:3282/server'
>
> now my questions:
> * where and how can I control the connection / disconnection of a client ?
> * where and how do I get access to ServerSocket and Client Socket ?
>
> in some classes I notice that you can trace some code -
> how do I switch Tracing on ? ProgramArg or Extension ?
>
> thx
>
> ekke
>
> --
>
> ekke (ekkehard gentz)
> independent software-architect
> senior erp-consultant
> eclipse | osgi | equinox | mdsd | oaw | emf | uml | blackberry
> max-josefs-platz 30, D-83022 rosenheim, germany
> mailto:ekke@ekkes-corner.org
> homepage (de): http://gentz-software.de
> blog (en): http://ekkes-corner.org
> project lead: http://redview.org and http://red-open.org
> eclipse committer: Runtime Project Riena - http://eclipse.org/riena
> twitter: @ekkescorner
> skype: ekkes-corner
> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
>


--

ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml | blackberry
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
project lead: http://redview.org and http://red-open.org
eclipse committer: Runtime Project Riena - http://eclipse.org/riena
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490


--------------080006010800030405050504
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hi,<br>
<br>
has anyone some hints ?<br>
<br>
I noticed that ServerManager#createServersFromConnectorList()<br>
creates the Server Container (TCPServerSOContainer)<br>
<br>
but I still don't know where/how to add my business logic <br>
what should happen if connect / disconnect and receiving / sending
data<br>
<br>
thx for help<br>
<br>
ekke<br>
<br>
Am 31.01.11 15:09, schrieb ekke:
<blockquote cite="mid:ii6ff4$sdm$1@news.eclipse.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-15">
finally I made the Target Platform running - thx for help<br>
<br>
I had to install ECF into TargetPlatform because ECF Server should
be part of my Equinox OSGI RT App<br>
<br>
first communication protocol to be implemented is TCPSocket<br>
first Clients to be able to connect are BlackBerry Devices (where
BB knows 2 different kinds to connect:<br>
directly from the device or thru BlackBerry Enterprise Server
infrastructure<br>
at first I'm testing direct connect because I don't get all errors
back thru BES infrastructure<br>
<br>
----<br>
<br>
...was not easy to setup all in TargetPlatform (will blog later
how I found solution)<br>
<br>
now I can start the GenericServer from my OSGI Launch Config<br>
<br>
have replaced all system.out with logging commands<br>
and changed the protocol from 'ecftcp' to 'socket'<br>
because the protocols are limitied from BlackBerry devices<br>
<br>
GenericServer was started and can be connected thru URL
'socket://xxx.xxx.xxx.xx:3282/server'<br>
got no error from BlackBerry<br>
if I stop the GenericServer bundle then BlaclBerry reports
correctly '...connection refused...'<br>
<br>
-------<br>
but now I'm lost in dust...<br>
<br>
it's not easy to understand all concepts of ECF from given
documentation<br>
and many classes / methods are without JavaDoc<br>
<br>
perhaps someone can help me:<br>
<br>
* GenericServer is running as one of my OSGI bundles<br>
* configured thru server.xml as
'socket://&lt;myip&gt;:3282/server'<br>
<br>
now my questions: <br>
* where and how can I control the connection / disconnection of a
client ?<br>
* where and how do I get access to ServerSocket and Client Socket
?<br>
<br>
in some classes I notice that you can trace some code -<br>
how do I switch Tracing on ? ProgramArg


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Re: ECF + OSGI + TCP Socket [message #651656 is a reply to message #651606] Tue, 01 February 2011 06:27 Go to previous messageGo to next message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

This is a multi-part message in MIME format.
--------------000409090708060701010305
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

in the meantime I learned from
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335848
that ServerManager is the 'old' way and only for backward compatibility

hard to find such things out without documentation

Am 31.01.11 21:47, schrieb ekke:
> hi,
>
> has anyone some hints ?
>
> I noticed that ServerManager#createServersFromConnectorList()
> creates the Server Container (TCPServerSOContainer)
>
> but I still don't know where/how to add my business logic
> what should happen if connect / disconnect and receiving / sending data
>
> thx for help
>
> ekke
>
> Am 31.01.11 15:09, schrieb ekke:
>> finally I made the Target Platform running - thx for help
>>
>> I had to install ECF into TargetPlatform because ECF Server should be
>> part of my Equinox OSGI RT App
>>
>> first communication protocol to be implemented is TCPSocket
>> first Clients to be able to connect are BlackBerry Devices (where BB
>> knows 2 different kinds to connect:
>> directly from the device or thru BlackBerry Enterprise Server
>> infrastructure
>> at first I'm testing direct connect because I don't get all errors
>> back thru BES infrastructure
>>
>> ----
>>
>> ...was not easy to setup all in TargetPlatform (will blog later how I
>> found solution)
>>
>> now I can start the GenericServer from my OSGI Launch Config
>>
>> have replaced all system.out with logging commands
>> and changed the protocol from 'ecftcp' to 'socket'
>> because the protocols are limitied from BlackBerry devices
>>
>> GenericServer was started and can be connected thru URL
>> 'socket://xxx.xxx.xxx.xx:3282/server'
>> got no error from BlackBerry
>> if I stop the GenericServer bundle then BlaclBerry reports correctly
>> '...connection refused...'
>>
>> -------
>> but now I'm lost in dust...
>>
>> it's not easy to understand all concepts of ECF from given documentation
>> and many classes / methods are without JavaDoc
>>
>> perhaps someone can help me:
>>
>> * GenericServer is running as one of my OSGI bundles
>> * configured thru server.xml as 'socket://<myip>:3282/server'
>>
>> now my questions:
>> * where and how can I control the connection / disconnection of a
>> client ?
>> * where and how do I get access to ServerSocket and Client Socket ?
>>
>> in some classes I notice that you can trace some code -
>> how do I switch Tracing on ? ProgramArg or Extension ?
>>
>> thx
>>
>> ekke
>>
>> --
>>
>> ekke (ekkehard gentz)
>> independent software-architect
>> senior erp-consultant
>> eclipse | osgi | equinox | mdsd | oaw | emf | uml | blackberry
>> max-josefs-platz 30, D-83022 rosenheim, germany
>> mailto:ekke@ekkes-corner.org
>> homepage (de): http://gentz-software.de
>> blog (en): http://ekkes-corner.org
>> project lead: http://redview.org and http://red-open.org
>> eclipse committer: Runtime Project Riena - http://eclipse.org/riena
>> twitter: @ekkescorner
>> skype: ekkes-corner
>> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
>>
>
>
> --
>
> ekke (ekkehard gentz)
> independent software-architect
> senior erp-consultant
> eclipse | osgi | equinox | mdsd | oaw | emf | uml | blackberry
> max-josefs-platz 30, D-83022 rosenheim, germany
> mailto:ekke@ekkes-corner.org
> homepage (de): http://gentz-software.de
> blog (en): http://ekkes-corner.org
> project lead: http://redview.org and http://red-open.org
> eclipse committer: Runtime Project Riena - http://eclipse.org/riena
> twitter: @ekkescorner
> skype: ekkes-corner
> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
>


--

ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml | blackberry
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
project lead: http://redview.org and http://red-open.org
eclipse committer: Runtime Project Riena - http://eclipse.org/riena
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490


--------------000409090708060701010305
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
in the meantime I learned from<br>
<a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=335848">https://bugs.eclipse.org/bugs/show_bug.cgi?id=335848</a><br>
that ServerManager is the 'old' way and only for backward
compatibility<br>
<br>
hard to find such things out without documentation<br>
<br>
Am 31.01.11 21:47, schrieb ekke:
<blockquote cite="mid:ii76qt$ap2$1@news.eclipse.org" type="cite">
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
hi,<br>
<br>
has anyone some hints ?<br>
<br>
I noticed that ServerManager#createServersFromConnectorList()<br>
creates the Server Container (TCPServerSOContainer)<br>
<br>
but I still don't know where/how to add my business logic <br>
what should happen if connect / disconnect and receiving / sending
data<br>
<br>
thx for help<br>
<br>
ekke<br>
<br>
Am 31.01.11 15:09, schrieb ekke:
<blockquote cite="mid:ii6ff4$sdm$1@news.eclipse.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-15">
finally I made the Target Platform running - thx for help<br>
<br>
I had to install ECF into TargetPlatform because ECF Server
should be part of my Equinox OSGI RT App<br>
<br>
first communication protocol to be implemented is TCPSocket<br>
first Clients to be able to connect are BlackBerry Devices
(where BB knows 2 different kinds to connect:<br>
directly from the device or thru BlackBerry Enterprise Server
infrastructure<br>
at first I'm testing direct connect because I don't get all
errors back thru BES infrastructure<br>
<br>
----<br>
<br>
...was not easy to setup all in TargetPlatform (will blog later
how I found solution)<br>
<br>
now I can start the GenericServer from my OSGI Launch Config<br>
<br>
have replaced all system.out with logging commands<br>
and changed the protocol from 'ecftcp' to 'socket'<br>
because the protocols are limitied from BlackBerry devices<br>
<br>
GenericServer was started and can be connected thru URL
'socket://xxx.xxx.xxx.xx:3282/server'<br>
got no error from BlackBerry<br>
if I stop the GenericServer bundle then BlaclBerry reports
correctly '...connection refused...'<br>
<br>
-------<br>
but now I'm lost in dust...<br>
<br>
it's not easy to understand all concepts of ECF from given
documentation<br>
and many classes / methods are without JavaDoc<br>
<br>
perhaps someone can help me:<br>
<br>
* GenericServer is running as one of my OSGI bundles<br>
* configured thru server.xml as
'socket://&lt;myip&gt;:3282/server'<br>
<br>
now my questions: <br>
* where and how can I control the connection / disconnection of
a client ?<br>
* where and how do I get access to ServerSocket and Client
Socket ?<br>
<br>
in some classes I notice that you can trace some code -<br>
how do I switch Tracing on ? ProgramArg


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Re: ECF + OSGI + TCP Socket [message #651669 is a reply to message #651656] Tue, 01 February 2011 08:09 Go to previous message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 02/01/2011 07:27 AM, ekke wrote:
> in the meantime I learned from
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=335848
> that ServerManager is the 'old' way and only for backward compatibility
>
> hard to find such things out without documentation

Hi Ekke,

you might wanna subscribe to our documentation enhancement bug [0] and
help prioritize what gets documented first.

Markus

[0] https://bugs.eclipse.org/bugs/show_bug.cgi?id=329124
Previous Topic:SSL protocol
Next Topic:Event Admin is null when debugging in eclipse, not in command line
Goto Forum:
  


Current Time: Fri Apr 19 21:59:38 GMT 2024

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

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

Back to the top