on 12-20-2005 4:49 PM
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.
Hi Gabriel:
I suggest you check the configuration at Visual Administrator.
I'm following the same tutorial and I'm getting the context initialize. My problem is at this line
connection = (IBIConnection) connectionFactory.getConnectionEx(null);
always returns me null.
Good luck.
RLS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.