on 07-31-2008 8:29 AM
Hi All,
I am trying to implements the Destination Service in my program. I have created various destination name through visual admin with Authentication : None. When I am try to lookup this service through JNDI lookup getting null.
<code>
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl";);
env.put(Context.PROVIDER_URL, "avggstnh.dc-ratingen.de:50104");
ctx = new InitialContext(env);
DestinationService dstService = (DestinationService) ctx.lookup(DestinationService.JNDI_KEY);
Destination destination = dstService.getDestination("HTTP", "aProperty");
HTTPDestination httpDestination = (HTTPDestination) destination;
String value = httpDestination.getUrl();
</code>
kindly correct me if I am missing something.
Thanks in advance.
Hello,
you need to add these jars to the runtime classpath:
bin/interfaces/tc_sec_destinations_interface.jar
bin/services/tcsecdestinations~service/tc_sec_destinations_service.jar
bin/ext/security.class/tc_sec_saml_util.jar
Kind regards,
Tsvetomir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.