Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Corba > Disconnecting O...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 427 of 552
Post > Topic >>

Disconnecting ORB

by Jeffrey Spoon <JeffreySpoon@[EMAIL PROTECTED] > May 6, 2006 at 12:02 AM

Hello, I'm connecting using JNDI to a J2EE server, using this code

 InitialContext context = getInitialContext();
      this.context = context;

     homeObj = context.lookup("ABean");
      sharesHome = (AHome) ****tableRemoteObject.narrow(homeObj,
AHome.class);

private InitialContext getInitialContext() throws Exception {

                         Properties props = new Properties();
                // build the URL to the applet host and...
                String host = getCodeBase().getHost();

        return new InitialContext();//no args

                }//getinitalcontext




This uses the appser-rt.jar and j2ee.jar files so I can use the no
argument InitialContext. The trouble is, I don't know how to disconnect
from the server, since I don't explicitly connect to it myself. Can you
simply remove the IIOP listener somehow or do you have to use RMI in
some way?

Thanks




-- 
Jeffrey Spoon
 




 1 Posts in Topic:
Disconnecting ORB
Jeffrey Spoon <Jeffrey  2006-05-06 00:02:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 6:39:15 CDT 2008.