Hello,
We are trying to connect to our BW System from netweaver using this code, we followed the tutorial "How to use BI Java SDK in a web Dynpro application" as a reference, but after compiling we get this error:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
Any Ideas how to solve this?
The code we are using:
IConnectionFactory connectionFactory = null;
IConnectionSpec connectionSpec = null;
IBIConnection connection = null;
Context initctx = new InitialContext();
connectionFactory =
(IConnectionFactory) initctx.lookup(
"deployedAdapters/SDK_XMLA/shareable/SDK_XMLA");
connectionSpec = connectionFactory.getConnectionSpec();
// establish connection using default connection properties
connection =
(IBIConnection) connectionFactory.getConnectionEx(null);
THANKS
Gabriel P.