Registering Custom Service Handler [message #23520] |
Wed, 09 May 2007 06:15  |
Eclipse User |
|
|
|
Hello, where exactly have I to put servicehandler.xml file ?
I've tryed in: MyProject/
MyProyect/src
MyProyect/bin
etc, etc
I saw that code to look for servicehandler.xml files is in ServiceManager:
IResourceManager manager = ResourceManager.getInstance();
Enumeration resources = manager.getResources( SERVICEHANDLER_XML );
while( resources.hasMoreElements() ) {
...
...
}
But manager.getResources() never finds anything.
And other question (a concept doubt), Should this code work in a Custom
Service Handler ?
MessageDialog.openInformation(Display.getCurrent().getActive Shell(),
"Testing", "Hello everybody", null);
Thanks in advance.
Roberto.
|
|
|
Re: Registering Custom Service Handler [message #23607 is a reply to message #23520] |
Wed, 09 May 2007 09:39  |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
the servicehandler concept is a low level technic of the w4t core and will
not work out of the box within a workbench plug-in due to different
classloader namespaces. Simply said the servicehandler.xml in a application
bundle will not be found by the w4t core bundle. There is no need in RAP for
special servicehandlers since you can use a servlet that you register at the
http-registry provided by OSGi.
By the way the code snippet would not work anyway, since servicehandler
by-passes the RWT lifecycle and because of this no javascript response would
be created.
Ciao
Frank
"Roberto S
|
|
|
Powered by
FUDForum. Page generated in 0.04971 seconds