Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Extension point to get control when Run on Server invoked?
Extension point to get control when Run on Server invoked? [message #214537] Thu, 29 May 2008 15:02 Go to next message
Eclipse User
Originally posted by: david_whiteman.us.ibm.com

Hi,

I would like to know if there is some sort of extension point available
by which I can have custom code invoked when the user selects "Run on
Server" on a dynamic web project. We would like to get control at that
point for projects that were built using our facets, so we can perform
special processing.

Thanks in advance,
David
Re: Extension point to get control when Run on Server invoked? [message #214974 is a reply to message #214537] Fri, 06 June 2008 14:09 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
David Whiteman wrote:
> Hi,
>
> I would like to know if there is some sort of extension point available
> by which I can have custom code invoked when the user selects "Run on
> Server" on a dynamic web project. We would like to get control at that
> point for projects that were built using our facets, so we can perform
> special processing.
>
> Thanks in advance,
> David

Does anyone have any ideas with this? Is there any way we can provide
code that gets control when the user selects run on server on projects
built using our facets?

Thanks!
Re: Extension point to get control when Run on Server invoked? [message #214976 is a reply to message #214974] Fri, 06 June 2008 16:00 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
David Whiteman wrote:
> David Whiteman wrote:
>> Hi,
>>
>> I would like to know if there is some sort of extension point
>> available by which I can have custom code invoked when the user
>> selects "Run on Server" on a dynamic web project. We would like to
>> get control at that point for projects that were built using our
>> facets, so we can perform special processing.
>>
>> Thanks in advance,
>> David
>
> Does anyone have any ideas with this? Is there any way we can provide
> code that gets control when the user selects run on server on projects
> built using our facets?
>
> Thanks!

The reason I want this is that I would like to get the EPR of a web
service that I have deployed and pass it as an argument to another
program that will help the developer perform testing.
Re: Extension point to get control when Run on Server invoked? [message #214981 is a reply to message #214976] Fri, 06 June 2008 21:33 Go to previous messageGo to next message
Eclipse User
Originally posted by: dcarver.starstandard.org

You'll
David Whiteman wrote:
> David Whiteman wrote:
>
> The reason I want this is that I would like to get the EPR of a web
> service that I have deployed and pass it as an argument to another
> program that will help the developer perform testing.

You might want to check out the Web Tools Server Adapter API and
Extension points. You might be able to get something from there. Also
I believe the Eclipse Web Tools book, does have a chapter about the
server adapters and extension points.
Re: Extension point to get control when Run on Server invoked? [message #214984 is a reply to message #214981] Sun, 08 June 2008 13:05 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
David Carver wrote:
> You'll
> David Whiteman wrote:
>> David Whiteman wrote:
>>
>> The reason I want this is that I would like to get the EPR of a web
>> service that I have deployed and pass it as an argument to another
>> program that will help the developer perform testing.
>
> You might want to check out the Web Tools Server Adapter API and
> Extension points. You might be able to get something from there. Also
> I believe the Eclipse Web Tools book, does have a chapter about the
> server adapters and extension points.

I'm finding the docs hard to use, and I don't have the Web Tools book,
unfortunately. It looks like the launchableAdapters extension point
*might* be what I'm looking for, and it appears this is part of the
org.eclipse.wst.server.core plugin, but when I add that plugin as a
dependency of my plugin, and try to add that extension point, it doesn't
seem to be complete... i.e. there is no extension point schema and I
can't add set the class attribute via the UI. I'm using the 3.4 RC2 build.

Thanks,
David
Re: Extension point to get control when Run on Server invoked? [message #214989 is a reply to message #214984] Sun, 08 June 2008 19:06 Go to previous messageGo to next message
Eclipse User
Originally posted by: dcarver.starstandard.org

> I'm finding the docs hard to use, and I don't have the Web Tools book,
> unfortunately. It looks like the launchableAdapters extension point
> *might* be what I'm looking for, and it appears this is part of the
> org.eclipse.wst.server.core plugin, but when I add that plugin as a
> dependency of my plugin, and try to add that extension point, it doesn't
> seem to be complete... i.e. there is no extension point schema and I
> can't add set the class attribute via the UI. I'm using the 3.4 RC2 build.

The extension point schema problem can happen when you aren't using the
SDK plugins to develop against.
Re: Extension point to get control when Run on Server invoked? [message #215000 is a reply to message #214989] Mon, 09 June 2008 11:10 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
David Carver wrote:
>
>> I'm finding the docs hard to use, and I don't have the Web Tools book,
>> unfortunately. It looks like the launchableAdapters extension point
>> *might* be what I'm looking for, and it appears this is part of the
>> org.eclipse.wst.server.core plugin, but when I add that plugin as a
>> dependency of my plugin, and try to add that extension point, it
>> doesn't seem to be complete... i.e. there is no extension point schema
>> and I can't add set the class attribute via the UI. I'm using the 3.4
>> RC2 build.
>
> The extension point schema problem can happen when you aren't using the
> SDK plugins to develop against.

Thanks, David. That probably affected the extension point UI. I went
ahead and added the extension point by hand in the plugin.xml.

However, it didn't do what I thought it would do. I created a class for
the launchable adapter delegate and put a breakpoint in getLaunchable().
Then I started the PDE, created a dynamic web project, and selected
Run on Server, my breakpoint was not triggered. None of the other
extension points looked close to what I wanted to accomplish. Is it
even possible to get control when Run on Server is selected?

David
Re: Extension point to get control when Run on Server invoked? [message #215068 is a reply to message #215000] Tue, 10 June 2008 16:04 Go to previous message
Eclipse User
Originally posted by: dcarver.starstandard.org

> However, it didn't do what I thought it would do. I created a class for
> the launchable adapter delegate and put a breakpoint in getLaunchable().
> Then I started the PDE, created a dynamic web project, and selected Run
> on Server, my breakpoint was not triggered. None of the other extension
> points looked close to what I wanted to accomplish. Is it even possible
> to get control when Run on Server is selected?

Not sure. You may have to create your own custom server by extending an
existing one in order to get the control you want.

Dave
Previous Topic:WTP UX Whiteboard
Next Topic:Get an Entity fields
Goto Forum:
  


Current Time: Wed Aug 20 06:47:39 EDT 2014

Powered by FUDForum. Page generated in 0.02102 seconds