on 03-25-2008 7:05 PM
Hi,
I have the need to 'Extend' the standard JCO.Client class, such that I can override the execute method to perform some additional functionality, I have implemented the following,
***********************************************
package some.company.jco;
import com.sap.mw.jco.*;
import java.util.Properties;
public class Client extends com.sap.mw.jco.JCO.Client {
public Client(Properties arg0) {
super(arg0);
// implement all constructors
}
public void execute(com.sap.mw.jco.JCO.Function function)
{
super.execute(function);
// perform some custom actions
}
}
***********************************************
This compiles fine in Eclipse 3.0, but I am using NWDS 15 (NW04 SP15) which runs on eclipse 2.1.2 and this results in a compilation error of 'The compilation unit indirectly references the missing type com.sap.jdsr.writer.DsrIPassport(....)
From my investigation I believe that this issue is a result of the earlier Eclipse build being 'over zealous' in searching for dependent classes.
So that I can successfully compile this class in NWDS 15 can anyone tell me the JAR file within which the file 'com.sap.jdsr.writer.DsrIPassport ' is enclosed, so that i can add this to my classpath.
Thanks
Ciaran
Hi Ciaran,
I'm using another approach. I think that it's better to create a manager class like this:
public class JCoManager
{
public connect(Parameter para) {....}
public disconnect() {.....}
public JCO.Function createFunction(String name) {....}
public void execute(JCO.Function function) {......}
}
Best regards,
Mathieu
PS : reward points if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.