Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPP » UDC in own RCP applications
UDC in own RCP applications [message #9016] Thu, 19 June 2008 11:38 Go to next message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Hi folks,

I've been told that this is the right place to post my question.

I am really interested in using the Usage Data Collector in own RCP
applications in order to see how user interact with my
application/plugins. Is this basically possible? Is there any "how to"
site where I can read how to include this tool in own applications, how to
set the server destination for usage files and how to generate reports?

It would be really great if someone could give me an advice.

Thanks in advance,
Eugen Reiswich
Re: UDC in own RCP applications [message #9037 is a reply to message #9016] Fri, 20 June 2008 08:26 Go to previous messageGo to next message
Eclipse User
Originally posted by: mknauer.innoopract.com

A good starting point is the main web page of the UDC (client side):
http://www.eclipse.org/epp/usagedata/index.php

There is a technical FAQ (http://www.eclipse.org/epp/usagedata/faq.php) and
a project set file (http://www.eclipse.org/epp/usagedata/UsageData.psf)
that allows you to easily add the code to your workspace.

Feel free to ask more questions, if not everything is answered in the FAQ.

Thanks and regards,
Markus


Eugen Reiswich wrote:

> Hi folks,
>
> I've been told that this is the right place to post my question.
>
> I am really interested in using the Usage Data Collector in own RCP
> applications in order to see how user interact with my
> application/plugins. Is this basically possible? Is there any "how to"
> site where I can read how to include this tool in own applications, how to
> set the server destination for usage files and how to generate reports?
>
> It would be really great if someone could give me an advice.
>
> Thanks in advance,
> Eugen Reiswich
Re: UDC in own RCP applications [message #9058 is a reply to message #9016] Fri, 20 June 2008 14:55 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
The short answer is yes, you can use the UDC in your own RCP
applications. However, the current incarnation of the UDC doesn't expose
any official APIs and while significant parts of the UDC do lend
themselves to reuse--without other use cases to base development
on--reuse has been on our minds, but has not been a particular focus.
This is going to be a focus for after the Ganymede release at the end of
June.

Your involvement in, at least, defining what you need the UDC to do for
you would be helpful.

We can discuss in this forum if you'd like, or you can create bug
reports in Eclipse bugzilla. Or both.

Thanks,

Wayne

On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I've been told that this is the right place to post my question.
>
> I am really interested in using the Usage Data Collector in own RCP
> applications in order to see how user interact with my
> application/plugins. Is this basically possible? Is there any "how to"
> site where I can read how to include this tool in own applications, how to
> set the server destination for usage files and how to generate reports?
>
> It would be really great if someone could give me an advice.
>
> Thanks in advance,
> Eugen Reiswich
>
Re: UDC in own RCP applications [message #9139 is a reply to message #9058] Wed, 25 June 2008 09:05 Go to previous messageGo to next message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Wayne Beaton wrote:

> ...
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.

> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.

> Thanks,

> Wayne

Thanks Markus, thanks Wayne for your help.

I was now able to start UDC from the command line and had a look at the
recorded data. What we are basically trying to track are the items below:
- which bundles, perspectives, views, toolbar, menu commands etc. has a
user used
- how long has a user been working within a view, editor, perspective etc.
- which widgets (buttons, combobox, text field) has the user clicked in an
editor, view in what sequence
- which server side services have been accessed

Most of the items above have been tracked by UDC but the information
provided was sometimes insufficient. So it would be really great to have
the possibility to extend UDC (e.g. using an extension point) and provide
UDC with own tracking information (e.g. UDCtracker.track("this string will
contain my usage data") ).

Regards,
Eugen
Re: UDC in own RCP applications [message #9159 is a reply to message #9139] Wed, 25 June 2008 09:38 Go to previous messageGo to next message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Today I was able to get the UsageDataService and record my own commands.
However I had some "discouraged access warnings" which I ignored. Is this
a proper way to use the service?

this.tracker = new ServiceTracker(Activator.getContext(),
UsageDataService.class.getName(), null);
this.tracker.open();

usageService = (UsageDataService) this.tracker.getService();
Assert.isNotNull(usageService);

this.usageService.startMonitoring();

Regards,
Eugen
Re: UDC in own RCP applications [message #9730 is a reply to message #9159] Thu, 03 July 2008 22:43 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
Sorry for the delay in responding.

The warnings are due to the fact that none of the UDC is currently
exposed as APIs. The PDE is warning you of this.

You shouldn't have to tell the UsageDataService to start monitoring. It
should already be monitoring if you can obtain it.

Wayne

On Wed, 2008-06-25 at 09:38 +0000, Eugen Reiswich wrote:
> Today I was able to get the UsageDataService and record my own commands.
> However I had some "discouraged access warnings" which I ignored. Is this
> a proper way to use the service?
>
> this.tracker = new ServiceTracker(Activator.getContext(),
> UsageDataService.class.getName(), null);
> this.tracker.open();
>
> usageService = (UsageDataService) this.tracker.getService();
> Assert.isNotNull(usageService);
>
> this.usageService.startMonitoring();
>
> Regards,
> Eugen
>
Re: UDC in own RCP applications [message #9773 is a reply to message #9730] Thu, 10 July 2008 10:46 Go to previous messageGo to next message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Hi folks,

I'm still in struggle with Usage Data Collector and try to get it running
in my RCP application.

1. First question I have is how to change the upload URL for the recorded
data? I need to upload the results to our server and not to the eclipse
server! After spending hours and hours I've found out that there might be
a way to use the UploadManager and change the System.property
"org.eclipse.epp.usagedata.recording.upload-url" and set it to an own url.
However this doesn't work for me because somehow the stored upload files
are deleted as soon as I start the UploadManager and before the file
transfer is finished:
UploadManager uploadManager = new UploadManager();
uploadManager.startUpload();

2. What sense do the recorded files have? There is one usagedata.cvs and
several uploadxx.cvs files. But I don't get the sense of these files.
Sometimes a new upload.cvs file is created when I start my RCP application
and sometimes not. And even sometimes files are deleted when I quit my
application.

As you can see I'm already desperate and my nerves are row. So any help
would be really, really appreciated!

Regards,
Eugen
Re: UDC in own RCP applications [message #9796 is a reply to message #9773] Sat, 12 July 2008 02:24 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
On Thu, 2008-07-10 at 10:46 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I'm still in struggle with Usage Data Collector and try to get it running
> in my RCP application.
>
> 1. First question I have is how to change the upload URL for the recorded
> data? I need to upload the results to our server and not to the eclipse
> server! After spending hours and hours I've found out that there might be
> a way to use the UploadManager and change the System.property
> "org.eclipse.epp.usagedata.recording.upload-url" and set it to an own url.
> However this doesn't work for me because somehow the stored upload files
> are deleted as soon as I start the UploadManager and before the file
> transfer is finished:
> UploadManager uploadManager = new UploadManager();
> uploadManager.startUpload();
>

The system property works. I've been using for testing. In fact, one of
the JUnit tests uses it.

The files should not be deleted until after the upload returns a success
(200) code. I'm not sure how this could be happening. Could it be that
your server is returning a 200 code and the UDC is just doing what it's
supposed to do?

> 2. What sense do the recorded files have? There is one usagedata.cvs and
> several uploadxx.cvs files. But I don't get the sense of these files.
> Sometimes a new upload.cvs file is created when I start my RCP application
> and sometimes not. And even sometimes files are deleted when I quit my
> application.

The usagedata.cvs is the file that data is captured into. Once this file
gets to a particular size, or it is otherwise determined that it is time
to start an upload, the file is renamed to uploadxxx.cvs. The
usagedata.cvs is not created until it is needed. The UDC caches 25 (by
default) events before it creates the file and starts writing. Maybe
this is what you're seeing.

These files should only be deleted after an upload. There's no code in
the UDC that deletes theses files in any other case.

>
> As you can see I'm already desperate and my nerves are row. So any help
> would be really, really appreciated!

I'm sorry for the frustration. I wrestled with how to specify the URL in
a generic way, but couldn't come up with a good answer. Clearly, more
thought is required.

I see the "recording" plug-in as something that is particular to the
Eclipse Foundation's use of the UDC. There are some useful bits in there
that need to be factored out to make them reusable. Perhaps the first
bit of refactorable technology is the BasicUploader class.
Unfortunately, I won't be able to look at this until next week sometime.

Clearly it's time to start thinking about what parts of the UDC should
be API. The BasicUploader is an obvious target.
>
> Regards,
> Eugen
>
Re: UDC in own RCP applications [message #9840 is a reply to message #9796] Wed, 16 July 2008 12:34 Go to previous messageGo to next message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Hi Wayne,

thanks for such a detailed reply. I have now written my own upload manager
and everything works fine.

Just one more question. As I could see on the site:
http://www.eclipse.org/org/usagedata/results.php

someone has already put a lot of work in generating reports of the
collected data. Is this report generator open source? If yes is there a
possibility to get this generator?

Cheers,
Eugen
Re: UDC in own RCP applications [message #9906 is a reply to message #9058] Fri, 22 August 2008 09:04 Go to previous messageGo to next message
Eclipse User
Originally posted by: mario.winterer.gmx.net

Hi!

I think, UDC is a very great thing and very useful for every kind of RCP
application!
I'm currently working on integrating UDC in our RCP application - simply
adding the required UDC plugins and specifying the upload-server-url via
system property seems to work fine!
Unfortunately, I couldn't figure out how to handle the upload request on
the server side. I'v installed tomcat web server and wrote a simple
servlet that dumps the request information into a text file, but the
request body always seems to be empty and the content-length header
field is -1 too.

Does anybody have experience with reading the UDC request using the Java
Servlet API?

Thanks,
Mario


Wayne Beaton schrieb:
> The short answer is yes, you can use the UDC in your own RCP
> applications. However, the current incarnation of the UDC doesn't expose
> any official APIs and while significant parts of the UDC do lend
> themselves to reuse--without other use cases to base development
> on--reuse has been on our minds, but has not been a particular focus.
> This is going to be a focus for after the Ganymede release at the end of
> June.
>
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.
>
> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.
>
> Thanks,
>
> Wayne
>
> On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
>> Hi folks,
>>
>> I've been told that this is the right place to post my question.
>>
>> I am really interested in using the Usage Data Collector in own RCP
>> applications in order to see how user interact with my
>> application/plugins. Is this basically possible? Is there any "how to"
>> site where I can read how to include this tool in own applications, how to
>> set the server destination for usage files and how to generate reports?
>>
>> It would be really great if someone could give me an advice.
>>
>> Thanks in advance,
>> Eugen Reiswich
>>
>
Re: UDC in own RCP applications [message #9928 is a reply to message #9906] Tue, 26 August 2008 18:26 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
The upload is done via Multi parts (the UDC data is in one or more files
that uploaded as attachments). I don't think that the standard servlet
API handles this well. I believe that the Apache Jakarta project has
code that handles multi parts.

I think this link might help (I found it have only a cursory search).

http://commons.apache.org/fileupload/

Wayne

On Fri, 2008-08-22 at 11:04 +0200, Mario Winterer wrote:
> Hi!
>
> I think, UDC is a very great thing and very useful for every kind of RCP
> application!
> I'm currently working on integrating UDC in our RCP application - simply
> adding the required UDC plugins and specifying the upload-server-url via
> system property seems to work fine!
> Unfortunately, I couldn't figure out how to handle the upload request on
> the server side. I'v installed tomcat web server and wrote a simple
> servlet that dumps the request information into a text file, but the
> request body always seems to be empty and the content-length header
> field is -1 too.
>
> Does anybody have experience with reading the UDC request using the Java
> Servlet API?
>
> Thanks,
> Mario
Re: UDC in own RCP applications [message #9950 is a reply to message #9928] Tue, 26 August 2008 18:34 Go to previous messageGo to next message
Eclipse User
Originally posted by: mario.winterer.gmx.net

Wayne,

thanks for your response. I've already tried apache's common fileupload
library - unfortunately it didn't work either. But maybe I did something
wrong, I've just copied the simple tutorial example...

I'll keep trying.

Mario

Wayne Beaton schrieb:
> The upload is done via Multi parts (the UDC data is in one or more files
> that uploaded as attachments). I don't think that the standard servlet
> API handles this well. I believe that the Apache Jakarta project has
> code that handles multi parts.
>
> I think this link might help (I found it have only a cursory search).
>
> http://commons.apache.org/fileupload/
>
> Wayne
>
> On Fri, 2008-08-22 at 11:04 +0200, Mario Winterer wrote:
>> Hi!
>>
>> I think, UDC is a very great thing and very useful for every kind of RCP
>> application!
>> I'm currently working on integrating UDC in our RCP application - simply
>> adding the required UDC plugins and specifying the upload-server-url via
>> system property seems to work fine!
>> Unfortunately, I couldn't figure out how to handle the upload request on
>> the server side. I'v installed tomcat web server and wrote a simple
>> servlet that dumps the request information into a text file, but the
>> request body always seems to be empty and the content-length header
>> field is -1 too.
>>
>> Does anybody have experience with reading the UDC request using the Java
>> Servlet API?
>>
>> Thanks,
>> Mario
>
Re: UDC in own RCP applications [message #10996 is a reply to message #9840] Mon, 17 November 2008 10:33 Go to previous message
S.Srilakshmi is currently offline S.Srilakshmi
Messages: 2
Registered: July 2009
Junior Member
Hi Eugen,

Can u share the Upload Manager u created?

Thanks
S.Srilakshmi
Re: UDC in own RCP applications [message #577357 is a reply to message #9016] Fri, 20 June 2008 08:26 Go to previous message
Markus Knauer is currently offline Markus Knauer
Messages: 109
Registered: July 2009
Senior Member

A good starting point is the main web page of the UDC (client side):
http://www.eclipse.org/epp/usagedata/index.php

There is a technical FAQ (http://www.eclipse.org/epp/usagedata/faq.php) and
a project set file (http://www.eclipse.org/epp/usagedata/UsageData.psf)
that allows you to easily add the code to your workspace.

Feel free to ask more questions, if not everything is answered in the FAQ.

Thanks and regards,
Markus


Eugen Reiswich wrote:

> Hi folks,
>
> I've been told that this is the right place to post my question.
>
> I am really interested in using the Usage Data Collector in own RCP
> applications in order to see how user interact with my
> application/plugins. Is this basically possible? Is there any "how to"
> site where I can read how to include this tool in own applications, how to
> set the server destination for usage files and how to generate reports?
>
> It would be really great if someone could give me an advice.
>
> Thanks in advance,
> Eugen Reiswich


--
Markus Knauer

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: UDC in own RCP applications [message #577378 is a reply to message #9016] Fri, 20 June 2008 14:55 Go to previous message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
The short answer is yes, you can use the UDC in your own RCP
applications. However, the current incarnation of the UDC doesn't expose
any official APIs and while significant parts of the UDC do lend
themselves to reuse--without other use cases to base development
on--reuse has been on our minds, but has not been a particular focus.
This is going to be a focus for after the Ganymede release at the end of
June.

Your involvement in, at least, defining what you need the UDC to do for
you would be helpful.

We can discuss in this forum if you'd like, or you can create bug
reports in Eclipse bugzilla. Or both.

Thanks,

Wayne

On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I've been told that this is the right place to post my question.
>
> I am really interested in using the Usage Data Collector in own RCP
> applications in order to see how user interact with my
> application/plugins. Is this basically possible? Is there any "how to"
> site where I can read how to include this tool in own applications, how to
> set the server destination for usage files and how to generate reports?
>
> It would be really great if someone could give me an advice.
>
> Thanks in advance,
> Eugen Reiswich
>
Re: UDC in own RCP applications [message #577460 is a reply to message #9058] Wed, 25 June 2008 09:05 Go to previous message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Wayne Beaton wrote:

> ...
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.

> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.

> Thanks,

> Wayne

Thanks Markus, thanks Wayne for your help.

I was now able to start UDC from the command line and had a look at the
recorded data. What we are basically trying to track are the items below:
- which bundles, perspectives, views, toolbar, menu commands etc. has a
user used
- how long has a user been working within a view, editor, perspective etc.
- which widgets (buttons, combobox, text field) has the user clicked in an
editor, view in what sequence
- which server side services have been accessed

Most of the items above have been tracked by UDC but the information
provided was sometimes insufficient. So it would be really great to have
the possibility to extend UDC (e.g. using an extension point) and provide
UDC with own tracking information (e.g. UDCtracker.track("this string will
contain my usage data") ).

Regards,
Eugen
Re: UDC in own RCP applications [message #577473 is a reply to message #9139] Wed, 25 June 2008 09:38 Go to previous message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Today I was able to get the UsageDataService and record my own commands.
However I had some "discouraged access warnings" which I ignored. Is this
a proper way to use the service?

this.tracker = new ServiceTracker(Activator.getContext(),
UsageDataService.class.getName(), null);
this.tracker.open();

usageService = (UsageDataService) this.tracker.getService();
Assert.isNotNull(usageService);

this.usageService.startMonitoring();

Regards,
Eugen
Re: UDC in own RCP applications [message #577566 is a reply to message #9159] Thu, 03 July 2008 22:43 Go to previous message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
Sorry for the delay in responding.

The warnings are due to the fact that none of the UDC is currently
exposed as APIs. The PDE is warning you of this.

You shouldn't have to tell the UsageDataService to start monitoring. It
should already be monitoring if you can obtain it.

Wayne

On Wed, 2008-06-25 at 09:38 +0000, Eugen Reiswich wrote:
> Today I was able to get the UsageDataService and record my own commands.
> However I had some "discouraged access warnings" which I ignored. Is this
> a proper way to use the service?
>
> this.tracker = new ServiceTracker(Activator.getContext(),
> UsageDataService.class.getName(), null);
> this.tracker.open();
>
> usageService = (UsageDataService) this.tracker.getService();
> Assert.isNotNull(usageService);
>
> this.usageService.startMonitoring();
>
> Regards,
> Eugen
>
Re: UDC in own RCP applications [message #577603 is a reply to message #9730] Thu, 10 July 2008 10:46 Go to previous message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Hi folks,

I'm still in struggle with Usage Data Collector and try to get it running
in my RCP application.

1. First question I have is how to change the upload URL for the recorded
data? I need to upload the results to our server and not to the eclipse
server! After spending hours and hours I've found out that there might be
a way to use the UploadManager and change the System.property
"org.eclipse.epp.usagedata.recording.upload-url" and set it to an own url.
However this doesn't work for me because somehow the stored upload files
are deleted as soon as I start the UploadManager and before the file
transfer is finished:
UploadManager uploadManager = new UploadManager();
uploadManager.startUpload();

2. What sense do the recorded files have? There is one usagedata.cvs and
several uploadxx.cvs files. But I don't get the sense of these files.
Sometimes a new upload.cvs file is created when I start my RCP application
and sometimes not. And even sometimes files are deleted when I quit my
application.

As you can see I'm already desperate and my nerves are row. So any help
would be really, really appreciated!

Regards,
Eugen
Re: UDC in own RCP applications [message #577619 is a reply to message #9773] Sat, 12 July 2008 02:24 Go to previous message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
On Thu, 2008-07-10 at 10:46 +0000, Eugen Reiswich wrote:
> Hi folks,
>
> I'm still in struggle with Usage Data Collector and try to get it running
> in my RCP application.
>
> 1. First question I have is how to change the upload URL for the recorded
> data? I need to upload the results to our server and not to the eclipse
> server! After spending hours and hours I've found out that there might be
> a way to use the UploadManager and change the System.property
> "org.eclipse.epp.usagedata.recording.upload-url" and set it to an own url.
> However this doesn't work for me because somehow the stored upload files
> are deleted as soon as I start the UploadManager and before the file
> transfer is finished:
> UploadManager uploadManager = new UploadManager();
> uploadManager.startUpload();
>

The system property works. I've been using for testing. In fact, one of
the JUnit tests uses it.

The files should not be deleted until after the upload returns a success
(200) code. I'm not sure how this could be happening. Could it be that
your server is returning a 200 code and the UDC is just doing what it's
supposed to do?

> 2. What sense do the recorded files have? There is one usagedata.cvs and
> several uploadxx.cvs files. But I don't get the sense of these files.
> Sometimes a new upload.cvs file is created when I start my RCP application
> and sometimes not. And even sometimes files are deleted when I quit my
> application.

The usagedata.cvs is the file that data is captured into. Once this file
gets to a particular size, or it is otherwise determined that it is time
to start an upload, the file is renamed to uploadxxx.cvs. The
usagedata.cvs is not created until it is needed. The UDC caches 25 (by
default) events before it creates the file and starts writing. Maybe
this is what you're seeing.

These files should only be deleted after an upload. There's no code in
the UDC that deletes theses files in any other case.

>
> As you can see I'm already desperate and my nerves are row. So any help
> would be really, really appreciated!

I'm sorry for the frustration. I wrestled with how to specify the URL in
a generic way, but couldn't come up with a good answer. Clearly, more
thought is required.

I see the "recording" plug-in as something that is particular to the
Eclipse Foundation's use of the UDC. There are some useful bits in there
that need to be factored out to make them reusable. Perhaps the first
bit of refactorable technology is the BasicUploader class.
Unfortunately, I won't be able to look at this until next week sometime.

Clearly it's time to start thinking about what parts of the UDC should
be API. The BasicUploader is an obvious target.
>
> Regards,
> Eugen
>
Re: UDC in own RCP applications [message #577651 is a reply to message #9796] Wed, 16 July 2008 12:34 Go to previous message
Eugen Reiswich is currently offline Eugen Reiswich
Messages: 35
Registered: July 2009
Member
Hi Wayne,

thanks for such a detailed reply. I have now written my own upload manager
and everything works fine.

Just one more question. As I could see on the site:
http://www.eclipse.org/org/usagedata/results.php

someone has already put a lot of work in generating reports of the
collected data. Is this report generator open source? If yes is there a
possibility to get this generator?

Cheers,
Eugen
Re: UDC in own RCP applications [message #577713 is a reply to message #9058] Fri, 22 August 2008 09:04 Go to previous message
Mario Winterer is currently offline Mario Winterer
Messages: 136
Registered: July 2009
Senior Member
Hi!

I think, UDC is a very great thing and very useful for every kind of RCP
application!
I'm currently working on integrating UDC in our RCP application - simply
adding the required UDC plugins and specifying the upload-server-url via
system property seems to work fine!
Unfortunately, I couldn't figure out how to handle the upload request on
the server side. I'v installed tomcat web server and wrote a simple
servlet that dumps the request information into a text file, but the
request body always seems to be empty and the content-length header
field is -1 too.

Does anybody have experience with reading the UDC request using the Java
Servlet API?

Thanks,
Mario


Wayne Beaton schrieb:
> The short answer is yes, you can use the UDC in your own RCP
> applications. However, the current incarnation of the UDC doesn't expose
> any official APIs and while significant parts of the UDC do lend
> themselves to reuse--without other use cases to base development
> on--reuse has been on our minds, but has not been a particular focus.
> This is going to be a focus for after the Ganymede release at the end of
> June.
>
> Your involvement in, at least, defining what you need the UDC to do for
> you would be helpful.
>
> We can discuss in this forum if you'd like, or you can create bug
> reports in Eclipse bugzilla. Or both.
>
> Thanks,
>
> Wayne
>
> On Thu, 2008-06-19 at 11:38 +0000, Eugen Reiswich wrote:
>> Hi folks,
>>
>> I've been told that this is the right place to post my question.
>>
>> I am really interested in using the Usage Data Collector in own RCP
>> applications in order to see how user interact with my
>> application/plugins. Is this basically possible? Is there any "how to"
>> site where I can read how to include this tool in own applications, how to
>> set the server destination for usage files and how to generate reports?
>>
>> It would be really great if someone could give me an advice.
>>
>> Thanks in advance,
>> Eugen Reiswich
>>
>
Re: UDC in own RCP applications [message #577725 is a reply to message #9906] Tue, 26 August 2008 18:26 Go to previous message
Wayne Beaton is currently offline Wayne Beaton
Messages: 499
Registered: July 2009
Senior Member
The upload is done via Multi parts (the UDC data is in one or more files
that uploaded as attachments). I don't think that the standard servlet
API handles this well. I believe that the Apache Jakarta project has
code that handles multi parts.

I think this link might help (I found it have only a cursory search).

http://commons.apache.org/fileupload/

Wayne

On Fri, 2008-08-22 at 11:04 +0200, Mario Winterer wrote:
> Hi!
>
> I think, UDC is a very great thing and very useful for every kind of RCP
> application!
> I'm currently working on integrating UDC in our RCP application - simply
> adding the required UDC plugins and specifying the upload-server-url via
> system property seems to work fine!
> Unfortunately, I couldn't figure out how to handle the upload request on
> the server side. I'v installed tomcat web server and wrote a simple
> servlet that dumps the request information into a text file, but the
> request body always seems to be empty and the content-length header
> field is -1 too.
>
> Does anybody have experience with reading the UDC request using the Java
> Servlet API?
>
> Thanks,
> Mario
Re: UDC in own RCP applications [message #577785 is a reply to message #9928] Tue, 26 August 2008 18:34 Go to previous message
Mario Winterer is currently offline Mario Winterer
Messages: 136
Registered: July 2009
Senior Member
Wayne,

thanks for your response. I've already tried apache's common fileupload
library - unfortunately it didn't work either. But maybe I did something
wrong, I've just copied the simple tutorial example...

I'll keep trying.

Mario

Wayne Beaton schrieb:
> The upload is done via Multi parts (the UDC data is in one or more files
> that uploaded as attachments). I don't think that the standard servlet
> API handles this well. I believe that the Apache Jakarta project has
> code that handles multi parts.
>
> I think this link might help (I found it have only a cursory search).
>
> http://commons.apache.org/fileupload/
>
> Wayne
>
> On Fri, 2008-08-22 at 11:04 +0200, Mario Winterer wrote:
>> Hi!
>>
>> I think, UDC is a very great thing and very useful for every kind of RCP
>> application!
>> I'm currently working on integrating UDC in our RCP application - simply
>> adding the required UDC plugins and specifying the upload-server-url via
>> system property seems to work fine!
>> Unfortunately, I couldn't figure out how to handle the upload request on
>> the server side. I'v installed tomcat web server and wrote a simple
>> servlet that dumps the request information into a text file, but the
>> request body always seems to be empty and the content-length header
>> field is -1 too.
>>
>> Does anybody have experience with reading the UDC request using the Java
>> Servlet API?
>>
>> Thanks,
>> Mario
>
Re: UDC in own RCP applications [message #578366 is a reply to message #9840] Mon, 17 November 2008 10:33 Go to previous message
S.Srilakshmi is currently offline S.Srilakshmi
Messages: 2
Registered: July 2009
Junior Member
Hi Eugen,

Can u share the Upload Manager u created?

Thanks
S.Srilakshmi
Previous Topic:EPP Installer
Next Topic:UDC in my RCP
Goto Forum:
  


Current Time: Thu Oct 02 06:46:26 GMT 2014

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

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