He explained that the update process: -
wsadmin> AdminTask.updateBlobConfig('[-clusterName BAMSR01.WebApp -propertyFileName "/opt/IBM/WebSphere/AppServer/profiles/BAMDMProfile/BusinessSpace/BAMSR01.WebApp/mm.runtime.prof/config/proxy-config.xml" -prefix "Mashups_"]')
actually updates resources.xml.
However, I wasn't 100% clear which specific file got updated.
This is how I checked: -
$ cd /opt/IBM/WebSphere/AppServer/profiles/BAMN1Profile/config/cells
$ ls -al `find . -name resources.xml`
-rw-r--r-- 1 wasadmin wasadmins 53144 Mar 4 14:18 ./BAMCELL/applications/commsvc.ear/deployments/commsvc/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 51832 Mar 4 14:18 ./BAMCELL/clusters/BAMSR01.AppTarget/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 135131 Mar 4 14:18 ./BAMCELL/clusters/BAMSR01.Messaging/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 120465 Mar 4 14:18 ./BAMCELL/clusters/BAMSR01.Support/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 855651 Mar 6 11:16 ./BAMCELL/clusters/BAMSR01.WebApp/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 51382 Mar 4 14:04 ./BAMCELL/nodes/BAMNODE1/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.AppTarget/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.Messaging/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.Support/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.WebApp/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 200966 Mar 4 14:14 ./BAMCELL/resources.xml
Note that I have highlighted the file that changed most recently.
$ view ./BAMCELL/clusters/BAMSR01.WebApp/resources.xml
…
<resourceProperties xmi:id="J2EEResourceProperty_1362406193149" name="proxy-config.xml" value="<?xml version="1.0" encoding="UTF-8"?><!-- ***************************************************************** --><!-- Licensed Materials - Property of IBM --><!-- 5724-L01, 5655-N53, 5724-I82, 5655-R15 --><!-- (C) Copyright IBM Corporation 2006, 2012. All rights reserved. --><!-- US Government Users Restricted Rights - Use, duplication or --><!-- disclosure restricted by GSA ADP Schedule Contract with --><!-- IBM Corp. --><!-- ***************************************************************** --><proxy:proxy-rules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:proxy="http://www.ibm.com/xmlns/prod/sw/ajax/proxy-config/1.1">	<proxy:mapping contextpath="/proxy/*"/> 	<proxy:policy url="endpoint://*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>			<proxy:method>POST</proxy:method>			<proxy:method>PUT</proxy:method>			<proxy:method>DELETE</proxy:method>		</proxy:actions>		<proxy:headers>			<proxy:header>Cache-Control</proxy:header>			<proxy:header>Pragma</proxy:header>			<proxy:header>User-Agent</proxy:header>			<proxy:header>Accept*</proxy:header>			<proxy:header>Content*</proxy:header>			<proxy:header>X-Method-Override</proxy:header>			<proxy:header>X-HTTP-Method-Override</proxy:header>			<proxy:header>If-Match</proxy:header>			<proxy:header>If-None-Match</proxy:header>			<proxy:header>If-Modified-Since</proxy:header>			<proxy:header>If-Unmodified-Since</proxy:header>			<proxy:header>Slug</proxy:header>			<proxy:header>SOAPAction</proxy:header>								</proxy:headers>		<proxy:cookies>			<proxy:cookie>LtpaToken</proxy:cookie>			<proxy:cookie>LtpaToken2</proxy:cookie> 			<proxy:cookie>JSESSIONID</proxy:cookie>					</proxy:cookies>	</proxy:policy>	<proxy:policy url="http://www.ibm.com/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>	<proxy:policy url="http://www-03.ibm.com/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>	<proxy:policy url="http://www.redbooks.ibm.com/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>		<proxy:policy url="http://www.google.com/ig/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>	 <proxy:mapping contextpath="/cognosProxy/*">	 <proxy:policy url="endpoint://*" acf="none" basic-auth-support="true">			<proxy:actions>				<proxy:method>GET</proxy:method>				<proxy:method>POST</proxy:method>				<proxy:method>PUT</proxy:method>				<proxy:method>DELETE</proxy:method>			</proxy:actions>			<proxy:headers>				<proxy:header>Cache-Control</proxy:header>				<proxy:header>Pragma</proxy:header>				<proxy:header>User-Agent</proxy:header>				<proxy:header>Accept*</proxy:header>				<proxy:header>Content*</proxy:header>				<proxy:header>X-Method-Override</proxy:header>				<proxy:header>X-HTTP-Method-Override</proxy:header>				<proxy:header>If-Match</proxy:header>				<proxy:header>If-None-Match</proxy:header>				<proxy:header>If-Modified-Since</proxy:header>				<proxy:header>If-Unmodified-Since</proxy:header>				<proxy:header>Slug</proxy:header>				<proxy:header>SOAPAction</proxy:header>						</proxy:headers>			<proxy:cookies>				<proxy:cookie>LtpaToken</proxy:cookie>				<proxy:cookie>LtpaToken2</proxy:cookie> 				<proxy:cookie>JSESSIONID</proxy:cookie>				<proxy:cookie>CRN</proxy:cookie>				<proxy:cookie>caf</proxy:cookie>				<proxy:cookie>cam_passport</proxy:cookie>				<proxy:cookie>cc_session</proxy:cookie>				<proxy:cookie>userCapabilities</proxy:cookie>				<proxy:cookie>usersessionid</proxy:cookie>								</proxy:cookies>	 </proxy:policy> <proxy:meta-data> <proxy:name>use-context-path-for-cookies</proxy:name> <proxy:value>true</proxy:value> </proxy:meta-data> </proxy:mapping>		<proxy:meta-data>		<proxy:name>socket-timeout</proxy:name>		<proxy:value>30000</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>connection-timeout</proxy:name>		<proxy:value>30000</proxy:value>	</proxy:meta-data>		<proxy:meta-data>		<proxy:name>retries</proxy:name>		<proxy:value>2</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>max-connections-per-host</proxy:name>		<proxy:value>10</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>max-total-connections</proxy:name>		<proxy:value>200</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>unsigned_ssl_certificate_support</proxy:name>		<proxy:value>false</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>forward-http-errors</proxy:name>		<proxy:value>true</proxy:value>	</proxy:meta-data></proxy:proxy-rules>" description="Automatically generated! Do not change the value here! Please use the according file in the config directory and rerun the update task!" required="false"/>
…
$ ls -al `find . -name resources.xml`
-rw-r--r-- 1 wasadmin wasadmins 53144 Mar 4 14:18 ./BAMCELL/applications/commsvc.ear/deployments/commsvc/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 51832 Mar 4 14:18 ./BAMCELL/clusters/BAMSR01.AppTarget/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 135131 Mar 4 14:18 ./BAMCELL/clusters/BAMSR01.Messaging/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 120465 Mar 4 14:18 ./BAMCELL/clusters/BAMSR01.Support/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 855651 Mar 6 11:16 ./BAMCELL/clusters/BAMSR01.WebApp/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 51382 Mar 4 14:04 ./BAMCELL/nodes/BAMNODE1/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.AppTarget/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.Messaging/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.Support/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 53783 Mar 4 14:18 ./BAMCELL/nodes/BAMNODE1/servers/BAMSR011.WebApp/resources.xml
-rw-r--r-- 1 wasadmin wasadmins 200966 Mar 4 14:14 ./BAMCELL/resources.xml
Note that I have highlighted the file that changed most recently.
$ view ./BAMCELL/clusters/BAMSR01.WebApp/resources.xml
…
<resourceProperties xmi:id="J2EEResourceProperty_1362406193149" name="proxy-config.xml" value="<?xml version="1.0" encoding="UTF-8"?><!-- ***************************************************************** --><!-- Licensed Materials - Property of IBM --><!-- 5724-L01, 5655-N53, 5724-I82, 5655-R15 --><!-- (C) Copyright IBM Corporation 2006, 2012. All rights reserved. --><!-- US Government Users Restricted Rights - Use, duplication or --><!-- disclosure restricted by GSA ADP Schedule Contract with --><!-- IBM Corp. --><!-- ***************************************************************** --><proxy:proxy-rules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:proxy="http://www.ibm.com/xmlns/prod/sw/ajax/proxy-config/1.1">	<proxy:mapping contextpath="/proxy/*"/> 	<proxy:policy url="endpoint://*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>			<proxy:method>POST</proxy:method>			<proxy:method>PUT</proxy:method>			<proxy:method>DELETE</proxy:method>		</proxy:actions>		<proxy:headers>			<proxy:header>Cache-Control</proxy:header>			<proxy:header>Pragma</proxy:header>			<proxy:header>User-Agent</proxy:header>			<proxy:header>Accept*</proxy:header>			<proxy:header>Content*</proxy:header>			<proxy:header>X-Method-Override</proxy:header>			<proxy:header>X-HTTP-Method-Override</proxy:header>			<proxy:header>If-Match</proxy:header>			<proxy:header>If-None-Match</proxy:header>			<proxy:header>If-Modified-Since</proxy:header>			<proxy:header>If-Unmodified-Since</proxy:header>			<proxy:header>Slug</proxy:header>			<proxy:header>SOAPAction</proxy:header>								</proxy:headers>		<proxy:cookies>			<proxy:cookie>LtpaToken</proxy:cookie>			<proxy:cookie>LtpaToken2</proxy:cookie> 			<proxy:cookie>JSESSIONID</proxy:cookie>					</proxy:cookies>	</proxy:policy>	<proxy:policy url="http://www.ibm.com/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>	<proxy:policy url="http://www-03.ibm.com/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>	<proxy:policy url="http://www.redbooks.ibm.com/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>		<proxy:policy url="http://www.google.com/ig/*" acf="none" basic-auth-support="true">		<proxy:actions>			<proxy:method>GET</proxy:method>		</proxy:actions>	</proxy:policy>	 <proxy:mapping contextpath="/cognosProxy/*">	 <proxy:policy url="endpoint://*" acf="none" basic-auth-support="true">			<proxy:actions>				<proxy:method>GET</proxy:method>				<proxy:method>POST</proxy:method>				<proxy:method>PUT</proxy:method>				<proxy:method>DELETE</proxy:method>			</proxy:actions>			<proxy:headers>				<proxy:header>Cache-Control</proxy:header>				<proxy:header>Pragma</proxy:header>				<proxy:header>User-Agent</proxy:header>				<proxy:header>Accept*</proxy:header>				<proxy:header>Content*</proxy:header>				<proxy:header>X-Method-Override</proxy:header>				<proxy:header>X-HTTP-Method-Override</proxy:header>				<proxy:header>If-Match</proxy:header>				<proxy:header>If-None-Match</proxy:header>				<proxy:header>If-Modified-Since</proxy:header>				<proxy:header>If-Unmodified-Since</proxy:header>				<proxy:header>Slug</proxy:header>				<proxy:header>SOAPAction</proxy:header>						</proxy:headers>			<proxy:cookies>				<proxy:cookie>LtpaToken</proxy:cookie>				<proxy:cookie>LtpaToken2</proxy:cookie> 				<proxy:cookie>JSESSIONID</proxy:cookie>				<proxy:cookie>CRN</proxy:cookie>				<proxy:cookie>caf</proxy:cookie>				<proxy:cookie>cam_passport</proxy:cookie>				<proxy:cookie>cc_session</proxy:cookie>				<proxy:cookie>userCapabilities</proxy:cookie>				<proxy:cookie>usersessionid</proxy:cookie>								</proxy:cookies>	 </proxy:policy> <proxy:meta-data> <proxy:name>use-context-path-for-cookies</proxy:name> <proxy:value>true</proxy:value> </proxy:meta-data> </proxy:mapping>		<proxy:meta-data>		<proxy:name>socket-timeout</proxy:name>		<proxy:value>30000</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>connection-timeout</proxy:name>		<proxy:value>30000</proxy:value>	</proxy:meta-data>		<proxy:meta-data>		<proxy:name>retries</proxy:name>		<proxy:value>2</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>max-connections-per-host</proxy:name>		<proxy:value>10</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>max-total-connections</proxy:name>		<proxy:value>200</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>unsigned_ssl_certificate_support</proxy:name>		<proxy:value>false</proxy:value>	</proxy:meta-data>	<proxy:meta-data>		<proxy:name>forward-http-errors</proxy:name>		<proxy:value>true</proxy:value>	</proxy:meta-data></proxy:proxy-rules>" description="Automatically generated! Do not change the value here! Please use the according file in the config directory and rerun the update task!" required="false"/>
…
Note that I've highlighted the property that I had previously changed - unsigned_ssl_certificate_support=false.
Nice one, John
No comments:
Post a Comment