Tuesday, March 1, 2011

Tibco EMS server faq's







1.   what are the two storage methods used by Tibco EMS server?
Ans : File based and database
2.   what files are created in file based data storage method?
Ans . sync.db,async.db,meta.db
3.   what information does Meta.db contain?
Ans . durable subscribers, fault tolerant connections and other meta data.
4.   what does flow control property specifies ?
 ans . specifies the maximum size of the pending messages in server.
5.   what are the destinations of messages?
Ans : topics and queues.
6.   in how many ways destinations for messages can be created?
Ans . static :  administrator creates destinations and client programs uses the destinations
 Dynamic: here client program creates destinations during runtime
Temporary: servers connected through routes communicate through temporary destinations.
7.   what are the messaging models supported by ems serve?
Ans . point to point ( queues), pubsub (topics), multicast (topic).
8.What is the diff between exclusive queues and non exclusives ?
Ans . in exclusive – only one receiver can take message where as in non exclusive many receivers can receive msg.
9.how long the message will be stored for durable subscribers?
Ans . as long as durable subscriber exists or until msg expiration time reached or storage limit has been reached.
10. what are the different delivery modes supported by ems?
Ans . persistent, non persistent  and reliable.
11.what is the dis advantage of reliable mode delivery?
Ans . in reliable , with out knowing the status of the consumer the producer keeps sending msg to server
12. what is the condition for persistent message to be stored on disk in topics?
 Ans . there must be atleast one durable subscriber or  one must be connected to fault tolerant connection to ems server.
13. how do you distinguish dynamic queues and static queues.?
Ans . dynamic queues have *  before the queue name.
14. what happens if npsend_checkmode parameter in tibemsd.conf file is enabled?
Ans. Server sends acknowledgement for non persistent message.
15. what is shared state in fault tolerant operation ?
Ans . primary server and backup server have connection to shared state which contain information about client connection and persistant messages.
16. how many ways a back up server detects failure of primary server?
Ans. Hearbeat failure:-Primary server sends a heartbeat message to backup server  to indicate primary server is working .
 connection failure :-backup server detects the failure of tcp connection with primary server
17.what is the use of locking in fault tolerant operation?
Ans.Inorder to prevent the backup server to take the role of  primary server, the primary server logs the shared state in normal operation and during the failure of  primary server backup server takes the lock and access primary server.
18.If authorization is enabled in tibemsd.config file what is the condition to configure ems server as fault tolerance?
Ans.Server name and password for both primary and backup server should be same and username and password for both servers should match the server and password parameters in tibemsd.config file.
19. what are the changes to be made in config file for ems fault tolerant operation?
 Ans . in primary server give url of backup server  to ft_active parameter and in backup server give url of primary server for ft_active parameter.
20. different types of zones?
Ans. Multihop zone and 1hop zone.
21. what is fail safe?
Ans. In fail safe mode messages are frist stored in disk  before sending messages so that no messages are lost.
22.what is the default port number for ems server?
Ans 7222.
23. difference between rendezvous and ems?
Ans. Rvd is bus based architecture , ems is centralized architecture
24.what are different acknowledge modes?
Ans. Dups_ok_acknowlwdge,auto_acknowlwdge,client_acknowledge,no_acknowledge.
25. How many ways we can determine the life span of the message in a        queue.   What are they?
Ans: expiration parameter in queue configuration file.
JMS expiration time in queue sender.
The JMS expiration time in queue sender overrides any value given in config.
26. What are the message storing mechanisms of queues?
 Ans: persistent and non-persistent.
 Persistent: messages are stored to external storage before sending.
