Hi
I want to call a helloworld bean wose jar file is deployed on a Unix box.
I am calling that bean through my Servlet which is running in a NT
environment.
The servlet program is as below....
---------------------------------------------------------------------
out.println( "Sample servlet" );
final Properties h = new Properties();
out.println( "output 1" );
h.setProperty(Context.INITIAL_CONTEXT_FACTORY,"allaire.ejipt.ContextFactory"
);
out.println( "output 2" );
h.setProperty(Context.PROVIDER_URL,"ejipt://163.231.102.97:2323");
out.println( "output 3" );
Context ctx = new InitialContext(h);
out.println( "output 4" );
HelloWorldHome home = (HelloWorldHome)
(ctx).lookup("HelloWorldHome");
out.println( "output 5" );
HelloWorld helloworld = home.create();
out.println( "output 6" );
out.println("the valkue is " + helloworld.hello(" "));
helloworld.remove();
out.println( "output 7" );
-----------------------------------------------------------------------
The output just shows me the lines "Sample Servlet" and "output1" on the
output screen.
It doesnt show any errors....any ideas what am I doing wrong...why is that
the Bean is not working?.
Thanks
Jeetu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists