As soon as the preconditions on Java side are met, you need to do the following things within your xUML service model to implement the Java callback:
The Java callback needs to be implemented by an <<E2EJavaPort>> on Bridge side.
| In the example, you can find a class HelloBridgePort with stereotype <<E2EJavaPort>> that implements the callback by a sendText operation. This implementing class needs to be linked to the <<JavaCallbackInterface>> by an Interface Relalization relation. The implementing operation sendText itself needs to have stereotype <<JavaCallbackOperation>>. |
| In the containment tree, you can see the port type and the operation. |
| Operation sendText is implemented by an activity diagram, which uses parameter string to write a log entry. |
Having defined the implementation, you can already start building the component diagram using the wizard.
Figure: Java Callback Components