Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Registering Custom Service Handler
Registering Custom Service Handler [message #23520] Wed, 09 May 2007 06:15 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:A silly question
Next Topic:Extension point namespace change
Goto Forum:
  


Current Time: Thu May 08 03:24:38 EDT 2025

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

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

Back to the top