Web service response messages are intermittently dropped,even when the response has been validated using a reverse proxy such as the TCP/IP Monitor.
1) Open your current WebSphere Commerce configuration file
<WCDE_installdir>/workspace/WC/xml/config/wc-server.xml
2) Locate the following OutboundConnector definition:
<OutboundConnector default="true"
enabled="true"
id="-101"
name="HTTP-WS"
retries="3">
<ConnectionSpec
ClassName="com.ibm.commerce.wc.messaging.adapters.jcahttp.JCAHTTPConnectionSpecImpl"
default="true" />
<InteractionSpec
ClassName="com.ibm.commerce.wc.messaging.adapters.jcahttp.JCAHTTPInteractionSpecImpl"
default="true">
<EditableProperty Admin="userName"
display="false"
editable="yes"
name="setBasicAuthenticationName"
value="" />
...
...
3) Add the following EditableProperty definition:
<EditableProperty Admin="bufferResponse"
display="false" editable="yes"
name="setIsBufferResponse" value="true"/>
</InteractionSpec>
4) Save and Re-start the server for the changes to get reflected
Friday, 27 June 2014
Tuesday, 17 June 2014
Monday, 2 June 2014
To export the data from the database in Websphere using Massextract utility.
We can use the massextract utility to extract the data from the database into an XML document. This utility makes use of an XML file which can be called as the extraction filter which is an XML document having the query to extract the data.
Command to execute -
massextract.cmd -filter SampleFilter.xml -outfile SampleExtracted.xml -dbname <dbname> -dbuser <dbuser> -dbpwd <dbpassword
Log - WC_installdir/logs/massload.oracle.log
Note -
SampleFilter.xml
<sqlx>
<functionDef id="Product" description="Extract Product"
schemaentity="site">
<body>
select * from site
</body>
</functionDef>
<execute id="Product" description="Extract Product"
schemaentity="site">
</execute>
</sqlx>
SampleExtracted.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE import [
<!ELEMENT import ( site )*>
<!ELEMENT site EMPTY>
<!ATTLIST site
databasevendor CDATA #IMPLIED
edition CDATA #IMPLIED
version CDATA #IMPLIED
release CDATA #IMPLIED
mod CDATA #IMPLIED
fixpack CDATA #IMPLIED
compname CDATA #IMPLIED
optcounter CDATA #IMPLIED
>
]>
<import>
<site
databasevendor="IBM"
edition="ENT"
version="7"
release="0"
mod="0"
fixpack="7"
compname="BASE"
optcounter="7"
/>
</import>
Ref -
http://www-01.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.data.doc/tasks/tml_extract.htm?lang=en
http://www-01.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.data.doc/refs/rml_extract_filter_example.htm?lang=en
We can use the massextract utility to extract the data from the database into an XML document. This utility makes use of an XML file which can be called as the extraction filter which is an XML document having the query to extract the data.
Command to execute -
massextract.cmd -filter SampleFilter.xml -outfile SampleExtracted.xml -dbname <dbname> -dbuser <dbuser> -dbpwd <dbpassword
Log - WC_installdir/logs/massload.oracle.log
Note -
- We can use the custom table in the same extraction filter along with the WCS tables to extract the data.
- There can be only one table need to be defined for the schemaentity and no complex joins allowed.
- Unquie id needs to be defied for each <functionDef />
SampleFilter.xml
<sqlx>
<functionDef id="Product" description="Extract Product"
schemaentity="site">
<body>
select * from site
</body>
</functionDef>
<execute id="Product" description="Extract Product"
schemaentity="site">
</execute>
</sqlx>
SampleExtracted.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE import [
<!ELEMENT import ( site )*>
<!ELEMENT site EMPTY>
<!ATTLIST site
databasevendor CDATA #IMPLIED
edition CDATA #IMPLIED
version CDATA #IMPLIED
release CDATA #IMPLIED
mod CDATA #IMPLIED
fixpack CDATA #IMPLIED
compname CDATA #IMPLIED
optcounter CDATA #IMPLIED
>
]>
<import>
<site
databasevendor="IBM"
edition="ENT"
version="7"
release="0"
mod="0"
fixpack="7"
compname="BASE"
optcounter="7"
/>
</import>
Ref -
http://www-01.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.data.doc/tasks/tml_extract.htm?lang=en
http://www-01.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.data.doc/refs/rml_extract_filter_example.htm?lang=en
Thursday, 22 May 2014
Adding words to dictionaries in Management Center
We can add new words or pharases to Management Center spell checker dictionary so that they are no longer flagged as misspelled words.The Management Center spell checker dictionary is case-sensitive.
- Update /LOBTools/WebContent/WEB-INF/dictionaries/addenda.xml
- Within the addenda.xml file, add the new words or phrases that you want the spell checker to recognize.
<dictionary>
<word locale="en-US,fr-FR">sampleword1</word>
<word locale="en-US">sampleword2</word>
</dictionary>
Note: Spell check does not support the following languages:
Japanese
Korean
Romanian
Simplified Chinese
Traditional Chinese
Wednesday, 21 May 2014
To renew a self-signed certificate and chained certificate
- Login to administrative console
- Click Security > SSL certificate and key management.
- Under Related Items, click Key stores and certificates.
- Click the appropriate <keystore name> to which you want to add the new certificate.
- Under Additional Properties, click Personal certificates to list the personal certificates.
- Select a personal certificate from the list.
- Click the Renew button.
- Click Apply then OK.
Session Timeout change for Management Center and Sales Center
- Udpate wc-server.xml for InactivityTimeout and Threshold value
ExpiryMgmtChannelId="-4"
InactivityTimeout="15"
Threshold="15"
enable="true"
/>
where
InactivityTimeout
The lease time of the session in minutes. The session remains active within this time(minutes)
Threshold
The allowable time in minutes to renew the lease. If a request comes in within this threshold time and after the lease time, the lease on the activity is renewed. In the sample configuration, for example, the threshold time is 15 minutes. Therefore, the activity remains active for 30 (15 + 15) minutes.
InactivityTimeout="15"
Threshold="15"
enable="true"
/>
where
InactivityTimeout
The lease time of the session in minutes. The session remains active within this time(minutes)
Threshold
The allowable time in minutes to renew the lease. If a request comes in within this threshold time and after the lease time, the lease on the activity is renewed. In the sample configuration, for example, the threshold time is 15 minutes. Therefore, the activity remains active for 30 (15 + 15) minutes.
- Deploy the file to the WebSphere Commerce EAR.
- Republish the WebSphere Commerce application.
Subscribe to:
Posts (Atom)