ECF + OSGI + TCP Socket [message #651526] |
Mon, 31 January 2011 09:09  |
Eclipse User |
|
|
|
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://<myip>: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
|
|
|
Re: ECF + OSGI + TCP Socket [message #651606 is a reply to message #651526] |
Mon, 31 January 2011 15:47   |
Eclipse User |
|
|
|
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://<myip>: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
|
|
|
Re: ECF + OSGI + TCP Socket [message #651656 is a reply to message #651606] |
Tue, 01 February 2011 01:27   |
Eclipse User |
|
|
|
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://<myip>: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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02712 seconds