on 12-04-2006 1:16 PM
Hello,
i've got a Java DC using JCO to connect to SAP. The DC is used by a Web Dynpro DC to call the SAP Backend. It all works fine.
But now my question: Is there a possibility to test the Java DC standalone? I always get NoClassDefFound-Exception when I try to open a connection. The Public Parts(jco) of SAP JEE are used in my Java DC.
Greetings,
Geert
Hi Geert,
to get the negative stuff out of the way: No, as far as I know there is no possibility to test the Java DC in a standalone way.
The public parts of SAP JEE theoretically contain only API - there are provided for a build-time environment (read: classpath for compilation), there is no guarantee that they contain all classes required for a runtime environment (i.e. to execute the stuff).
For execution JCO requires some native libraries that are not part of SAP-JEE. In addition there is probably smoe configuration provided by the engine. All of this is missing if you try to execute the code in your Java DC without the engine.
What would be possible is to wrap the Java DC in a J2EE Server Component/Library so that your code is executable within the engine and then do some tests in that environment - but that's probably not very sensible if you already have the WebDynpro application running on the engine.
Alternatively you could install JCO on your development machine (i.e. including native stuff) and set up an appropriate test configuration in NWDS.
Regards,
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually your DC setup is incorrect: You should not be using a Java DC to call a SAP Backend if you need to access it from a Web Dynpro. You should create Adaptive RFC models inside the Web Dynpro DC instead.
If you need to share these RFC connections amongst multiple Web Dynpro DCs, you should create a separate Web Dynpro DC that contains the models and publish these in its public part(s). Then use this public part in the other Web Dynpro DCs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.