You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Alex O'Ree (JIRA)" <ju...@ws.apache.org> on 2015/11/16 13:08:11 UTC
[jira] [Comment Edited] (JUDDI-942) Automatic instantiation of
UDDIClerkServlet
[ https://issues.apache.org/jira/browse/JUDDI-942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006580#comment-15006580 ]
Alex O'Ree edited comment on JUDDI-942 at 11/16/15 12:08 PM:
-------------------------------------------------------------
The example has the following...
<servlet>
<servlet-name>UDDIClerkServlet</servlet-name>
<display-name>Clerk Servlet</display-name>
<servlet-class>org.apache.juddi.v3.client.config.UDDIClerkServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
I'm assuming that the load-on-startup=1 flag should do what you're asking. Is it not working?
https://git-wip-us.apache.org/repos/asf?p=juddi.git;a=tree;f=juddi-examples/uddi-annotations;h=a9627d3bf3a3c12f504336d8f41ec57e393e36ae;hb=refs/heads/master
That should bring you to an example that auto starts up the servlet. It's where i got the above xml fragment from
was (Author: spyhunter99):
The example has the following...
<servlet>
<servlet-name>UDDIClerkServlet</servlet-name>
<display-name>Clerk Servlet</display-name>
<servlet-class>org.apache.juddi.v3.client.config.UDDIClerkServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
I'm assuming that the load-on-startup=1 flag should do what you're asking. Is it not working?
> Automatic instantiation of UDDIClerkServlet
> -------------------------------------------
>
> Key: JUDDI-942
> URL: https://issues.apache.org/jira/browse/JUDDI-942
> Project: jUDDI
> Issue Type: Improvement
> Components: juddi-client
> Affects Versions: 3.3.1
> Reporter: Matthieu Ghilain
>
> It would be useful to not have to instantiate manually the UDDIClerkServlet when running in a Servlet 3.0 env. Would it be possible to add a class implementing ServletContextListener which would instantiate automatically the UDDIClerkServlet?
> Therefore the registration of services would be done automatically by adding the JUDDI annotations on the web services classes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)