Interview Questions

What should an XPATH selector look like?

BEA WebLogic Questions and Answers


(Continued from previous question...)

What should an XPATH selector look like?

The following is an example of an XPATH selector. Pay careful attention to the use of double and single quotes.

String selector =
"JMS_BEA_SELECT('xpath', '/recipient/transport/text()') =
'email'";
tsubscriber = tsession.createSubscriber(topic, selector, false);

JMS_BEA_SELECT is a built-in function in WebLogic Server JMS SQL syntax. You put it in your selector string when you create a consumer. Note the use of single quotes around xpath, the XML tab, and the string value.

(Continued on next question...)

Other Interview Questions