• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/14

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

14 Cards in this Set

  • Front
  • Back
Base concepts of JMS?
● Topic: A destination used in publish/subscribe messaging. If a topic has several subscribed listeners, each message published to that topic is delivered to all listeners.
●Queue: A destination used for point-to-point messaging.
Name interfaces of the javax.jms package?
● QueueSender
● QueueReceiver
● TopicPublisher
● TopicSubscriber
Describe Dynamo implementation of JMS?
Dynamo Messaging System (DMS):
● Two JMS providers, Local JMS and SQL JMS.
● Patch Bay is an API and configuration system layered on top of JMS. Allows Nucleus components to send and receive messages. The configuration system uses an XML file to specify how these components should be connected.
How create Local JMS Destinations?
Configure /atg/dynamo/messaging/MessagingManager:

localJMSQueueNames+=/Orders

Reference it in Java:
localdms:/local/Orders
Creating and Accessing SQL JMS Destinations
By using the requiredQueueNames and requiredTopicNames properties of the /atg/dynamo/messaging/SqlJmsProvider component. For example:

requiredQueueNames+=MyApp/Orders
requiredTopicNames+=MyApp/RegistrationEvents,MyApp/FinancialEvents

To access an SQL JMS destination in your Java:

sqldms:/MyApp/RegistrationEvents
What are possibilitues of administering SQL JMS?
● Configuring Databases and Data Sources
● Adjusting the SQL JMS Polling Interval
● Removing SQL JMS Destinations and Subscriptions
● Monitoring Message Buildup
● Using the SQL-JMS Administration Interface
What is Patch bay component name and class?
Component:
/atg/dynamo/messaging/MessagingManager
Class: atg.dms.patchbay.PatchBayManager
What Patch Bay API includes?
● Message source: A component that can send messages. A message source must implement the atg.dms.patchbay.MessageSource interface.
● Message sink: a component that can receive messages. A message sink must implement the atg.dms.patchbay.MessageSink interface.
● Message filter: a component that implements both interfaces, and can send and receive messages.

All message sources, sinks, and filters must have global scope.

Patch Bay does not have separate interfaces for objects that communicate with topics and those that communicate with queues.
Describe creating message sources in Patch Bay
A message source must implement the atg.dms.patchbay.MessageSource interface.

Implement setMessageSourceContext, startMessageSource, and stopMessageSource methods.

Example:
public void sendOneMessage ()
throws JMSException
{
if (mStarted && mContext != null) {
TextMessage msg = mContext.createTextMessage ();
msg.setJMSType ("atg.test.Test1");
msg.setText ("Test text string");
mContext.sendMessage (msg);
}
Creating Message Sinks
A message sink must implement the atg.dms.patchbay.MessageSink interface. defines a single method, receiveMessage, which is called to notify the message sink. Class should be stateless.
Creating Message Filters
Message filters must implement both the MessageSource and the MessageSink interface. A message filter typically implements receiveMessage by manipulating the message in some way, then sending a new message.
Configuring Patch Bay
/atg/dynamo/messaging/MessagingManager

definitionFile=/atg/dynamo/messaging/dynamoMessagingSystem.xml.

Definition file path shouldn't be changed. Configuration consists of:
● Declaring JMS Providers
● Declaring Message Sources, Sinks, and Filters
● Connecting to Destinations
● Using Messaging Ports
● Using the Message Registry
● Delaying the Delivery of Messages
● Configuring Failed Message Redelivery
Using DMS with Weblogic JMS provider
ATG platform provides components of class atg.dms.patchbay.JMSProviderConfiguration that are preconfigured for the WebSphere and WebLogic JMS providers. By default these components are disabled, but you can enable the component for your application server by running the ATG platform with the WebLogic.JMSProvider or WebSphere.
Using a Third-Party JMS Provider with DMS
Configuring a 3rd-part provider is done through the standard Patch Bay tags.