1 | public void getDataBahnHandle() { |
2 | try { |
3 | _chatSession.createBahn(partyName, "Chat"); |
4 | System.out.println("New Party created"); |
5 | } catch (jdceBahnException e) { |
6 | System.out.println("Exception in creations" +e); |
7 | } catch (Exception e) { |
8 | e.printStackTrace(); |
9 | } |
10 | long startTime = System.currentTimeMillis(); |
11 | try { |
12 | // Initialize the ORB. |
13 | org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(this, null); |
14 | |
15 | /* Get a reference to the Naming Service */ |
16 | org.omg.CORBA.Object nameServiceObj = |
17 | orb.resolve_initial_references("NameService"); |
18 | if (nameServiceObj == null) { |
19 | System.out.println("Name Service Object = null"); |
20 | return; |
21 | } |
22 | org.omg.CosNaming.NamingContext nameService = |
23 | org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj); |
24 |