Friday, December 11, 2015
Wednesday, November 25, 2015
Remove SFG Partner Profile (Hard Delete if SFG removal fails)
There was bug in SFG (old versions) where it leaves some orphan entries in DB when you try to remove the trading partner from SFG UI. To solve the problem here are steps to do hard delete of partner profile.
Attempt to delete from SFG in regular way and then remove from Dashboard --> Trading Partner (All Contracts, Document Exchange, Profile, Routing Channels, Mailbox Virtual Roots if any etc.)
Make sure the following table should not return any entry for Trading Partner, If it returns then remove the entry manually...
This example Partner Name is : EDI
select 'YFS_USER' from YFS_USER where UPPER(USERNAME) like '%EDI%' UNION
select 'YFS_ORGANIZATION' from YFS_ORGANIZATION where UPPER(ORGANIZATION_KEY) like '%EDI%' UNION
select 'MBX_ACTION' from MBX_ACTION where UPPER(USER_ID) like '%EDI%' UNION
select 'MBX_MAILBOX' from MBX_MAILBOX where UPPER(PATH) like '%EDI%' UNION
select 'SCI_CONTRACT' from SCI_CONTRACT where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_DOC_EXCHANGE' from SCI_DOC_EXCHANGE where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_ENTITY' from SCI_ENTITY where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_PACKAGING' from SCI_PACKAGING where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_PROFILE' from SCI_PROFILE where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_TRANSPORT' from SCI_TRANSPORT where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_CODE_USR_XREF' from SCI_CODE_USR_XREF where UPPER(USER_ID) = 'EDI%';
select * from YFS_USER where UPPER(USERNAME) = 'EDI';
select * from YFS_ORGANIZATION where UPPER(ORGANIZATION_KEY) = 'EDI';
select * from MBX_ACTION where UPPER(USER_ID) = 'EDI';
select * from MBX_MAILBOX where UPPER(PATH) = 'EDI';
select * from SCI_CONTRACT where UPPER(OBJECT_NAME) ='EDI';
select * from SCI_DOC_EXCHANGE where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_ENTITY where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_PACKAGING where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_PROFILE where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_TRANSPORT where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_CODE_USR_XREF where UPPER(USER_ID) = 'EDI';
--finally delete (be careful) --
DELETE from YFS_USER where UPPER(USERNAME) = 'EDI';
DELETE from YFS_ORGANIZATION where UPPER(ORGANIZATION_KEY) = 'EDI';
Attempt to delete from SFG in regular way and then remove from Dashboard --> Trading Partner (All Contracts, Document Exchange, Profile, Routing Channels, Mailbox Virtual Roots if any etc.)
Make sure the following table should not return any entry for Trading Partner, If it returns then remove the entry manually...
This example Partner Name is : EDI
select 'YFS_USER' from YFS_USER where UPPER(USERNAME) like '%EDI%' UNION
select 'YFS_ORGANIZATION' from YFS_ORGANIZATION where UPPER(ORGANIZATION_KEY) like '%EDI%' UNION
select 'MBX_ACTION' from MBX_ACTION where UPPER(USER_ID) like '%EDI%' UNION
select 'MBX_MAILBOX' from MBX_MAILBOX where UPPER(PATH) like '%EDI%' UNION
select 'SCI_CONTRACT' from SCI_CONTRACT where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_DOC_EXCHANGE' from SCI_DOC_EXCHANGE where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_ENTITY' from SCI_ENTITY where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_PACKAGING' from SCI_PACKAGING where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_PROFILE' from SCI_PROFILE where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_TRANSPORT' from SCI_TRANSPORT where UPPER(OBJECT_NAME) like '%EDI%' UNION
select 'SCI_CODE_USR_XREF' from SCI_CODE_USR_XREF where UPPER(USER_ID) = 'EDI%';
select * from YFS_USER where UPPER(USERNAME) = 'EDI';
select * from YFS_ORGANIZATION where UPPER(ORGANIZATION_KEY) = 'EDI';
select * from MBX_ACTION where UPPER(USER_ID) = 'EDI';
select * from MBX_MAILBOX where UPPER(PATH) = 'EDI';
select * from SCI_CONTRACT where UPPER(OBJECT_NAME) ='EDI';
select * from SCI_DOC_EXCHANGE where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_ENTITY where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_PACKAGING where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_PROFILE where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_TRANSPORT where UPPER(OBJECT_NAME) = 'EDI';
select * from SCI_CODE_USR_XREF where UPPER(USER_ID) = 'EDI';
--finally delete (be careful) --
DELETE from YFS_USER where UPPER(USERNAME) = 'EDI';
DELETE from YFS_ORGANIZATION where UPPER(ORGANIZATION_KEY) = 'EDI';
Friday, November 20, 2015
Enterprise Integration Techniques - Notes
Integration Patterns:
Enterprise Integration Patterns
Self Managing
Minimize the dependency between components.
John Prosul Robust principle
Be liberal with what you receive and be specific with what you send out.
Always support previous versions (Backward compatibility). It's always hard to support backward compatibility but it's matter of discipline.
Software is craft not a science.
Be wise on Technical Decision vs Business Decision.
InfoQ.com
gotoconferences
Twitter University
Emerging Techologies for Enterprise (Conference hosted in Philly)
Agile Stuff
hackernews.com (YCombinator)
HighScalability.com
Netflix Engineering
Thoughtworks Tech Radar
Micro Services (Sam Newman)
Enterprise Integration Patterns
Self Managing
Minimize the dependency between components.
John Prosul Robust principle
Be liberal with what you receive and be specific with what you send out.
Always support previous versions (Backward compatibility). It's always hard to support backward compatibility but it's matter of discipline.
Software is craft not a science.
Be wise on Technical Decision vs Business Decision.
InfoQ.com
gotoconferences
Twitter University
Emerging Techologies for Enterprise (Conference hosted in Philly)
Agile Stuff
hackernews.com (YCombinator)
HighScalability.com
Netflix Engineering
Thoughtworks Tech Radar
Micro Services (Sam Newman)
Monday, October 26, 2015
Thursday, September 24, 2015
Sterling Integrator issue with MSSQL Database
Error while installing - The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server returned an incomplete response. The connection has been closed.".
[2014-11-13 17:31:50.499] ERRORDTL [1415899910498]com.microsoft. sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server returned an incomplete response. The connection has been closed.".
[2014-11-13 17:31:50.499] ERRORDTL [1415899910498]com.microsoft. sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server returned an incomplete response. The connection has been closed.".
Solution below link. -- Alternate Solution:
Sunday, September 13, 2015
Monday, August 17, 2015
Sunday, August 16, 2015
Tuesday, August 11, 2015
Encoding a Payload in Sterling Integrator using Java Task
import java.io.InputStream;
import java.lang.StringBuilder;
import com.sterlingcommerce.woodstock.workflow.Document;
import com.sterlingcommerce.woodstock.util.Base64;
Document doc = wfc.getPrimaryDocument();
InputStream in = doc.getInputStream();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < in.available(); i++) {
sb.append(in.read());
}
byte data[] = sb.toString().getBytes();
byte newdata[] = Base64.encode(data);
doc.setBody(new String( ""+ new String(newdata)+" ").getBytes());
return new String(sb.toString());
import java.lang.StringBuilder;
import com.sterlingcommerce.woodstock.workflow.Document;
import com.sterlingcommerce.woodstock.util.Base64;
Document doc = wfc.getPrimaryDocument();
InputStream in = doc.getInputStream();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < in.available(); i++) {
sb.append(in.read());
}
byte data[] = sb.toString().getBytes();
byte newdata[] = Base64.encode(data);
doc.setBody(new String( "
return new String(sb.toString());
Sunday, August 9, 2015
Friday, July 31, 2015
Sir A.P.J Abdul Kalam
Don't take rest after your first victory because if you fail in second, more lips are waiting to say that your first victory was just luck." - A.P.J Abdul Kalam
"All Birds find shelter during a rain. But Eagle avoids rain by flying above the Clouds." - A.P.J Abdul Kalam
"Failure will never overtake me if my definition to succeed is strong enough". - A.P.J Abdul Kalam
"Man needs difficulties in life because they are necessary to enjoy the success." - A.P.J Abdul Kalam
"If you want to shine like a sun. First burn like a sun." - A.P.J Abdul Kalam
"It is very easy to defeat someone, but it is very hard to win someone" - A.P.J Abdul Kalam
"All of us do not have equal talent. But , all of us have an equal opportunity to develop our talents." - A.P.J Abdul Kalam
" Be more dedicated to making solid achievements than in running after swift but synthetic happiness." -A.P.J Abdul Kalam
"Thinking should become your capital asset, no matter whatever ups and downs you come across in your life." - A.P.J Abdul Kalam
" Without your involvement you can't succeed. With your involvement you can't fail. " - A.P.J Abdul Kalam
"All Birds find shelter during a rain. But Eagle avoids rain by flying above the Clouds." - A.P.J Abdul Kalam
"Failure will never overtake me if my definition to succeed is strong enough". - A.P.J Abdul Kalam
"Man needs difficulties in life because they are necessary to enjoy the success." - A.P.J Abdul Kalam
"If you want to shine like a sun. First burn like a sun." - A.P.J Abdul Kalam
"It is very easy to defeat someone, but it is very hard to win someone" - A.P.J Abdul Kalam
"All of us do not have equal talent. But , all of us have an equal opportunity to develop our talents." - A.P.J Abdul Kalam
" Be more dedicated to making solid achievements than in running after swift but synthetic happiness." -A.P.J Abdul Kalam
"Thinking should become your capital asset, no matter whatever ups and downs you come across in your life." - A.P.J Abdul Kalam
" Without your involvement you can't succeed. With your involvement you can't fail. " - A.P.J Abdul Kalam
Subscribe to:
Posts (Atom)