OSB Config WLST Configurator

Trent Bartlem edited this page May 7, 2015 · 5 revisions
Clone this wiki locally

Introduction

The OSB-Config-WLST-Configurator is a simple the WLST script that contains several features for a more detailed customization of SBConfig Jar file, before deploying to the OSB. The WLST script to read existing SBConfig jar and modify (customize) it according to the settings in the properties and generate a new SBConfig JAR. The WLST script allow you change e.g.: enpoint URI, enable or disble transactions, transport level security, etc.

OSB-Config-WLST-Configurator

OSB-Config-WLST-Configurator supports customization of the following OSB resources:

  • Proxy Service
  • Business Service
  • (Static) Service Account
  • SMTP
  • JNDI
  • UDDI
  • Proxy Server
  • Alert Destination
  • Service (Key) Provider
  • GlobalOperationSettings
  • MQConnection

OSB-Config-WLST-Configurator supports customization of the following OSB transports:

  • LOCAL
  • HTTP
  • JMS
  • MQ
  • FTP
  • SFTP
  • EMAIL
  • SB

Note: The OSB-Config-WLST-Configurator was tested on the OSB Server 11g PS6(11.1.1.7).

Download and Install

  • Download and unzip the latest version of the OSB-Config-WLST-Configurator to $osb-wlst-customizator-Home.
  • Setup WLS and OSB home in the $osb-wlst-customizator-Home/osbCustomizer.cmd (or osbCustomizer.sh).
  • Run setWLSEnv.cmd (Windows) or setWLSEnv.sh (Linux) in $WLS_HOME/server/bin before use.

How To Use:

On windows: $osb-wlst-customizator-Home/osbCustomizer.cmd <path to customization properties file

Linux: $osb-wlst-customizator-Home/osbCustomizer.sh <path to customization properties file>

Customization file File structure

The Customization file is properties file wich contains the Jython variable declarations. It needs to be syntactically and semantically correct (i.e. a variable needs to be declared before it is first used). See (http://www.jython.org/jythonbook/en/1.0/LangSyntax.html) for a description of the Jython language and syntax. Following variable types are supported:

  • String syntax: name=”value”
  • Dictionary (keys:value pairs). Syntax: dictionary ={key:value}, where key is always a string, value can be any type (integer, string, dictionary, …)
  • Tuple (immutable sequences of items of arbitrary types). Syntax is: name=(item1,item2)

Customization File Example:

VALUE={
	"KEY":"VALUE",
	"KEY":"VALUE",
	"KEY":("arrayItem","arrayItem1","arrayItem2",),
	"KEY":{
		"KEY":"VALUE",
		"KEY":"VALUE",  
	},
}

Customization File Rules

  • Variable SB_SERVER={...} is optional and is only used to define the settings for connecting to the OSB (for deployment)
  • If the customization properties file contains variable SB_SERVER={...} then after customization of SBConfig, the customized SBConfig will automatically deployed to the OSB
  • Variable SB_CUSTOMIZATOR={...} is mandatory and there is defined the customization logic #SB_SERVER this is a mandatory key - for deployment SB_SERVER={ "ListenAddress":"", "ListenPort":"", "Username":"", "Password":"", }

#SB_CUSTOMIZATOR it is mandatory key, and here is what and how should be customized SB_CUSTOMIZATOR={ "":{ "":{ "path to file in SBConfig, which will change":{ "name of the customization property":"new value", #... }, #... }, #... }, #... }

Examples:


Example 01 - Customize: Global Operation Settings

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample01/sample01.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
	"ListenAddress":"localhost",
	"ListenPort":16001,
	"Username":"admin",
	"Password":"admin1234",
}

#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample01/sample01.jar":{
		#Customization type: Global Operational Settings
		"GlobalOperationalSettings":{
			"System/Operator_Settings/GlobalOperationalSettings.Operations":{
				"Logging":True,
				"Monitoring":True,
				"PipelineAlerting":False,
				"Reporting":False,
				"ResultCaching":False,
				"SlaAlerting":True,
			},
		},
	},
}

Example 02 - Customize: (Static) Service Account

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample02/sample02.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample02/sample02.jar":{
		#Customization type: (STATIC) Service Account
		"SERVICEACCOUNT":{
			#Path to the file (ServiceAccount), which will be customized in SBConfig
			"project02/sm01.ServiceAccount":{
					"Username":"Tome",
					"Password":"TomeCodePassword",
					"Description":"Test description 01",
			},
			#Path to the file (ServiceAccount), which will be customized in SBConfig
			"default/staticAccount.ServiceAccount":{
					"Username":"TestUser02",
					"Password":"PasswordUser02",
					"Description":"Test description 02",
			},
		},
	},
}

