Basic HTML version of Foils prepared July 15 1998

Foil 23 Getting a handle to the DataBahn (CORBA) I

From Java Distributed Collaborative Environment as a CORBA and RMI Example Tutorial: ITEA HPCC Conference Aberdeen Md. -- July 13 98. by Shrideep Pallickara


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

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998