Changeset 87
- Timestamp:
- 07/29/13 15:53:58 (11 years ago)
- Location:
- branches/objectmqListeners
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmqListeners/src/main/java/omq/common/broker/Broker.java
r66 r87 2 2 3 3 import java.io.IOException; 4 import java.net.URL;5 4 import java.util.HashMap; 6 5 import java.util.Hashtable; … … 23 22 24 23 import org.apache.log4j.Logger; 25 import org.apache.log4j.xml.DOMConfigurator;26 24 27 25 import com.rabbitmq.client.Channel; … … 49 47 public Broker(Properties env) throws Exception { 50 48 // Load log4j configuration 51 URL log4jResource = Broker.class.getResource("/log4j.xml");52 DOMConfigurator.configure(log4jResource);49 // URL log4jResource = Broker.class.getResource("/log4j.xml"); 50 // DOMConfigurator.configure(log4jResource); 53 51 54 52 remoteObjs = new HashMap<String, RemoteObject>(); -
branches/objectmqListeners/src/main/java/omq/common/util/Serializer.java
r62 r87 48 48 try { 49 49 String className = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer.JAVA); 50 50 51 51 if (className == null || className.isEmpty()) { 52 52 throw new ClassNotFoundException("Class name is null or empty."); 53 53 } 54 54 55 55 serializer = getInstance(className); 56 56 } catch (Exception ex) { … … 62 62 } 63 63 64 public ISerializer getInstance(String type) throws SerializerException { 64 public ISerializer getInstance(String type) throws SerializerException { 65 65 if (KRYO.equals(type)) { 66 66 if (kryoSerializer == null) { … … 79 79 return javaSerializer; 80 80 } 81 82 throw new SerializerException("Serializer not found.");81 82 throw new SerializerException("Serializer '" + type + "' not found"); 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.