tibco fundamentals

Upload: sudhan-senthil

Post on 05-Apr-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 TIBCO Fundamentals

    1/21

    TIBCO Fundamentals

    What is TIBCO?

    TIBCO makes Integration Server software for enterprises. An IntegrationServer allows a company to mix packaged applications, custom software, andlegacy software for use across internal and external networks. TIBCO's patentedapproach is called Information Bus (TIB)

    What are the modes of TIBCO BW Installations ?

    GUI mode

    Console mode

    Silent mode

    What are the Major TIBCO Products? TIBCO ActiveMatrix BusinessWorks (UI Design, SOA, BI) TIBCO iProcess ( BPM ) TIBCO PortalBuilder ( BO ) TIBCO BusinessConnect ( BI) TIBCO BusinessEvents ( BB ) TIBCO HAWK ( BB ) TIBCO EMS ( BB ) TIBCO Rendezvous ( BB )

    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 )

    What is the role of TRA?

    TRA stands for TIBCO Runtime Agent and it runs in the background on eachmachine.

    The TRA has two main functions:

  • 7/31/2019 TIBCO Fundamentals

    2/21

    1. The TRA agent is responsible for starting and stopping processes that runon a Machine according to the deployment information.

    2. Supplies the run-time environment, that is, all shared libraries includingthird-party libraries.

    What are the tools provided by TRA Installation? TIBCO Rendezvous TIBCO HAWK TIBCO Runtime Agent TIBCO Designer Java Runtime Environment Third Party core Libraries

    What are the 4 main panels of the Designer window?1. Project panel2. Palette panel3. Design panel4. Configuration panel

    What is the bare minimum required to use TIBCO Business Works TRA BusinessWorks

    What are steps to design & test a process?1. Create a new Process by selecting Process Definition from the Process

    Palette2. Design the Process by configuring the required activities between the

    Start activity and Stop activity3. To test the Process, switch to the Tester panel. Then click the (>) button

    or press F9 to load the test process

    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 Loacation2. Inside the Enterprise Archive activity add the Process Archive activity

    from the Process Palette.3. Add the self starting process / services to the Process Archive4. Click on Build Archive button in the Configuration tab in the Enterprise

    Archive activity to build the EAR file

  • 7/31/2019 TIBCO Fundamentals

    3/21

    What are the steps to build an .ear file (TestAPP) and deploy it fromCommand Prompt?1. Build the ear file using buildear utility

    buildear -s -ear /TestAPP.archive -o c:\ ..\deployment\TestAPP.ear -pc:\ ..\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 -deployconfigc:\ .. \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) & theTIBCO HAWK (hawkagent_ domain-name .exe) agent from the commandprompt or the windows services.

    2. Start the Administrator GUI in a web browser (http://host-name:port) andenter 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 andclick OK button.

    5. Under Services Check the Deploy on Save option and then click onSave button to deploy the application

    What are the steps to create a Master Domain using Domain Utility on thehost machine?

    1. Select Domain Configuration under Category List2. Select Create a New Administration Domain under Task list and click on

    Next3. Under Domain Details, input the Administration Domain & HAWK

    Cluster4. Uncheck Domain information is stored in a Database and Local

    Application data options5. Check the Show Advanced option6. Set the RV Daemon and RV Service and make sure they are the same

    ports7. Similarly set the HAWK Daemon and HAWK Service and click on next8. Set the HTTP Port and click and next9. Set the UID & PWD for the Domain and click on Finish

  • 7/31/2019 TIBCO Fundamentals

    4/21

    What are the functions of an Administrator? User Management Machine Management Application Management Repository Management

    What are the uses of grouping activities?

    Repeat a group of activities based on a condition. Iterate over a list. Repeat until condition true. Repeat on Error until condition true.

    What is the scope of user defined process variables?

    The scope of user defined process variables is only within the process in which itis defined. It does not even extend to a sub process that is invoked from thecurrent process.

    What are the reusable components in a project? Sub process WSDL Resource HTTP Connection JDBC Connection Schema Definition

    What are the various types of variables available within activities? Process Variable Local Variable Global Variable Error Variable Shared Variable

    What are the monitoring tools available in TIBCO? TIBCO HAWK TIBCO Business Events

  • 7/31/2019 TIBCO Fundamentals

    5/21

    What are the messaging tools available in TIBCO? TIBCO EMS TIBCO Rendezvous

    File, JDBC, XML Palette

    What activities are required to Create, Copy & Delete a File?

    Create File Activity - The Create File activity creates a new file or directory withthe 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 anddirectories to a new location.

    Remove File Activity - The Remove File activity removes the specified file. Thisactivity can also remove empty directories. If a directory that is not empty isspecified, an exception is thrown.

    What activities are required to Read, Write & Rename Files?

    Read File Activity - The Read File activity is used to read a file and place its

    contents into the activitys 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 movefiles. This activity can also rename directories, but you cannot use this activity tomove a directory to a new location.

    What is the use of Data Format Activity?

    The Data Format resource contains the specification for parsing or rendering atext string using the Parse Data and Render Data activities. This sharedconfiguration resource specifies the type of formatting for the text (delimitedcolumns or fixed-width columns), the column separator for delimited columns, theline separator, and the fill character and field offsets for fixed-width columns. Youmust also specify the data schema to use for parsing or rendering the text.

  • 7/31/2019 TIBCO Fundamentals

    6/21

    What are the two types of Data Format supported by TIBCO?

    Delimiter separated Fixed format

    What is the use of Field Offsets in the Data Format Activity?

    When processing Fixed Format text, you must specify the line length andthe column offsets. This allows a Parse Data or Render Data activity todetermine where columns and lines begin and end. The Field Offsets tab allowsyou to specify the format of fixed-width text.

    What is the Parse File & Render File Activity?

    Parse File Activity The Parse Data activity takes a text string or input from afile and processes it, turning it into a schema tree based on the specified DataFormat shared configuration.

    Render File Activity The Render Data activity takes an instance of a dataschema and renders it as a text string. The schema processed is based on aspecified Data Format shared configuration.

    What is the File Poller Activity?

    The File Poller process starter polls for files or directories with the given nameand starts a process when the specified change (creation, modification, deletion)is detected.

    What is the Wait For Change Activity used for?

    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, theprocess instance suspends and waits for the specified change to occur beforeresuming.

    Which Activity is used to create a Database table?

    SQL Direct

  • 7/31/2019 TIBCO Fundamentals

    7/21

    Which Activities are used to execute a stored procedure or a statement?

    JDBC Call Procedure is used to execute a stored procedure.

    SQL Direct is used to execute a database statement ( Create, Alter, Delete etc.)

    Which activity is used to establish a connection to a database ?

    JDBC Connection

    What are the steps need to establish a database connection?1. Add JDBC Connection from the JDBC Palette to the project2. Set the Connection Type to JDBC3. Select the JDBC Driver form the Drop Down List Box (ex: Oracle)4. In the Database URL, set the host-name, port-number and database-

    name5. Set the Username & Password for the database6. Test the connection

    How do you add or retrieve a record form a database?

    JDBC Query is used to execute select statement to retrieve records from adatabase

    JDBC Update is used to add records to a database via insert statement

    What is the use of Fetch in the JDBC Query Activity?

    The Fetch button on the JDBC Query activity allows you to synchronize theactivity with the contents of the database. If you do not click the Fetch button

    before applying your changes, TIBCO ActiveMatrix BusinessWorks displays anerror dialog prompting you to first fetch the output schema.

    Can we use JNDI to connect to a database instead of JDBC?

  • 7/31/2019 TIBCO Fundamentals

    8/21

    We can used the JDBC Connection Activity to use the JNDI Context (in theConnection Type Dropdown box) instead of a JDBC Connect to establish adatabase connection

    Which activity is used to create a XML Schema?

    Schema form the XML Tools palette is used to define the XML Schema

    What is XML Element & Attribute?

    XML Elements XML Elements contain the opening and closing tags, childelements, and data.

    (Ex:

    Robert

    A+

    )

    XML Attribute

    An attribute appears within the opening tag of an element. XML requires that allXML attributes have a value. This means all attributes have to be equal tosomething! In the following example active="true" is the attribute.

    (Ex:

    Robert

    A+

    )

    What is the use of Transform XML Activity?

    The Transform XML activity allows you to transform an input XML document intothe output specified by the given XSLT File shared configurationresource. Normally, transformation of data occurs by mapping process variablesto an activitys input and applying XPath expressions to perform any

  • 7/31/2019 TIBCO Fundamentals

    9/21

  • 7/31/2019 TIBCO Fundamentals

    10/21

  • 7/31/2019 TIBCO Fundamentals

    11/21

    7. Complete the design for the web service process8. 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 XSD2. Define the HTTP / JMS Connection3. Create Abstract WSDL from the XSD4. Right Click the Abstract WSDL and select Tools or Multi-User >

    Generate Web Service > From WSDL5. Select the Transport

    6.

    Generate the Concrete WSDL from the WSDL Source of the ServiceWSDL7. Define the Logical Operation8. 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 is the Operation activity in the WSDL Palette used for?

    The Operation component describes the message formats for the incomingand outgoing messages required by the activities supported by the portType.One or more Operation components can be added to a PortType componentselected in your project.

    What is the Retrieve Resource Activity used for?

    The Retrieve Resources activity generates a WSDL file containing a concreteservice (Conrete WSDL) description of any process definition that has a SOAPEvent Source process starter. This allows clients to access the WSDL for a web

    service. The client can then use the WSDL file to invoke the web service. TheRetrieve Resources activity can also be used to retrieve any other resources,including XSDs and WSIL.

    What is the SOAP Event Source Activity used For?

  • 7/31/2019 TIBCO Fundamentals

    12/21

    The SOAP Event Source process starter creates a process instance for incoming SOAP requests. SOAP is a standard protocol for invoking webservices. This allows you to create a web service using process definitions. Uponretrieval of the WSDL, the client can perform a SOAP request to invoke the webservice.

    What is the SOAP Send Reply activity used for?

    The SOAP Send Reply activity sends a reply to an application that sent a SOAPrequest. This activity is primarily used in process definitions that implement webservices. When a SOAP Event Source is used as the process starter, the SOAPSend Reply activity is used to send the reply to the request that starts theprocess instance

    What is SOAP Fault?

    The SOAP Fault element is used to carry error and/or status information within aSOAP 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 reliabilityas you may use the persistence and acknowledgment features built in thestandard. The same applies if you need to establish asynchronous

    communication or need to use the load balancing features provided by JMSservers. You can achieve this using http but the implementation would be muchmore complicated.

    What is the Context Resource used for?

    The Context Resource allows you to specify a schema to hold context datafrom an incoming request or outgoing replies to a service. This allows you topass on data, such as the username and password sent by the requestingapplication. Also, you can pass data from the process that implements an

    operation back to the Service for any outgoing reply message. The ContextResource can also be used to store SOAP headers or message attachments.

    What is the Get Context activity used for?

  • 7/31/2019 TIBCO Fundamentals

    13/21

    The Get Context activity retrieves the value of the specified Context Resource.This is useful if your process definition requires some context information from anincoming request (Like Username & Password etc.).

    Messaging

    What are the Messaging Tools Provided by TIBCO? EMS Rendezvous

    What is the difference between EMS & RVD?

    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)

    What are the Messaging Modes? P2P (Queue) Pub / Sub (Topic)

    What are the two types of Delivery Modes in Messaging? Synchronized Asynchronized

    What are the Services provided by Messaging? Reliable (At Least Once) Guaranteed (At Most Once) Transactional (Only Once)

  • 7/31/2019 TIBCO Fundamentals

    14/21

    What are files used by TIBCO to maintain the Connection details?

    Meta.db (Connection Details)

    Async.db (Fire & Forget Messages)

    Sync.db (Acknowledge Back Messages)

    What are the configuration files used by TIBCO EMS?

    Tibemsd.conf

    Queue.conf

    Topic.conf

    What is the maximum size and maximum number of message possibleusing TIBCO EMS?

    Maximum Message Size = 512MB [ Both Topic & Queue ]

    Maximum No. Of Messages = 3600 messages / second

    What is the Maximum Retransmission Time?

    Maximum Retransmission Time = 60 seconds

    What are the delivery modes supported by EMS server?

    Persistent Non-persistent Reliable

    What are the message types supported by EMS? Text XML

  • 7/31/2019 TIBCO Fundamentals

    15/21

    Bytes Stream Simple Object ObjectRef Map

    What are the different types of Queues? Static Queue Dynamic Queue Temp Queue System Queue

    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

    How do you remove individual messages from destinations?

    Using purge command, you can delete messages from queues and topics.

    What is the use of Durable option?

    Durable option enables persistence for EMS messages by creating LocalInboxes at the receiver end. The Message will exist as a reference till it is

    consumed by the corresponding receivers.

    What is JMS queue requestor?

    The JMS Queue Requestor activity is used to send a request to a JMS queuename and receive a response back from the JMS client

  • 7/31/2019 TIBCO Fundamentals

    16/21

    What is JMS topic requestor?

    The JMS Topic Requestor activity is used to communicate with a JMSapplications request-response service. This service invokes an operation withinput and output. The request is sent to a JMS topic and the JMS application

    returns the response to the request.

    What is the difference between Queues and Topics?

    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

    What is the use of secured queues and topics?

    Setting secure property to queues/topics can restrict unauthorized users frompublishing/sending and subscribing/receiving the messages.

    What is Load Balancing?

    Load Balancing is a technique to distribute workload evenly across two or moremachines or resources, in order to get optimal resource utilization, maximizethroughput, minimize response time, and avoid overload. Using multipleReceivers with load balancing, instead of a single Receiver, may increasereliability through redundancy.

    How is Load Balancing implemented on both Queue & Topic?

    Topic : Load Balancing is only possible on Queues

    Queue : Load Balancing is implemented on the receivers end. Since LoadBalancing not possible on the sender side.

  • 7/31/2019 TIBCO Fundamentals

    17/21

    What is Certified Messaging?

    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 intopackets and publish to the network. At the receiver end, RVD again converts thepackets to the message and sends it to the receiver. This message is stored onlyfor 60 seconds in the RVD before the message is lost. To avoid this, RVintroduced a concept called

    'Certified Messaging(CM)' . RVCM uses Ledger to save the messages. Thesender stores all outbound messages of the registered receivers which have anagreement in the ledger unless the sender receives an acknowledgement fromthe receiver.

    What is the difference between RVD and RVRD?

    RVD is Used for local subnet communication.RVRD is Used for Remote communication.

    What are the steps to perform Server Side Load Balancing on the localmachine?

    1. Make a duplicate copy of the cfgmgmt Folder and rename it tocfgmgmt2

    2.

    Make sure that the Server Name is same in the tibemsd.conf file in boththe folders.3. Change the port number in the second folders 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 is Fault Tolerance?

    Fault Tolerance is the ability of a system to respond gracefully to an unexpectedhardware or software failure. Fault Tolerant systems mirror all operations, i.e.every operation is performed on two or more duplicate systems, so if one fails theother can take over.

    What are the steps to setup Fault Tolerance servers on the local machine?

  • 7/31/2019 TIBCO Fundamentals

    18/21

  • 7/31/2019 TIBCO Fundamentals

    19/21

    4. Set the routing property to enabled in the tibemsd.conf files in both thefolders

    5. open factories.conf under cfgmgmt2 and change the settings for GeneralConnectionFactory, QueueConnectionFactory andTopicConnectionFactory 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 required8. 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 Adapters?

    Adapters are connectors to data sources to catch event changes. Once an Adapter catches a event change, it publishes the message to a message boxusing either EMS or RVD

    What are the different types of adapters? Technical Adapters (File Adapter, DB Adapter)

    Functional Adapters (PeopleSoft Adapter, SAP R3 Adapter) Custom Adapters

    What are the types of adapter services? Subscriber Service Publisher Service Request-Response Service

    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 )

    What is Publish by value and Publish by reference?

    In Publish by Value, all the specified columns in the source table are copied intothe Publishing table.

  • 7/31/2019 TIBCO Fundamentals

    20/21

    In Publish by reference, only the specified key column values are copied to thepublishing table.

    What is the difference between JDBC activities and ADB Adapter? ADB uses ODBC to connect, JDBC uses JDBC ADB is more suitable for instances where you have a lot of processing ADB is more suitable for instances where you want that a particular action

    on a DB Table triggers a BW process. ADB adapter is best for publishing from database. For simple inserts and updates then ADB subscriber is best. In case of insert or update to database then check if you have

    complex JDBC inserts, transaction management and other dynamicqueries then JDBC activities are best.

    JDBC is more suitable for running dynamic code where in runtime you canexecute statements with different values depending on process execution.

    What are modes of operation for File Adapter in Record Mode? Synchronous mode upon receiving an event, the publication service will

    allow other services in the instance only after it completes the processingand publishing of all the files that match the specified criteria.

    In Asynchronous mode the publication service allows other services of theinstance to receive events while it is processing and publishing a file. Bydefault Subscription service always operates in Asynchronous mode.

    What are supported SQL Operations in database adapters?

    The database adapter supports the following SQL operations for publishing andsubscribing:

    INSERT UPDATE DELETE UPDATE/INSERT (update if row exists, otherwise insert)

    What are the transport types supported by ADB adapters? Rendezvous

    JMS

    What is alias file in TIBCO?

    **This is the shared resource file,once u given the

    values we can use any where in the project.

  • 7/31/2019 TIBCO Fundamentals

    21/21

    **TIBCO Designer allows to create alias to resourcesthat can be reused across projects.Alias are used in 2 resources1)AliasLibrary- Used to alias file system resourceslike the jar files needed in the project.2)Library builder- Used to alias shared resourceslike Schemas, SSL Certs, BW processes needed duringdesign time.

    In one tibco project how many services interfaces it will be created?

    You can have 4 modes of service invocation in aproject.

    They are1. Publication service2.Request-Response Invocation Service3. Request-Response Service4. Subscription Service