[prev in list] [next in list] [prev in thread] [next in thread]
List: scout-dev
Subject: [jira] [Commented] (JUDDI-943) WebHelper class: Client name not set in servletContext after getUDDIC
From: "Matthieu Ghilain (JIRA)" <juddi-dev () ws ! apache ! org>
Date: 2015-11-17 8:21:11
Message-ID: JIRA.12913336.1447686483000.90615.1447748471117 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/JUDDI-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15008249#comment-15008249 \
]
Matthieu Ghilain commented on JUDDI-943:
----------------------------------------
I have only one configuration file it follows the default naming convention \
"uddi.xml", it is located in "resources/META-INF/uddi.xml". See below:
{code:xml}
<?xml version="1.0" encoding="ISO-8859-1" ?>
<uddi xmlns="urn:juddi-apache-org:v3_client">
<reloadDelay>5000</reloadDelay>
<client name="test-client">
<nodes>
<node isHomeJUDDI="true">
<!-- required 'default' node -->
<name>uddiv3</name>
<description>Main jUDDI node</description>
<properties>
<property name="serverName" value="localhost"/>
<property name="serverPort" value="8080"/>
<!-- for UDDI nodes that use HTTP u/p, using the following
<property name="basicAuthUsername" value="root" />
<property name="basicAuthPassword" value="password" />
<property name="basicAuthPasswordIsEncrypted" value="false" />
<property name="basicAuthPasswordCryptoProvider" \
value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />--> \
</properties> <!-- JAX-WS Transport -->
<proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
<custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer
</custodyTransferUrl>
<inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl>
<inquiryRESTUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiryRest/XML/getDetail
</inquiryRESTUrl>
<publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl>
<securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl>
<subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl>
<subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener
</subscriptionListenerUrl>
<juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api</juddiApiUrl>
<replicationUrl>http://${serverName}:${serverPort}/juddiv3/services/replication</replicationUrl>
</node>
</nodes>
<clerks registerOnStartup="true">
<!-- this is used for the subscription callback tests -->
<clerk name="uddiv3" node="uddiv3" publisher="uddiadmin" \
password="password" isPasswordEncrypted="false" cryptoProvider="">
<class>com.test.services.AutoRegisteredInJUDDIService</class>
</clerk>
</clerks>
</client>
</uddi>
{code}
> WebHelper class: Client name not set in servletContext after getUDDIClient is \
> called
> ------------------------------------------------------------------------------------
>
> Key: JUDDI-943
> URL: https://issues.apache.org/jira/browse/JUDDI-943
> Project: jUDDI
> Issue Type: Bug
> Components: juddi-client
> Affects Versions: 3.3.1
> Reporter: Matthieu Ghilain
>
> The client name is not set after the method: \
> WebHelper.getUDDIClient(servletContext) is called and it seems it should be. \
> Because the client name is not set a new UDDI client is returned each time the \
> method is called despite the same servletContext is passed. The problem is here \
> (from WebHelper class): {code}
> if (client.getName()!=null) {
> logger.info("Starting Client " + client.getName() + "...");
> } else {
> throw new ConfigurationException("A client name needs to be specified in the \
> client config file."); }
> {code}
> it should be according to me:
> {code}
> if (client.getName()!=null) {
> logger.info("Starting Client " + client.getName() + "...");
> clientName = client.getName();
> } else {
> throw new ConfigurationException("A client name needs to be specified in the client \
> config file."); }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic