summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sandbox/travelsample/services/smsgateway-corba-service/src/main/java/scatours/smsgateway/SMSGatewayCORBAServiceBootstrap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/travelsample/services/smsgateway-corba-service/src/main/java/scatours/smsgateway/SMSGatewayCORBAServiceBootstrap.java b/sandbox/travelsample/services/smsgateway-corba-service/src/main/java/scatours/smsgateway/SMSGatewayCORBAServiceBootstrap.java
index 39f44d2174..1e7ba2984f 100644
--- a/sandbox/travelsample/services/smsgateway-corba-service/src/main/java/scatours/smsgateway/SMSGatewayCORBAServiceBootstrap.java
+++ b/sandbox/travelsample/services/smsgateway-corba-service/src/main/java/scatours/smsgateway/SMSGatewayCORBAServiceBootstrap.java
@@ -50,10 +50,10 @@ public class SMSGatewayCORBAServiceBootstrap {
rootPoa.the_POAManager().activate();
SMSGatewayServant smsGateway = new SMSGatewayServant();
+ Object smsGatewayRef = rootPoa.servant_to_reference(smsGateway);
String corbaServerName = "SMSGatewayCORBAService";
NameComponent[] name = { new NameComponent(corbaServerName, "") };
- Object smsGatewayRef = rootPoa.servant_to_reference(smsGateway);
namingCtx.rebind(name, smsGatewayRef);
System.out.println("CORBA server running - waiting for requests");