BEA Weblogic Question: Download Questions PDF
What should an XPATH selector look like?
Answer:
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.
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.
Download BEA Weblogic Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the standard way to create threads, do initialization, etc. within the application server? | How do I put a message back on the queue for processing? |