Wednesday, June 15, 2016

Sterling Integrator Graphical Process Modeler not opening

Most of the times we get the below exception while opening Graphical Process modeler because the IP address in the below URL is not correct. Sterling Integrator host address and GPM host address different then we need to fix the host name and make it common.

com.sun.deploy.net.FailedDownloadException: Unable to load resource:http://***.***.***.***:24000/gbm/pmodeler/ProcessModeler.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

How to Fix:

       1. Stop Sterling Integrator.
       2. <SI_Install>/bin folder and execute the below commnad.
       3. <SI_Install>/bin> patchJNLP.cmd <put your hostname here>
       4. Start the Sterling Integrator and go to Business Process Manager and Run Graphical Process Modeler. (Don't use old jnlp file and download fresh copy) 


Friday, October 9, 2015

Sterling File Gateway Concepts

Sterling file gateway ■ 

An MFT solution designed on top of Sterling B2B foundation for transferring files between partners using different protocols, file naming conventions, and file formats. ■ Has following features –Scheduled high volume - high frequency file transfers –File and File name Transformations –File Transfer Visibility (file route and events reports) –Replay / Re-delivery –Notifications (partners and operators) –Broad Communications Protocol Support (FTP, FTP/S, SSH/SFTP, SSH/SCP, and Sterling Connect:Direct) –Dynamic Routing –Easy-to-use Partner Onboarding UI –Flexible Mailbox Structures (to support pattern matching) ■ Works on the basis of predefined business processes ■ Has a web browser based Partner interface named myFileGateway –The partner can upload files using this UI which can then be routed using protocol adapters like FTP/SFTP –Partner can subscribe to notifications



Important Sterling Integrator Concepts


SFTP concept in Sterling Integrator


The following keys are used to allow an SFTP Client adapter to connect with a
remote SFTP server.

*** User Identity Key – Private/Public key pair used to identify Sterling Integrator
as a user on a remote server. Generate this key within Sterling Integrator and
provide the public part of the key to your trading partner.

*** Known Host Key – Public key used to authenticate remote SFTP servers to
Sterling Integrator’s SFTP Client adapter. Request this key from your trading
partner.

The following keys are used by the SFTP Server adapter to allow connections from
remote clients:

*** Authorized User Key – A public key used to authenticate remote users to
Sterling Integrator SFTP Server adapters. One one or more Authorized User keys
can be associated with a user account. Request the key(s) from your trading
partner and include the key(s) in their Sterling Integrator user account.
*** Host Identity Key – Private/Public key pair used to identify the Sterling
Integrator SFTP Server adapter to remote clients. Generate this key within
Sterling Integrator.


Perimeter Server ■ Perimeter server is a software for communications management that –manages the communications flow between outer layers of your network and the TCP-based transport adapters –can be installed in a DMZ (De-Militarized Zone – the zone between a trusted internal network and an untrusted external network Eg: internet) –Provides security and scalability


HTTP Server Adapter ■ The HTTP Server Adapter is based on jetty http engine and provides support for HTTP protocol in the following way –You can run a full fledged web application from a WAR file –You can run a Business Process with the incoming data as primary document ■ It provides a URI based configuration for routing data –The adapter listens on a configured port and can accept simple TCP or secure SSL/TLS connection based on how it is configured –The incoming HTTP request is routed to configured BPs or WAR applications based on URI

HTTP Client Adapter ■ HTTP Client Adapter provides client capabilities in the following way –Scriptable using Business process (BPML) in SI and available in the GPM –Connects to the configured host and sends/receives business data using the HTTP protocol –Supports GET and POST Http methods and secure SSL connections (https) –Supports connecting through a HTTP proxy ■ The client adapter supports big payloads (tested up to 2 GB) and supports more than 150 concurrent transfers


SFTP Server Adapter ■ SFTP Server adapter provides secure file transfer support with SFTP protocol –Works on top of Secure SHell (SSH) protocol for transport security –Uses SSH Host Identity keystore (private keys) and Authorized User key store (public keys) in SI for SSH keys –Capable of exposing a Mailbox or an actual (native) file system directory as the SFTP file system to the connected user –Supports restrictions via Virtual Roots and adapter policies (more on policies later)

SFTP Client Adapter ■ SFTP Client Adapter provides client capabilities in the following way –Scriptable using Business process (BPML) in SI and is available in the GPM –Connects to the configured host and executes specified SFTP commands –Supports SFTP commands like cd, list, get, put, delete, pwd, mkdir, rmdir, move that help in sending/retrieving/organizing business data in the partner's SFTP server –Supports connecting through a HTTP proxy


FTP Server Adapter ■ FTP Server adapter provides support for sending/receiving files using the the FTP protocol –Exposes a Mailbox or an actual (native) file system directory as the FTP file system to the connected user –Supports a large set of FTP commands (rfc 959) –Supports secure SSL/TLS connections (FTPS) –Supports restrictions via Virtual Roots and adapter policies (more on this later) –Supports User Exits (custom code execution on FTP events)


FTP Client Adapter ■ FTP Client Adapter provides client capabilities for the FTP protocol in the following way –Scriptable using Business process (BPML) in SI and is available in the GPM –Connects to the configured host and executes specified FTP commands –Supports FTP commands like cd, list, get, put, delete, pwd, site, quote, move that help in sending/retrieving/organizing business data in the partner's FTP server –Supports FTPS (FTP over SSL) for transport security ■ Tested with large files up to 15 GB



Saturday, June 27, 2015

Sterling Inegrator Map Editor Issues

Issue 1 : 

Map Test is not working

Error Message
 
Error: Failed opening socket; No connection could be made because the target machine actively refused it.

Reason : 










Resolution :

Need enable the "Map Test Http Server Adapter" service

Tuesday, May 5, 2015

Introduction to EAI(webmethods)

I)Introduction:
The company pioneered the use of web services to connect software applications together within a single organization and across the Internet.
II)Focused On:
1)Application Integration.
2)Business Process Integration.
3)B2B Partner integration.
III)Basis:
It is based on the idea to use the new standards of the Web such as HTTP and XML to allow software applications to communicate with one another in a real time.
Series of development consist of:
1)Web Automation Server.
2)Web Methods B2B Integration Server.
IV)Basic Function of this software:
 It is basically an “engine for running services” .A service can be viewed as a black box which performs some computational function. It takes in required data, required messages  and generates the output as required by the required computation. 
