@Override public JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName( String name) { for (Iterator itr = getJmsDestinationReferenceDescriptors().iterator(); itr.hasNext();) { JmsDestinationReferenceDescriptor jdr = (JmsDestinationReferenceDescriptor) itr.next(); if (jdr.getName().equals(name)) { return jdr; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionbeanhasnojmsdestrefbyname", "This bean {0} has no resource environment reference by the name of {1}", new Object[] {getName(), name})); }
this.getJmsDestinationReferenceDescriptors().addAll(other.getJmsDestinationReferenceDescriptors()); this.getMessageDestinationReferenceDescriptors().addAll(other.getMessageDestinationReferenceDescriptors()); this.getResourceReferenceDescriptors().addAll(other.getResourceReferenceDescriptors());
for (Iterator it = getJmsDestinationReferenceDescriptors().iterator(); it.hasNext();) { JmsDestinationReferenceDescriptor next =