()
| 207 | } |
| 208 | |
| 209 | public static MessageProducer getProducer() { |
| 210 | try { |
| 211 | checkAndInitialize(); |
| 212 | |
| 213 | if (producer != null) { |
| 214 | return producer; |
| 215 | } else { |
| 216 | return NullMessageProducer.NULL_MESSAGE_PRODUCER; |
| 217 | } |
| 218 | } catch (Exception e) { |
| 219 | errorHandler(e); |
| 220 | return NullMessageProducer.NULL_MESSAGE_PRODUCER; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | public static void initialize() { |
| 225 | checkAndInitialize(); |
no test coverage detected