Changeset 3885
- Timestamp:
- 04/09/08 15:12:11 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/sockethl7listener/src/org/openmrs/module/sockethl7listener/TestSimpleServer.java
r3725 r3885 27 27 public void initialize(TaskConfig config) 28 28 { 29 AdministrationService adminService = Context.getAdministrationService(); 30 31 this.taskConfig = config; 32 33 String portString = this.taskConfig.getProperty("port"); 34 35 if (portString == null) 36 { 37 portString = adminService 38 .getGlobalProperty("sockethl7listener.port"); 39 } 40 29 41 try 30 42 { 31 AdministrationService adminService = Context.getAdministrationService();32 String portString = adminService.getGlobalProperty("sockethl7listener.port");33 43 Integer port = null; 34 44 … … 41 51 } 42 52 43 this.taskConfig = config;44 53 this.server = new SimpleServer(port, LowerLayerProtocol 45 54 .makeLLP(), new PipeParser());