Non-persistent: not stored to any external storage. The information will not be   available for retrieval.
27.what is condition to create bridge?
Ans. Queus and topics must be defined as global.
28. why do we need routers ?
Ans. To transfer messages between  different ems servers.
29. what is the default  maximum size of  message?
Ans. 512mb
30. how do you configure client for fault tolerant connection?
Ans. Specify multiple server as a comma-separated list of URLs and both URLs must use same protocol either tcp or ssl.
  1. What are two properties of TIBCO EMS protocol bridging with TIBCO SmartSockets? (Choose two.)
    1. TIBCO EMS can import and export TIBCO SmartSockets messages through topics.
    2. Messages are imported on a TIBCO EMS queue only when the queue has receivers.
    3. TIBCO EMS can import and export TIBCO SmartSockets messages through queues.
    4. Messages are imported on a TIBCO EMS topic only when the topic has registered subscribers.

  1. Which command, executed on Server A, creates an active-passive route from Server A to Server B (Server B fault tolerant with Server C) that restricts messages on topic foo.bar to messages with a Quantity application property greater than 10?
    1. create route B url=tcp://B:7454,tcp://C:7454 zone_name=Z1 zone_type=mhop outgoing_topic=foo.bar selector="Quantity > 10"
    2. create route B url=tcp://B:7454|tcp://C:7454 zone_name=Z1 zone_type=mhop outgoing_topic=foo.bar filter="Quantity > 10"
    3. create route B url=tcp://B:7454,tcp://C:7454 zone_name=Z1 zone_type=mhop incoming_topic=foo.bar selector="Quantity > 10"
    4. create route A url=tcp://B:7454,tcp://C:7454 zone_name=Z1 zone_type=1hop outgoing_topic=foo.bar filter="Quantity > 10"

  1. Which two statements are true about TIBCO EMS fault tolerance? (Choose two.)
    1. TIBCO EMS fault tolerant servers both must have access to a shared state.
    2. TIBCO EMS fault tolerant servers are deployed as a primary and secondary pair.
    3. TIBCO EMS fault tolerant servers must have separate primary and secondary storage files.
    4. TIBCO EMS fault tolerant servers operate as a hot-hot deployment. Both servers can accept client connections at the same time.
    5. TIBCO EMS fault tolerant servers are responsible for replicating stored messages across the primary server and secondary server database files.

  1. Topic connection factory TCF has been configured for connections to host H port 7222. Assuming that context ctx has been established, which two expressions will succeed? (Choose two).
    1. ctx.lookup("tcp://H:7222")
    2. new TopicConnectionFactory("TCF")
    3. new TibjmsTopicConnectionFactory("TCF")
    4. (TopicConnectionFactory)ctx.lookup("TCF")
    5. new TibjmsTopicConnectionFactory("tcp://H:7222")

  1. Using TIBCO EMS, when will a topic message be ledgered to secondary storage?
    1. When the message is bridged to a queue.
    2. Whenever the message uses persistent delivery mode.
    3. When the message uses either persistent or reliable delivery mode.
    4. When there is an offline durable subscriber for the persistant message.

  1. Which two prohibit re-delivery of a message? (Choose two.)
    1. An AUTO_ACKNOWLEDGE session that completes message processing.
    2. A NO_ACKNOWLEDGE session that fails to complete message processing.
    3. A DUPS_OK_ACKNOWLEDGE session that completes message processing.
    4. An EXPLICIT_CLIENT_ACKNOWLEDGE session in which the client successfully calls acknowledge().

  1. Which three statements are true about the TIBCO EMS Administration Tool? (Choose three.)
    1. Administrators cannot be defined in an external directory.
    2. It is not possible to grant or revoke any permissions to the user admin.
    3. $admin is a special group of system administrators of which only admin can be a member.
    4. An administrator of a protect group can view users that have a different protection permission set.

  1. As shown in the diagram, EMS is located on servers A, B, C. Routing is enabled for all three servers, and active-active routes are defined between each server. All routes belong to zone Z1.

    Queue foo.bar has been created on Server B, with routed queues created to Server B from Server A and Server C. A producer P has been created for foo.bar on server A. A receiver R has been created for foo.bar on server C.Which statement is true?
EMS diagram

    1. If server B fails, it will cause messages produced by P to be stored on server A.
    2. If server B fails, it will cause producer P to be blocked until server B is restarted.
    3. If server B fails, it will cause messages produced by P to be stored on server C.
    4. If server B fails, it will cause messages produced by P to be lost, until server B is restarted.

  1. A bridge is defined from the topic foo to the queue bar. Both foo and bar have the secure property and the server authorization is enabled.

    In this situation, in order for a message to successfully reach queue bar, the producer needs permission _____.
    1. to publish on foo only
    2. to publish on foo and to send on bar
    3. to publish on foo and to receive on bar
    4. to publish on foo and to send and receive on bar

  1. Which statement describes how to enable message compression?
    1. Set message property JMS_TIBCO_COMPRESS to yes.
    2. Set message property JMS_TIBCO_COMPRESS to true.
    3. Set message property JMS_TIBCO_COMPRESS_MESSAGE to yes.
    4. Set message property JMS_TIBCO_COMPRESS_MESSAGE to true.


Answers:
1) A and D
2) A
3) A and B
4) D and E
5) D
6) B and D
7) A, B, and D
8) A
9) A
10) B
Prometric

TIBCO Developers Library: What is Business Works?