Example 03 - Customize: UDDI Service Registry configuration

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample03/sample03.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample03/sample03.jar":{
		#Customization type: UDDI
		"UDDI":{
			#Path to the file (UDDIRegistry), which will be customized in SBConfig
			"System/UDDI/osr01.UDDIRegistry":{
					"Description":"Hello this is a Tomecode.com customization",
					"Url":"http://localhost:20001/registry/uddi/inquiry",
					"PublishUrl":"http://localhost:20001/registry/uddi/publishing",
					"SubscriptionUrl":"http://localhost:20001/registry/uddi/subscription",
					"SecurityUrl":"http://localhost:20001/registry/uddi/security",
					"Username":"HelloUDDITome991",
					"Password":"HelloUDDITomecode",
					"AutoImport":False,
					"LoadtModels":True,
			},
		},
	},
}

Example 04 - Customize: Proxy Services, Transport type: Local

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample04/sample04.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample04/sample04.jar":{
		#Customization type: Proxy Services with transport type: LOCAL
		"LOCAL":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"default/local.ProxyService":{
					"Description":"LOCAL ProxyService was customized by Tome",
					"IsRequired":True,
					"SameTxForResponse":True,
			},
			#Path to the file (Proxy Service), which will be customized in SBConfig
			#"default/local2.ProxyService":{
			#		"Description":"Hello LOCAL ProxyService here is Tome",
			#		"IsRequired":True,
			#		"SameTxForResponse":True,
			#},...
		},
	},
}

Example 05 - Customize: Proxy Services, Transport type: HTTP

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample05/sample05.properties

Sample Configuration File...

#OSB Configuration for deployment
#SB_SERVER={
#        "ListenAddress":"localhost",
#        "ListenPort":16001,
#        "Username":"admin",
#        "Password":"admin1234",
#}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample05/sample05.jar":{
		#Customization type: Proxy Services with transport type: HTTP
		"HTTP":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"default/http.ProxyService":{
				#Description of the
				"Description":"Hello HTTP ProxyService Tome",
				#Endpoiint
				"EndpointUri":"http/endpoint/tome/customizer",
				#Enable or disable https
				"UseHttps":True,
				"Authentication":{
					#Remove authentification
					"None":{},
					##Basic authentification
					"BasicAuthentication":{},
					##SSL Authentification
					"SSLClientAuthentication":{},
					##Setup custom authentification
					"CustomTokenAuthentication":{
					##	Custtom authentificator token type
						"TokenType":"TomeCustomToken",
					##	Custtom authentificator header name
						"HeaderName":"TomeHeaderName",
					},	
				},
				#Customize authentification in security tab
				"Security":{
					#Customize authentication by type	
					"CustomAuthentication":{
						"AuthenticationType":{
							##remove AuthenticationType
							#"None":{},
							##Custom user name and password authentication
							"CustomUserNameAndPassword":{
								##xpath for username
								"UsernameXpath":"//username/tome/text()",
								##xpath for password
								"PasswordXpath":"//username/tome/text()",
							},
							##Customize custom token
							#"CustomToken":{
								##customize xpath
							#	"Xpath":"//tome/Xpath/text()",
							#},
						},
						##customize context properties
						"ContextProperties":{
							##First variable
							"TomePremenna":"//tome/text()",
							##Second variable
							"MajovaPremenna":"//majo/text()",
						},
					},
				},
				"RequestEncoding":"UTF-8",
				"ResponseEncoding":"UTF-8",
				"DispatchPolicy":"HelloWorkmanager",
				#"ChunkedStreamingMode":True,
				"IsRequired":True,
				"SameTxForResponse":True,
			},
			#...
		},
		"LOCAL":{
			"default/local.ProxyService":{
				#Setup customization properties
			},
			#...
		},
	},
}

Example 06 - Customize: JNDI Connection

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample06/sample06.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample06/sample06.jar":{
		#Customization type: JNDI
		"JNDI":{
			#Path to the file (JNDI), which will be customized in SBConfig
			"System/JNDI_Providers/jndi.ForeignJNDIProvider":{
				"ProviderURL":"t3://jndi.com/tomecode",
				"Username":"JndiUser02",
				"Password":"JndiPass02",
				"CacheValues":True,
				"RequestTimeout":2333,
				"Description":"Hello JNDI Tomecode",
			},
		},
	},
}

