on 05-05-2005 5:26 AM
Hi,
I am trying to call a java webservice from another java webservice.but it fails nad everytime i get the lookup exception.
Scenario:
Webservice 1: a
Webservice 2: b
//creating the initial Context
InitialContext context = new InitialContext();
//doing the jndi lookup for webservice "a"
Object ejbObj = context.lookup( "localejbs/a" );
//casting it to the required object
Object obj = ( ( aHome ) ejbObj ).create();
Any help will be appreciated.Thanks in advance.This is bit urgent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shouldn't it be context.lookup("java:comp/env/services/a"); ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.