Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Registering Custom Service Handler
Registering Custom Service Handler [message #23520] Wed, 09 May 2007 10:15 Go to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
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 13: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: Fri Apr 19 06:14:05 GMT 2024

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

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

Back to the top