Example 07 - Customize: SMTP confugration

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample07/sample07.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
	#SBConfig file location
	"sample07/sample07.jar":{
		#Customization type: SMTP
		"SMTP":{
			#Path to the file (SMTPServer), which will be customized in SBConfig
			"System/SMTP_Servers/demoSmtp.SMTPServer":{
				"Description":"hello customization - tomecode",
				"IsDefault":True,
				"PortNumber":3999,
				"ServerURL":"smpt.server.tomecode.com",
				"Username":"tomecode",
				"Password":"helloWordTomecode",	
			},
			#"System/SMTP_Servers/demoSmtp2.SMTPServer":{
			#...
			#...
			#}
		},
	},
}

Example 08 - Customize: Proxy Service, Transport Type: JMS

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample08/sample08.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample08/sample08.jar":{
		#Customization type: Proxy Service with transport type: JMS
		"JMS":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"default/jms.ProxyService":{
				"Description":"Hello JMS - tomecode",
				"EndpointUri":"jms://localhost:16011/XAConnectionFactory/TomeRequestCode11",
				"DispatchPolicy":"SSS",
				"RequestEncoding":"UTF-16",
				"IsResponseRequired":True,
					
				#This is a configuration for Destination Type: Queue
				"DestinationTypeQueue":{
					"ResponseEncoding":"UTF-16",
					"ResponsePattern":"JMS_CORRELATION_ID",# or JMS_MESSAGE_ID
					"ResponseMessageType":"BYTES", #or TEXT
					"ResponseURI":"jms://localhost:16011/XAConnectionFactory/TomeResponseCode11",
					
				},
				"MessageSelector":"tomecodeSelector",
				"RetryCount":333,
				"RetryInterval":22,
				"ErrorDestination":"jms://localhost:16011/XAConnectionFactory/TomecodeErrorResponse",
				"IsXARequired":True,
				"JNDITimeout":333,
			},
		},
	},
}

Example 09 - Customize: Transport Level Policy for JMS and HTTP

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample09/sample09.properties

Sample Configuration File...

#OSB Configuration for deployment
#SB_SERVER={
#        "ListenAddress":"localhost",
#        "ListenPort":16001,
#        "Username":"admin",
#        "Password":"admin1234",
#}

#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample09/sample09.jar":{
		#Customization type
		"JMS":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"default/jms.ProxyService":{
				#Configuration for Transport Level Policy
				"Policy":{
					#Setup provider
					"Provider":"XACMLAuthorizer",
					#list of user
					"Users":("tome00", "tome01", "tome02"),
					#list of roles
					"Roles":("helloRole"),
					#list of groups
					"Groups":("HelloGroup01","helloGroup03"),
				}
			},
		},
		
		"HTTP":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"default/http.ProxyService":{
				#Configuration for Transport Level Policy
				"Policy":{
					#Setup provider
					"Provider":"XACMLAuthorizer",
					#List of user e.g.: ("user1","user2",...)
					"Users":"tome00", 
				}
			},
		},
	},
}

Example 10 - Customize: Business Service with HTTP Transport

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample10/sample10.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample10/sample10.jar":{
		#Customization type: Business Service with transport type: HTTP
		"HTTP":{
			#Path to the file (BusinessService), which will be customized in SBConfig
			"osrTest/out/helloOSR.BusinessService":{
				"Description":"Hello HTTP ProxyService Tome",
				"EndpointUri":"http/endpoint/tome/customizer",
				"ReadTimeout":20,
				"RequestEncoding":"UTF-8",
				"ResponseEncoding":"UTF-8",
				"ConnectionTimeout":55
			},
		},
		#...
	},
}

Example 11 - Customize: Proxy Server

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample11/sample11.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample11/sample11.jar":{
		#Customization type: Proxy Server
		"PROXYSERVER":{
			#Path to the file (Proxy Server), which will be customized in SBConfig
			"System/Proxy_Servers/Proxy.ProxyServer":{
				"Description":"Hello Proxy Server",
				"Username":"helloProxy",
				"Password":"mypassword",
				"ServerTable":{
					"TomeHost":{
						"Port":333,
						"SslPort":911,
					}
				}
			},
		},
		#...
	},
}

Example 12 - Customize: Service (Key) Provider

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample12/sample12.properties

Sample Configuration File...