The Web method  integration server is a service engine therefore to IS, everything is viewed as a service.
V)Other Components of it are as follows:
1)Integration Servers:
It is the engine for running services .Many other modules are used as an add on the integration server on the top of the IS. Some of the examples are Trading Networks, Flat File Handler and Business Process
Modeler  as well as the administrative GUI’s for other modules.
Features of the Integration Server is as follows:
 a) An engine for running local services, distributed services, web services.
 b) A client enabler to invoke local services, distributed services, web services.
c) To bind two disparate systems.
d) An XML parser and generator.
It uses the Webmethod  Flow Procedural Statements which are :
1) MAP(assignment statement).
2) BRANCH(decision statement).
3) LOOP(iteration statement).
In addition the flow language has the following extra 4 statements:
4) INVOKE (subroutine call).
5) SEQUENCE(compound statement)
6) EXIT
7) REPEAT(another iteration)
2) Trading Networks:
It is a service that acts as an interface between the internet and the Webmethod . It tracks down data between the multiple external  partners and an integration server.It performs  task such as
a)Authentication
b)Authorization
c)Document Identification
d)Logging  and activity monitoring.
It can be viewed as a generalized document router, but in reality it acts as simply another service running with the integration server. It can be invoked via a variety of mechanisms such as HTTP, FTP, SMTP, Web Services ,java client or via publish/subscribe.
3)Broker:
It acts as separate server which helps to pass data between the multiple instances of the integration Server. In it a service publishes a document to the broker and the broker delivers the document to all services that subscribe to the document. The  Broker performs routing of messages in a reliable and efficient manner.
4)JAVA Service:
Java is used to write for all the services except the running services. The cases  when java should not be used to write services are as follows :
1)The Webmethod developer does not  provide an IDE for java.
2)Java program cannot easily manipulate the pipeline which is used by integration server to pass data among services.
3)Java is harder to implement in comparision to the flow language.
VI)Webmethods  Installation:
Its products are not free and the cost goes up high to have it. The products  can be installed from the internet if you have an access to the appropriate license key.
An installer program WebmethodsInstaller651.exe is needed to access the installation files.
The installation choices are as follows:
a)We can deploy the products online on a single machine kust by opting out for the prompts interactively or via a script file.
b)We can download products to a image file which can be later used for the local deployments,by answering  prompts interactively or via a script file.
VII)Hardware Configuration requirements:
a)2-3 GHz CPU.
b)1-2 GB RAM
c)40-80 GB HDD.
d)Compatible with both Unix and Windows OS(Unix is favored for the production system but windows is better for an experimental purpose).
e)A Database(For example Oracle or SQL Server)
VIII)webMethods  Products :
It produces a lot of the products that focuses on
a)Enterprise Application Integration Market(EAI):
It is concerned with integrating disparate systems such as application servers (SAP, Seibel, Peoplesoft ),
Database management  systems(Oracle, SQL Server, DB2),mainframe and custom applications(J2EE).
b)Business-to-Business market(B2B):
It is concerned with enabling separate  companies to exchange electronic documents , such as purchase orders ,invoices, etc .
IX)Notes(Concepts to be known):
1)XML-RPC: It works by sending a HTTP request to a server implementing the protocol.
Client(software)------------------------->Server(That implements that protocol)
                                  (HTTP Call)
