On this Page:
To realize the presented example, some preparations have to be done on Java side and on Bridge side. The full Java source code is included in the example jar files.
Preparations on Java side
Implement the Java Interface "BridgeJavaService".
public class FtpService implements BridgeJavaService<FtpServerCallback> { private FtpServer server; public void initialize(FtpServerCallback ftpServerCallback) { ... ...
Provide an Interface to be Implemented by the Bridge.
public interface FtpServerCallback extends BridgeJavaCallback { public CallbackReply afterCommand(BridgeUser user, String command, String argument, CallbackReply reply); public CallbackReply beforeCommand(BridgeUser user, String command, String argument); public CallbackReply onUploadStart(BridgeUser user, String uploadFile); ... ...
- Prepare JAR-Files.
Preparations on Bridge side
- Import the Prepared JAR File.
- Define an E2EJavaPort Implementing the Offered Interface.
Figure: FtpPortType implements the interface defined in Java
- Implement Operations by Assigning Activity Diagrams.
Figure: Implementation of the operation onUploadStart
- Run Component and Deployment wizards.
After completing the component and deployment wizards, the model is ready to be deployed.
Overview
Content Tools