#OSB Configuration for deployment
#SB_SERVER={
#        "ListenAddress":"localhost",
#        "ListenPort":16001,
#        "Username":"admin",
#        "Password":"admin1234",
#}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample12/sample12.jar":{
		#Customization type: Service Provider
		"SERVICEPROVIDER":{
			#Path to the file (Service Provider), which will be customized in SBConfig
			"tome/helloServiceKey.ServiceProvider":{
				"Description":"Hello ServiceProvider- tomecode",
				"Encryption":{
					"Alias":"hubeas01a",
					"Password":".WeblogicSSL@"
				},
				"DigitalSignature":{
					"Alias":"hubeas01a",
					"Password":".WeblogicSSL@"
				},
				"SSL":{
					"Alias":"hubeas01a",
					"Password":".WeblogicSSL@"
				}

			},
		},
	},
}

Example 13 - Customize: Alert Destination

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample13/sample13.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample13/sample13.jar":{
		#Customization type: Alert Destination
		"ALERTDESTINATION":{
			#Path to the file (Alert Destination), which will be customized in SBConfig
			"tome/sample13/helloAlertDestination.AlertDestination":{
				"Description":"Hello AllertDestination- tomecode",
				"AlertLogging":True,
				"Reporting":True,
				"SNMPTrap":True,
			},
		},
	},
}

Example 14 - Customize: MQConnection

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample14/sample14.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
        "ListenAddress":"localhost",
        "ListenPort":16001,
        "Username":"admin",
        "Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample14/sample14.jar":{
		#Customization type: MQ Connection
		"MQCONNECTION":{
			#Path to the file (MQ Connection), which will be customized in SBConfig
			"MQ/helloMq_bidingMode.MQConnection":{
				#connection type: TcpMode
				"BindingMode":{
					"MQQueueManagerName":"",
				},
				"MQVersion":"v5", #or v6, or v7
				"MQConnectionPoolSize":34,
				"MQConnectionTimeout":999,
				"MQConnectionMaxWait":666,
				"XAEnabled":True,
			},
			#Path to the file (MQ Connection), which will be customized in SBConfig
			"MQ/helloMq_tcpMode.MQConnection":{
				#connection type: TcpMode
				"TcpMode":{
					"MQHostName":"locolhost.mainframe.com",
					"MQPortNumber":32635,
					"MQQueueManagerName":"Q500",
					#"QueueManagerCCSID":0,
					"MQQueueManagerChannelName":"S01.OSB",
				},
				"MQVersion":"v5", #or v6, or v7
				"MQConnectionPoolSize":22,
				"MQConnectionTimeout":911,
				"MQConnectionMaxWait":3000000,
				"XAEnabled":True,
			},
		},
	},
}

Example 15 - Customize: business service and Proxy Service with MQ transport

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample15/sample15.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
	"ListenAddress":"localhost",
	"ListenPort":16001,
	"Username":"admin",
	"Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample15/sample15.jar":{
		#Customization type: MQ w
		"MQ":{
			#Path to the file (Business Service), which will be customized in SBConfig
			"MQ/mqbusinessService.BusinessService":{
				"EndpointURI":"mq://CICS.SA2.OSB.REQ?conn=MQ/helloMq_bidingMode",
				"RetryCount":2,
				"RetryInterval":666,
				"MessageType":"Text", #or Bytes
				"AutoGenerateCorrelationValue":True,
				"MQResponseURI":"mq://CICS.SA2.RESP?conn=MQ/helloMq_bidingMode",
				"ResponseTimeout":33,
				"PollingInterval":1300,
				"ProcessRFH2Headers":True,
			},
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"MQ/mqProxy.ProxyService":{
				"EndpointURI":"mq://OSB.REQ?conn=MQ/helloMq_bidingMode",
				"RetryCount":2,
				"ResponseMessageType":"Text", #or Bytes
				"MQResponseURI":"mq://RESP?conn=MQ/helloMq_bidingMode",
				"PollingInterval":10,
			},
		},
	},
}

Example 16 - Customize: business service and Proxy Service FTP transport

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample16/sample16.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
	"ListenAddress":"localhost",
	"ListenPort":16001,
	"Username":"admin",
	"Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample16/sample16.jar":{
		#Customization FTP
		"FTP":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"FTPsample/ftpProxy.ProxyService":{
				"EndpointURI":"ftp://domain:1739/hello/dir",
				"RecursiveScan":True,
				"DirectStreaming":True,
				"DownloadDirectory":"download/dir/test01",
				"Timeout":999,
				"FileMask":"hello*.custom",
				"PollingInterval":1300, #in miliseconds
				"ReadLimit":240,
			},
			#Path to the file (Business Service), which will be customized in SBConfig
			"FTPsample/ftpService.BusinessService":{
				"EndpointURI":"ftp://ftpserver:4739/hello/dir",
				"RetryCount":3,
				"RetryInterval":300,
				"Timeout":76,
				"Prefix":"Tome",	
				"Suffix":"Code",
			},
		},
	},
}

