Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problem of running an ejb client on Solaris

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to run a client on Solaris, it gives me an error

ERROR! Shared library ioser12 could not be found.

The Client Code is:


import java.util.*;
import java.rmi.*;
import javax.naming.*;
import sales.*;
import javax.ejb.*;
import javax.rmi.*;
import org.omg.CORBA.*;
public class SalesChannelClient{

public static void main(String args[]){

//Hashtable env=new Hashtable();
try {
Properties env = new Properties();
System.out.println("1");
env.put(javax.naming.Context.PROVIDER_URL,"iiop://192.9.44.28";);
System.out.println("2");
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
System.out.println("3");
javax.naming.InitialContext ctx = new javax.naming.InitialContext(env);
System.out.println("4");
java.lang.Object obj = ctx.lookup("SalesChannel");
System.out.println("5");
sales.SalesChannelHome home = (sales.SalesChannelHome)PortableRemoteObject.narrow((org.omg.CORBA.Object)obj,sales.SalesChannelHome.class);
System.out.println("6");
sales.SalesChannel rem = home.create("0","1");
System.out.println("7");

}

catch(Exception e){
//System.out.println(e);
e.printStackTrace();
}

}
}


Can anyone help please!!!

Thanks and Regards
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic