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.

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?

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.

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.

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.

> 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.

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?

> 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.