You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by Rene' Rosenbaum <re...@meecoda.de> on 2014/02/10 17:20:42 UTC

How to register servlet controller

Hi all,
OM2.? provides a user dialog to initiate recording and screensharing. My 
goal is to separate these two functionalities in two different user 
dialogs. To achieve this, I've pretty much "copy'n paste"d the code from 
the original dialog. Works pretty well, except that my own servelet 
controller/service is not made available (404 ... _The requested 
resource is not available._). This controller "RecordController" is 
basically a copy of ScreenController 
(/trunk/src/org/apache/openmeetings/servlet/outputhandler) with the 
difference that the request value is "@RequestMapping(value = 
"/screen.record")" (instead of "*/screen.upload"). I guess I have to 
register the new ressource/servlet somewhere, but was not able to figure 
out where. Searching for "screen.upload" did not lead to the expected 
location for the configuration. Pretty much lost right now. Has someone 
else already worked on servlets and may help me here?
Many thanks in advance,
Rene'
-- 

~~~~~~~
*Dr.-Ing. Rene' Rosenbaum
meeCoda^IT  *  - Consulting and Services
  ~: Neue Reihe 15, 18182 Goorstorf, Germany
  #: ++49-(0)-1781408041
  @:info@meecoda.de  <ma...@meecoda.de>
//:www.meecoda.de  <http://www.meecoda.de>
~~~~~~~~~~~~~~ +++ ~~~~~~~~~~~~~~~~


Re: How to register servlet controller

Posted by Rene' Rosenbaum <re...@meecoda.de>.
Hi Maxime,
I've already added a link in the client to call/initiate the recording. 
This works pretty well till the servlet is called (traced in Debug mode).
May you be more precise where and what to add in the 
ScreenController.java? Actually, I don't understand why to add a 
different mapping annotation in ScreenController.java. I've created a 
copy of ScreenController.java (RecorderController.java) and modified the 
code so that there is a different mapping annotation ("screen.record") 
already. However, when I call this one, it can't be accessed (see prior 
posting). Where in the system the original mapping annotation 
("screen.upload") in ScreenController.java is enabled? Or is it found 
and enabled by the system automatically. Then, I don't understand why my 
1:1 copy (I adapted the class name etc., of course) with the slightly 
different mapping is not found.
Thanks, Maxime! Appreciate your prompt support, as always.
Cheers,
Rene'

~~~~~~~
*Dr.-Ing. Rene' Rosenbaum
meeCoda^IT  *  - Consulting and Services
  ~: Neue Reihe 15, 18182 Goorstorf, Germany
  #: ++49-(0)-1781408041
  @:info@meecoda.de  <ma...@meecoda.de>
//:www.meecoda.de  <http://www.meecoda.de>
~~~~~~~~~~~~~~ +++ ~~~~~~~~~~~~~~~~

On 2/11/2014 11:04 AM, Maxim Solodovnik wrote:
> You need to add additional method with Mapping annotation
> to ScreenController.java
> And a link somewhere in the client
>
>
> On Mon, Feb 10, 2014 at 11:20 PM, Rene' Rosenbaum <re...@meecoda.de> wrote:
>
>> Hi all,
>> OM2.? provides a user dialog to initiate recording and screensharing. My
>> goal is to separate these two functionalities in two different user
>> dialogs. To achieve this, I've pretty much "copy'n paste"d the code from
>> the original dialog. Works pretty well, except that my own servelet
>> controller/service is not made available (404 ... _The requested resource
>> is not available._). This controller "RecordController" is basically a copy
>> of ScreenController (/trunk/src/org/apache/openmeetings/servlet/outputhandler)
>> with the difference that the request value is "@RequestMapping(value =
>> "/screen.record")" (instead of "*/screen.upload"). I guess I have to
>> register the new ressource/servlet somewhere, but was not able to figure
>> out where. Searching for "screen.upload" did not lead to the expected
>> location for the configuration. Pretty much lost right now. Has someone
>> else already worked on servlets and may help me here?
>> Many thanks in advance,
>> Rene'
>> --
>>
>> ~~~~~~~
>> *Dr.-Ing. Rene' Rosenbaum
>> meeCoda^IT  *  - Consulting and Services
>>   ~: Neue Reihe 15, 18182 Goorstorf, Germany
>>   #: ++49-(0)-1781408041
>>   @:info@meecoda.de  <ma...@meecoda.de>
>> //:www.meecoda.de  <http://www.meecoda.de>
>> ~~~~~~~~~~~~~~ +++ ~~~~~~~~~~~~~~~~
>>
>>
>


Re: How to register servlet controller

Posted by Maxim Solodovnik <so...@gmail.com>.
You need to add additional method with Mapping annotation
to ScreenController.java
And a link somewhere in the client


On Mon, Feb 10, 2014 at 11:20 PM, Rene' Rosenbaum <re...@meecoda.de> wrote:

> Hi all,
> OM2.? provides a user dialog to initiate recording and screensharing. My
> goal is to separate these two functionalities in two different user
> dialogs. To achieve this, I've pretty much "copy'n paste"d the code from
> the original dialog. Works pretty well, except that my own servelet
> controller/service is not made available (404 ... _The requested resource
> is not available._). This controller "RecordController" is basically a copy
> of ScreenController (/trunk/src/org/apache/openmeetings/servlet/outputhandler)
> with the difference that the request value is "@RequestMapping(value =
> "/screen.record")" (instead of "*/screen.upload"). I guess I have to
> register the new ressource/servlet somewhere, but was not able to figure
> out where. Searching for "screen.upload" did not lead to the expected
> location for the configuration. Pretty much lost right now. Has someone
> else already worked on servlets and may help me here?
> Many thanks in advance,
> Rene'
> --
>
> ~~~~~~~
> *Dr.-Ing. Rene' Rosenbaum
> meeCoda^IT  *  - Consulting and Services
>  ~: Neue Reihe 15, 18182 Goorstorf, Germany
>  #: ++49-(0)-1781408041
>  @:info@meecoda.de  <ma...@meecoda.de>
> //:www.meecoda.de  <http://www.meecoda.de>
> ~~~~~~~~~~~~~~ +++ ~~~~~~~~~~~~~~~~
>
>


-- 
WBR
Maxim aka solomax