protected Properties readMessageRouterProps ( Bundle bundle ) { Properties props = null ; // Use getEntry to load the file instead of getResource, since // getResource will cause the bundle to resolve itself, which // we don't want to do. final String mrpFileName = "/META-INF/MessageRouter.properties" ; URL propFile = bundle . getEntry ( mrpFileName ) ; if ( propFile != null ) { props = new Properties ( ) ; try { props . load ( propFile . openStream ( ) ) ; } catch ( IOException ioe ) { // TODO will this FFDC? NO! what to do?! } } return props ; }
Read the MessageRouter . properties file from the given Bundle .