Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Running Server with vbj and Client with jdk

Running Server with vbj and Client with jdk

Running Server with vbj and Client with jdk

I am new to CORBA and now using VisiBroker for Java 4.5.1.
I have implemented a simple echo Server and Client, and they can running properly with vbj.exe.
However, my manager wants me running the server with vbj.exe while running the client with jdk 1.2.2.  I have tried to do so, but obtaining the following error:
===== Quote =====
prompt> java -cp vbjorb.jar;vbjdev.jar;. Client
Exception in thread "main" org.omg.CORBA.BAD_PARAM:   minor code: 0  completed:
        at EchoSample.EchoServerHelper.bind(EchoServerHelper.java:55)
        at EchoSample.EchoServerHelper.bind(EchoServerHelper.java:47)
        at Client.main(Client.java:11)
===== End of Quote =====
The way that I try to bind the connection from the Client is as follows:
===== Quote =====
    // Initialize the ORB.
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null);
    // Locate an echo server.
    EchoSample.EchoServer echoServer = EchoSample.EchoServerHelper.bind(orb, "EchoServer");
===== End of Quote =====

Could anyone give me any hint what goes wrong?  Or is it not possible without using the vbj.exe for running the Client program?

Thanks in advance.

RE: Running Server with vbj and Client with jdk

Just find out the solution and post it here...
Before calling the org.omg.CORBA.ORB.init() method, some properties are being set.  Below is the extraction:
===== Quote =====
    Properties props = new Properties();
    props.put("org.omg.CORBA.ORBClass", "com.inprise.vbroker.orb.ORB");
    props.put("org.omg.CORBA.ORBSingletonClass", "com.inprise.vbroker.orb.ORB");
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, props);
===== End of Quote =====
After added the above codes, the Client can connect and communicate to the server like using vbj.exe.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close