/** * writes all the runtime information for JMS destination references * * @param parent node to add the runtime xml info * @param the J2EE component containing message destination references */ public static void writeMessageDestinationReferences(Node parent, MessageDestinationReferenceContainer descriptor) { // message-destination-ref* Iterator msgDestRefs = descriptor.getMessageDestinationReferenceDescriptors().iterator(); if (msgDestRefs.hasNext()) { MessageDestinationRefNode messageDestinationRefNode = new MessageDestinationRefNode(); while (msgDestRefs.hasNext()) { messageDestinationRefNode.writeDescriptor(parent, TagNames.MESSAGE_DESTINATION_REFERENCE, (MessageDestinationReferenceDescriptor) msgDestRefs.next()); } } } }
/** * writes all the runtime information for JMS destination references * * @param parent node to add the runtime xml info * @param the J2EE component containing message destination references */ public static void writeMessageDestinationReferences(Node parent, MessageDestinationReferenceContainer descriptor) { // message-destination-ref* Iterator msgDestRefs = descriptor.getMessageDestinationReferenceDescriptors().iterator(); if (msgDestRefs.hasNext()) { MessageDestinationRefNode messageDestinationRefNode = new MessageDestinationRefNode(); while (msgDestRefs.hasNext()) { messageDestinationRefNode.writeDescriptor(parent, RuntimeTagNames.MESSAGE_DESTINATION_REFERENCE, (MessageDestinationReferenceDescriptor) msgDestRefs.next()); } } } }