Easy programming, fast development and powerful software in creating business applications are needed by businesses in today's trend. Such software saves time, money and effort for both developers and users and produces a very high quality output. This is where TIBCO ActiveMatrix Business Works comes in to let you experience it all.
What is TIBCO ActiveMatrix Business Works?
TIBCO ActiveMatrix Business Works is a set of software that enables developers to easily create and deploy business application. It's fast, easy to develop and integrate business applications using this software. It uses a development tool called TIBCO Designer in creating business application. The designer also has an integrated tester that helps the developers debug their processes before deployment. It supports standard protocols such as HTTP/S, FTP, SMTP, JDBC, as well as Java, XML and Web Services. It is also robust in exception handling and error reporting. This software offers full visibility of business processes not just to the developer but also to the companies that use the application. It uses a web-based administration tool called TIBCO Administrator. You use this tool to manage your application, monitor the inputs, outputs, logs and even the execution of the processes. You can even tune the performance of your applications using this tool. BusinessWorks uses basic identity authentication or SSL with certificate management for its security capabilities and TIBCO Messaging such as EMS and RV for its messaging capabilities.
What are its benefits?
The benefits that you can get if you are to use BusinessWorks in creating business application are: it reduces the amount of time and effort required to develop and deploy business activities because you are provided by a designer environment that lets you design and configure processes with less coding; and it extends the life of existing business processes. Because all business processes are connected via TIBCO bus, when you create new business processes, all you just have to do is connect the application to the TIBCO bus for it to be integrated in your existing project. There is no need for you to delete your old application but you just need to integrate your new application to your old application. These benefits will really help you save time and money.
What are the key components in using BUSINESS WORKS?
The key components are TIBCO Designer, TIBCO Administrator, BusinessWorks engine, TIBCO Runtime Agent (TRA) and TIBCO Adapters. BusinessWorks engine is used to run business processes in test mode and when it is deployed. TIBCO Runtime Agent (TRA) is responsible for the status of processes, whether to run or stop, that is deployed in your machine. TIBCO Adapters are used to integrate external applications into the BusinessWorks framework.
How to use TIBCO Designer?
TIBCO Designer is so easy to use. It is similar to creating a flow chart of your process in the design panel of your working environment. You will be using the existing activities from the palette panel. All you need to do is drag and drop the activities from your palette panel to your design panel. In order to create a business process, you have to create first a process definition. Upon the creation of the process definition, the designer will automatically create a start and end activity. Then drag and drop certain activities you need. These activities have certain functions for you to use. You only need to configure them and create transitions from one activity to another. There is less encoding and it is so easy to use since it's a graphical representation of your processes.
What is an Activity?
An activity is like an object that does a specific work. For example, we have a JDBC Query activity that queries data from a database table. A Write File activity writes content to a specified file. It can be .xml, .txt, .dat and so much more. Another is the Generate error activity that throws an error or an exception in your process. One technique to handle exception and errors is by using a Catch activity. My last example is the Assign activity that sets a value to a user-defined process variable.
What is the difference between Palettes and Activities?
Palettes are sets of related activities. It organizes the activities according to their function so that it will be faster for the developers to locate the activity they needed. For example, we have a HTTP palette that has a set of HTTP related activities such as HTTP Receiver, Send HTTP Request, Send HTTP Response, Wait for HTTP Request, HTTP Connection and Proxy Configuration. We also have a JDBC palette that also has a set of JDBC related activities such as JDBC Query, JDBC Update, SQL Direct, JDBC Call Procedure, JDBC Connection and a lot more activities. There are more palettes you will encounter in TIBCO Designer, such as File, General Activities, FTP, JAVA, JMS, SOAP and a lot more.
What are Shared Resources?
Shared resources are resources that can be repeatedly reused by activities throughout the project. It can be a Schema, WSDL file, JBDC Connection, FTP Connection or HTTP Connection. For example, if you have a process that uses a JDBC Query to query a table in your database and is using a JDBC connection to connect to the database server, that JDBC Connection can be reused by other JDBC activities in your project.
How can I do looping in the Designer?
You can do looping in the Designer by Grouping the activities. The Groups feature of BusinessWorks has different loop settings. It can be Repeat until True loop, which repeats the execution of the grouped activities until the condition is met. This is similar to a Do While loop. Another is Repeat on Error until True loop, which repeats the execution of grouped activities while an error occurs until there is no error or the condition is met. There is also a While True loop, which repeats the execution of grouped activities while the given condition is met. This is similar to a While Do loop. And lastly, you can also set an Iterate group, which repeats the execution of the grouped activities for all existing values in a list. This is similar to a For Loop.
How do I deploy my process?
To deploy your process, you need to create an EAR file. You can only create an EAR file using the TIBCO Designer. In the designer, you have to use the Enterprise Archive Resources, configure that resource and use it to build an EAR file. An EAR file can contain local project resources, LibraryBuilder resources, files as specified in AliasLibrary resources and files that are needed by your application. After that, you can easily deploy the EAR file in the TIBCO Administrator. You can use and monitor the application you have deployed in TIBCO Administrator.
How do you achieve an organized, efficient and highly improved performance project?
To achieve an organized, efficient and highly improved performance project, you have to follow these BusinessWorks best practices.

* Organize your project in folders. Create a separate folder for your Processes, Adapters, Shared resources, Connection, etc
* Don't forget to Log and checkpoint important data
* Sub-process certain processes that are doing the same routine
* You must observe clear and consistent naming conventions
* Always apply configuration settings and Save project frequently
* The designer has an XPath Formula Builder in which you can create XPath expressions. Use the XPath Editor Functions to create expressions
* Always validate resources and debug errors before you deploy your application
* For a quality assured application, test your application in all kinds of scenarios including errors
Now that you know what BusinessWorks is and what it can do; increased developer productivity, fast production and superb business to business integration can be easily achieved using this software. TIBCO ActiveMatrix BusinessWorks is really a powerful tool that will benefit both developers and users.

No comments:

Post a Comment