Professional Documents
Culture Documents
What is TIBCO?
GUI mode
Console mode
Silent mode
What are the TIBCO tools required to design, test, deploy and messaging?
• TRA (Platform)
• TIBCO BusinessWorks & TIBCO Designer (Design & Test)
• TIBCO Administrator (Deploy)
• TIBCO EMS & RVD (Messaging)
• TIBCO HAWK (Monitoring)
TRA stands for TIBCO Runtime Agent and it runs in the background on each
machine.
What are the steps to build an .ear file using TIBCO Designer?
1. Select the “Enterprise Archive” activity from “General” Palette and
configure the “Name” & “File Loacation”
2. Inside the “Enterprise Archive” activity add the “Process Archive” activity
from the “Process” Palette.
3. Add the self starting process / services to the “Process Archive”
4. Click on “Build Archive” button in the “Configuration” tab in the “Enterprise
Archive” activity to build the EAR file
What are the steps to build an .ear file (TestAPP) and deploy it from
“Command Prompt”?
1. Build the ear file using “buildear” utility
buildear -s -ear /TestAPP.archive -o c:\ ..\deployment\TestAPP.ear -p
c:\ ..\projects\TestAPP
2. Create the deployment configuration file using “AppManage” utility
AppManage -export -ear c:\ ..\deployment\TestAPP.ear –out c:\ ..
\deployments\TestAPP.xml
3. Edit the deployment configuration XML file using a text editor
4. Deploy the application using “AppManage” utility
AppManage -deploy -ear c:\ .. \deployment\TestAPP.ear -deployconfig
c:\ .. \deployment\TestAPP_Admin.xml -app TestAPP -domain Admin
-user admin -pw admin
What are the steps to deploy an application using the Administrator GUI?
1. Start the TIBCO Administrator (tibcoadmin_domain-name.exe) & the
TIBCO HAWK (hawkagent_domain-name.exe) agent from the command
prompt or the windows services.
2. Start the Administrator GUI in a web browser (http://host-name:port) and
enter the UID & PWD for the domain.
3. In the left Panel under the “Application Management” module select “All
Application”.
4. In the right Panel, click on “New Application” and select the EAR File and
click “OK” button.
5. Under “Services” Check the “Deploy on Save” option and then click on
“Save” button to deploy the application
What are the steps to create a Master Domain using Domain Utility on the
host machine?
1. Select “Domain Configuration” under “Category” List
2. Select “Create a New Administration Domain” under “Task” list and click on
“Next”
3. Under “Domain Details”, input the “Administration Domain” & “HAWK
Cluster”
4. Uncheck “Domain information is stored in a Database” and “Local
Application data” options
5. Check the “Show Advanced” option
6. Set the “RV Daemon” and “RV Service” and make sure they are the same
ports
7. Similarly set the “HAWK Daemon” and “HAWK Service” and click on next
8. Set the “HTTP Port” and click and next
9. Set the UID & PWD for the Domain and click on “Finish”
What are the functions of an Administrator?
• User Management
• Machine Management
• Application Management
• Repository Management
The scope of user defined process variables is only within the process in which it
is defined. It does not even extend to a sub process that is invoked from the
current process.
“Create File” Activity - The Create File activity creates a new file or directory with
the specified name. When creating a file, you can also provide the file contents.
“Copy File” Activity - The Copy File activity allows you to copy files and
directories to a new location.
“Remove File” Activity - The Remove File activity removes the specified file. This
activity can also remove empty directories. If a directory that is not empty is
specified, an exception is thrown.
“Read File” Activity - The Read File activity is used to read a file and place its
contents into the activity’s output.
“Write File” Activity - The Write File activity writes content to the specified file.
“Rename File” activity - The Rename File activity is used to rename or move
files. This activity can also rename directories, but you cannot use this activity to
move a directory to a new location.
The Data Format resource contains the specification for parsing or rendering a
text string using the Parse Data and Render Data activities. This shared
configuration resource specifies the type of formatting for the text (delimited
columns or fixed-width columns), the column separator for delimited columns, the
line separator, and the fill character and field offsets for fixed-width columns. You
must also specify the data schema to use for parsing or rendering the text.
What are the two types of Data Format supported by TIBCO?
• Delimiter separated
• Fixed format
When processing “Fixed Format” text, you must specify the line length and
the column offsets. This allows a Parse Data or Render Data activity to
determine where columns and lines begin and end. The Field Offsets tab allows
you to specify the format of fixed-width text.
“Parse File” Activity – The Parse Data activity takes a text string or input from a
file and processes it, turning it into a schema tree based on the specified Data
Format shared configuration.
“Render File” Activity – The Render Data activity takes an instance of a data
schema and renders it as a text string. The schema processed is based on a
specified Data Format shared configuration.
The File Poller process starter polls for files or directories with the given name
and starts a process when the specified change (creation, modification, deletion)
is detected.
The Wait for File Change activity waits for a file creation, modification, or deletion
event to occur during process execution. When this activity is executed, the
process instance suspends and waits for the specified change to occur before
resuming.
SQL Direct
Which Activities are used to execute a stored procedure or a statement?
“SQL Direct” is used to execute a database statement ( Create, Alter, Delete etc.)
JDBC Connection
The Fetch button on the “JDBC Query” activity allows you to synchronize the
activity with the contents of the database. If you do not click the Fetch button
before applying your changes, TIBCO ActiveMatrix BusinessWorks displays an
error dialog prompting you to first fetch the output schema.
“Schema” form the “XML Tools” palette is used to define the XML Schema
XML Elements XML Elements contain the opening and closing tags, child
elements, and data.
(Ex:
Robert
A+
XML Attribute
An attribute appears within the opening tag of an element. XML requires that all
XML attributes have a value. This means all attributes have to be equal to
something! In the following example active="true" is the attribute.
(Ex:
Robert
A+
The Transform XML activity allows you to transform an input XML document into
the output specified by the given XSLT File shared configuration
resource. Normally, transformation of data occurs by mapping process variables
to an activity’s input and applying XPath expressions to perform any
transformation. If you have an XSLT file that you are using for transformations, or
if an outside source supplies an XSLT file, this activity allows you to use the
XSLT file instead of manually creating the mappings.
The Parse XML activity takes a binary XML file or an XML string and processes
it, turning it into an XML schema tree based on the XSD or DTD specified. The
preferred way to parse XML files is to use a Read File activity set to binary mode
to read the XML file. Then pass the binary file contents to the Parse XML activity.
The Render XML activity takes an instance of an XML schema element and
renders it as a stream of bytes containing XML or an XML string. The schema is
processed based on the XSD file specified.
What is WSDL?
WSDL stands for Web Services Description Language. A WSDL file is an XML
instance of the XML Schema. A WSDL resource is composed of a series of
definitions that describe the format and roles of messages used in web services.
The WSDL palette is used for creating, editing, validating, importing, and viewing
WSDL files. These files are shared resources that describe web services. The
WSDL palette’s resources are used to create and reuse abstract definitions,
namely:
• Messages, which describe the data being exchanged
• PortTypes, which define a set of operations
• Operations, which describe the activities supported by the web service
What are the two types of WSDL required to create a Web Service?
• Abstract WSDL (Describes Structure & Elements)
• Concrete WSDL (Abstract WSDL with Transport)
What are the basic components of a WSDL?
• Message (Contains the request and response of a web service)
• PortType (Logical Folder to organize the web service resources)
• Operation (Services offered by the web service)
Service Palette
What is the advantage of using the Service Palette over the SOAP Event
Source?
Using the SOAP Event Source, you can run only one operation at a time. While
using the Service Palette you can run multiple operations simultaneously
What are the steps to create a web service using “SOAP EventSource”?
1. Define XSD
2. Define the HTTP / JMS Connection
3. Create Abstract WSDL from the XSD
4. Define the Process for the web service and replace “Start” Activity with the
“SOAP Event Source” Activity from the SOAP Palette
5. Set the “Port Type” to Abstract WSDL and the Transport to HTTP / JMS
Connection for the “SOAP Event Source”
6. Copy the XML WSDL form the “SOAP Event Source” to create the
Concrete WSDL
7. Complete the design for the web service process
8. Create a Client Process and invoke the web service using the “SOAP
Request Reply” Activty.
9. Set the “Service” Of the “SOAP Request Reply” to point to the Concrete
WSDL.
What are the steps to create a web service using Service Palette?
1. Define XSD
2. Define the HTTP / JMS Connection
3. Create Abstract WSDL from the XSD
4. Right Click the Abstract WSDL and select “Tools or Multi-User” >
“Generate Web Service” > “From WSDL”
5. Select the Transport
6. Generate the Concrete WSDL from the “WSDL Source” of the Service
WSDL
7. Define the Logical Operation
8. Create a Client Process and invoke the web service using the “SOAP
Request Reply” Activty.
9. Set the “Service” Of the “SOAP Request Reply” to point to the Concrete
WSDL
The Operation component describes the message formats for the incoming
and outgoing messages required by the activities supported by the portType.
One or more Operation components can be added to a PortType component
selected in your project.
The SOAP Send Reply activity sends a reply to an application that sent a SOAP
request. This activity is primarily used in process definitions that implement web
services. When a SOAP Event Source is used as the process starter, the SOAP
Send Reply activity is used to send the reply to the request that starts the
process instance
The SOAP Fault element is used to carry error and/or status information within a
SOAP message.
What is the difference between "SOAP over JMS" and "SOAP over HTTP"?
The advantage of using “SOAP over JMS” over “SOAP over HTTP” is reliability
as you may use the persistence and acknowledgment features built in the
standard. The same applies if you need to establish asynchronous
communication or need to use the load balancing features provided by JMS
servers. You can achieve this using http but the implementation would be much
more complicated.
The “Context Resource” allows you to specify a schema to hold context data
from an incoming request or outgoing replies to a service. This allows you to
pass on data, such as the username and password sent by the requesting
application. Also, you can pass data from the process that implements an
operation back to the Service for any outgoing reply message. The Context
Resource can also be used to store SOAP headers or message attachments.
Messaging
EMS
• Uses TCP
• Functions within the IP Layer
• Can be used within the Intranet and the Internet
• Slower than RVD
RVD
• Uses UDP
• Functions within the Network Layer
• Considerably Faster than EMS
• Can be used only within the Intranet (LAN)
Tibemsd.conf
Queue.conf
Topic.conf
What are the permissions that you can grant to users to access queues?
• Receive
• Send
• Browse
What are the permissions that you can grant to users to access topics?
• Subscribe
• Publish
• Durable
• Use_durable
Using purge command, you can delete messages from queues and topics.
The JMS Queue Requestor activity is used to send a request to a JMS queue
name and receive a response back from the JMS client
What is JMS topic requestor?
Queue
• Guaranteed Service
• Only the Target gets the message (One message per Consumer)
• Uses Peer-to-Peer Mode to deliver messages
• Blocking
• Load Balancing is possible
Topic
• Reliable Service
• Everyone active gets the message (One message may Consumers)
• Uses Pub / Sub mode to deliver messages
• Non-Blocking
• Load Balancing is not Possible
Rendezvous (RV) uses 'UDP'. Therefore each message is sent as a packet with
a sequence number and a subject attached. So, RV is also called as "Subject
Based Messaging". Rendezvous Daemon (RVD) converts the message into
packets and publish to the network. At the receiver end, RVD again converts the
packets to the message and sends it to the receiver. This message is stored only
for 60 seconds in the RVD before the message is lost. To avoid this, RV
introduced a concept called
What are the steps to perform Server Side Load Balancing on the local
machine?
1. Make a duplicate copy of the “cfgmgmt” Folder and rename it to
“cfgmgmt2”
2. Make sure that the Server Name is same in the “tibemsd.conf” file in both
the folders.
3. Change the port number in the second folder’s “tibemsd.conf” file (listen =
tcp://xxxx)
4. Start both copies of the servers from the command prompt (ex: C:\ ..
\ems\5.1\bin\tibemsd –config “C:\ .. \cfgmgmt\ems\data\tibemsd.conf”)
5. In TIBCO Designer, modify the JMS Connection “Provide URL” to contain
both the servers ( ex: tcp://localhost:7222 | tcp://localhost:7223)
What are the steps to setup Fault Tolerance servers on the local machine?
1. Make a duplicate copy of the “cfgmgmt” Folder and rename it to
“cfgmgmt2”
2. Make sure that the “Server” Names and “Listen” ports are not the same in
the “tibemsd.conf” file in both the folders.
3. Change the port number in the “tibemsd.conf” file (i.e ft_active = “listen
port of the other server”) in both the “cfgmgmt” folders.
4. Start both copies of the servers from the command prompt (ex: C:\ ..
\ems\5.1\bin\tibemsd –config “C:\ .. \cfgmgmt\ems\data\tibemsd.conf”)
Some applications require the same message to be sent to more than one
destination possibly of different types. So we use bridges.
Both are used to channel messages from senders to receivers. Bridge act as
connector between two different queue and Routes act as connector between
different server for sending message and receiving acknowledgement of
delivery.
What are the steps required to create a Route between two Servers?
1. Make a duplicate copy of the “cfgmgmt” Folder and rename it to “cfgmgmt2”
2. Make sure that the Server Name is NOT the same in the “tibemsd.conf” file
in both the folders.
3. Change the port number in the second folder’s “tibemsd.conf” file (listen =
tcp://xxxx)
4. Set the routing property to enabled in the “tibemsd.conf” files in both the
folders
5. open factories.conf under “cfgmgmt2” and change the settings for
GeneralConnectionFactory, QueueConnectionFactory and
TopicConnectionFactory URL to (tcp://xxxx)
6. Create Route on Server 1 (route “Server2-Name” url=tcp://localhost:xxxx)
7. Create global queue / topics on both servers as required
8. Start both copies of the servers from the command prompt (ex: C:\ ..
\ems\5.1\bin\tibemsd –config “C:\ .. \cfgmgmt\ems\data\tibemsd.conf”)
9. Test the route by using queue / topic in a BW Process
Adapters
What are the 3 main configuration elements common for all Adapters?
• Design Time ( For BW Testing )
• Run Time ( For Admin Deployment )
• Service ( Pub / Sub, Request-Reply )
In Publish by Value, all the specified columns in the source table are copied into
the Publishing table.
In Publish by reference, only the specified key column values are copied to the
publishing table.
The database adapter supports the following SQL operations for publishing and
subscribing:
• INSERT
• UPDATE
• DELETE
• UPDATE/INSERT (update if row exists, otherwise insert)