Example 17 - Customize: business service and Proxy Service FTP transport

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample17/sample17.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
	"ListenAddress":"localhost",
	"ListenPort":16001,
	"Username":"admin",
	"Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample17/sample17.jar":{
		#Customization FILE
		"FILE":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"FileSample/fileProxy.ProxyService":{
				"EndpointURI":"file:///c:/JDev",
				"FileMask":"tome.code",
				"PollingInterval":350,
				"SortByArrival":True,
				"ReadLimit":340,
				"ScanSubDirectories":True,
				"ArchiveDir":"dir/archive",
				"StageDir":"dir/stage",
				"ErrorDir":"dir/error",
			},
			#Path to the file (Business Service), which will be customized in SBConfig
			"FileSample/fileService.BusinessService":{
				"EndpointURI":"file:///c:/JDeveloper2",
				"RetryCount":33,
				"RetryInterval":400,
				"Prefix":"TomeTome",	
				"Suffix":"Code",
			},
		},
	},
}

Example 18 - Customize: business service and Proxy Service SFTP transport

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample18/sample18.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
	"ListenAddress":"localhost",
	"ListenPort":16001,
	"Username":"admin",
	"Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample18/sample18.jar":{
		#Customization SFTP
		"SFTP":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"SftpSample/sftpProxy.ProxyService":{
				"EndpointURI":"sftp://tomecode.com:3366/tomeDir",
				"RecursiveScan":True,
				"DirectStreaming":True,
				"RetryCount":33,
				"FileMask":"Tome.Code",
				"PollingInterval":602,
				"ReadLimit":40,
				"Timeout":500,
				"ArchiveDir":"dir/archive",
				"DownloadDir":"dir/stage",
				"ErrorDir":"dir/error",
				"SortByArrival":True,
			},
			#Path to the file (Business Service), which will be customized in SBConfig
			"SftpSample/sftpService.BusinessService":{
				"EndpointURI":"sftp://tomecode.com:3334/tomeDir/services",
				"RetryCount":32,
				"RetryInterval":340,
				"Prefix":"TomeTome",	
				"Suffix":"Code",
			},
		},
	},
}

Example 19 - Customize: business service and Proxy Service EMAIL transport

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample19/sample19.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
	"ListenAddress":"localhost",
	"ListenPort":16001,
	"Username":"admin",
	"Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample19/sample19.jar":{
		#Customization EMAIL
		"EMAIL":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"EmailSample/EmailProxy.ProxyService":{
				"EndpointURI":"mailfrom:tomeserver.com:1999",
				"SSLuse":False,
				"PollingInterval":300,
				"ReadLimit":330,
				"PassByReference":True,
				"IMAPMoveFolder":"dir/ImapFolder",
				"ArchiveDir":"dir/archiveTome",
				"DownloadDir":"dir/stageTome",
				"ErrorDir":"dir/errorTome",
			},
			#Path to the file (Business Service), which will be customized in SBConfig
			"EmailSample/EmailService.BusinessService":{
				"EndpointURI":"mailto:foo@bar.com",
				"ConnectionTimeout":2200,
				"FromAddress":"from@address.com",
				"FromName":"fromNameTome",
				"ReplyToAddress":"reploy@address.com",
				"ReplyName":"replyNameTome",
				"SocketTimeout":33,
				"SSLuse":True,
				"RetryCount":3,
				"RetryInterval":300,

			},
		},
	},
}

Example 20 - Customize: business service and Proxy Service SB transport

How to run...

$osb-wlst-customizator-Home/osbCustomizer.sh sample20/sample20.properties

Sample Configuration File...

#OSB Configuration for deployment
SB_SERVER={
	"ListenAddress":"localhost",
	"ListenPort":16001,
	"Username":"admin",
	"Password":"admin1234",
}


#Settings for OSB customizer
#The list of settings, which will be customized in SBConfig (jar) before deploying to the OSB
SB_CUSTOMIZATOR={
    #SBConfig file location
	"sample20/sample20.jar":{
		#Customization SB
		"SB":{
			#Path to the file (Proxy Service), which will be customized in SBConfig
			"SBsample/SBproxy.ProxyService":{
				"EndpointURI":"SBproxy_service-uri-tome3",
				"SSLuse":False,
			},
			#Path to the file (Business Service), which will be customized in SBConfig
			"SBsample/SBservice.BusinessService":{
				"EndpointURI":"sb://jndi_provider_uri_is_tomecode2",
				"Timeout":433,
				"RetryApplicationErrors":True,
				"RetryCount":3,
				"RetryInterval":3000,

			},
		},
	},
}