In this multiple input parameters can be passed to remote  method, but only one return value is returned.
2) WIDL (Web Interface Definition Language) is a 1997 standard for interactions between websites.
X)References are as follows:

basic Faqs on EAI (Webmethods) Coninued ....Coninued ....Coninued ....Coninued ....



1)Territories in webmethods?

Ans.

They holds group of "brokers" which will work as single functional unit.

2)Steps of deploying a service in webmethods?

Ans.

The steps are as follows:

a)define

b)build

c)map

d)deloy

 3)What are the steps used to deploy?

 Ans.

Use of finally block in exception handling in webmethods

 Lets assume we have a code where we are using open ssh and in the try block we are doing a sftp login .

 So in case of success or error either step we would have to do a logout . So to avoid code duplication both in end of try and catch block we can have a finally block (exit on done). Do a logout in this sequence.

 Also it can hold good when we do a manual connection to a DB and irrespective of success or failure we want  to close connection.

 Main(Exit on success)

|

|----Try(Exit on Failure)

|

|----Catch(Exit on Done)

Finally(Exit on Done)

4)What is the variable need to keep in the clearpipeline service preserve.

Ans.

Clear pipeline service is going to clear the pipeline information.If we did not specify "preserve" in the service all the pipeline information will be lost.If we keep variable in pipeline in "preserve" except the

variable specified in the preserve all the other information will be lost

Posted 15th February 2013 by Saurabh Sharma

View comments

Feb

15

Questions on EAI(webmethods)

1)In which case the transformers should not be used...?

2)In JMS can we publish a document to multiple brokers ? If Possible ,how can we achieve that ?

3)We have created a insert notification ,is there any way to process the document in the subscriber without publishing it .....?

4)In which case we are not advised to use Transformers...?

5)explain try and catch block briefly

6)Can we build loop step with in the branch in such a way that the interface is look like that branch

7)<transactiontype > sequence: Deposit loop <accno> xxxxxx sequence: current loop <accno> xxxxxxx sequence: savings loop <accno> can we achieve  the above senario.

8)what is meant by "Block time out" and "Expire time out " in jdbc adapter configuration

Ans.

Block timeout: refers to how much time the IS should wait

to get connection from connection pool before throwing

exception.

 Expire Timeout:refers to how much time the free connection

stay as it is before it expires.

9)Gate ways in webmethods?

Ans.

It allows to connect the territories called as gateways.It also allows to connect brokers of different Territories iscalled as gateway.We have one more type of gate ways like gateway service,which is usefull while developing TN documents which are of type FF.So by using Gateway services we can recognize TN Docs.

Troubling Scenarios in EAI(webmethods)

1)Currently, our application running on a Unix machine will generate XML file into a Unix Folder

The Unix Folder is &#39;exposed&#39; to our Window 2000 Server &#40;running webMethods I.S.&#41; via Simba

Our webMethods Integration Server &#40;running on Windows 2000 Server&#41; is
running as a Window Services using an LAN id/password not authorized to access the Unix Folder directly.


Suggested Solution:

1. Map the Unix Folder via Window Exploer &#40;using another user id / password&#41;
2. Create a Window Command File that move all the XML files from
the Unix Folder to local folder &#40;e.g. move &#42;.xml from folder A to
folder B&#41;
3. In my webmethods flow services, I will use a java service &#40;which
run RunTime.exec&#40;commandFile&#41; to invoke the command file to move the
XML files to a local folder, then list all the files in the local
folder, process each XML, convert to EDI &#40;X12 4010 204&#41;, post to TN,
then use webMethods Primary FTP delivery service to FTP to trading
partner

2)

1. If I use Process.waitFor&#40;commandFile&#41; to wait for the move to complete, webMethods just hang there and not moving any files
2. If I do not use Process.waitFor&#40;&#41;, each call the command file just move the 1st couples &#40;actually 5&#41; XML, which the command file should
move every XML files &#40;over 30&#43;&#41;
3. When I use the Primary FTP Delivery Service, webMethods uses the task id as the filename.edi. Anyways that I can do to change it.

Suggested Solution:

According to dk java docs:

&#34;Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock&#34;

I&#39;d suggest processing the input/output/error streams.

One other thing am sure you are aware of is that Runtime.exec forks off a new jvm with same jvm settings &#40;Xs/Xm&#41; as the parent. So if you have multiple threads doing these execs, you could unknowingly run out system resources very quickly.

Check whether in your location and forecast for 7 days

Smart Weather PWA 🌦️ Smart Weather PWA 🔔 Alerts Search 📍 ...