On Mar 11, 2013, at 5:50 PM, Mark Thomas wrote:

> On 11/03/2013 22:38, Nick Williams wrote:
>> However, I do still have the original question: Will I always need to
>> use a listener to add my endpoints programmatically like I did below?
>> Or will Tomcat eventually scan for endpoints? The examples
>> downloadable from the GlassFish project "just work" ... there is no
>> listener or call to ServerContainerProvider.getServerContainer(). Not
>> sure if that's GlassFish doing something special that's not in the
>> spec, or if the Tomcat implementation just doesn't have this feature
>> yet.
> 
> The SCI should be scanning for them already.
> 

My endpoint class was not get recognized/instantiated. I had a breakpoint in 
the constructor and I never hit it. Only when I added the listener that called 
addEndpoint(EchoEndpoint.class) did it start getting instantiated (and I 
started hitting the breakpoint and being able to call the endpoint). However, I 
have now deleted the listener, and the endpoint is still getting instantiated. 
I'm very confused. I didn't change a line of code in the endpoint. It's exactly 
like it was before, when it wasn't getting instantiated. *scratches head*

I'm going crazy over here…

Oh, well. It least it's working.

N
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to