Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleidlHelloComponent/src/Makefile
...
IDL_FILES = HelloComponent
HelloComponentStubs_LIBS = acscomponentStubs
...
COMPONENT_HELPERS=on
...


We then compile and install the IDL definitions:

...

Code Block
languagejava
titlejHelloComponent/src/acsws/workshop/HelloComponentImpl/HelloComponentImpl.java
linenumberstrue
collapsetrue
//Suggested: import alma.<Module>.<Interface>Impl; //But anything, really
package acsws.workshop.HelloComponentImpl;
 
//Base component implementation, including container services and component lifecycle infrastructure
import alma.acs.component.ComponentImplBase;
 
//Skeleton interface for server implementation
import acsws.workshop.HelloComponentOperations;


//ClassName usually is <Interface>Impl, but can be anything
public class HelloComponentImpl extends ComponentImplBase implements HelloComponentOperations {
    public HelloComponentHelloComponentImpl() {
    }
    public void printHello() {
        System.out.println("Just printing 'Hello World!'");
    }
}

...

Code Block
titlecppHelloComponent/src/Makefile
...
INCLUDES = HellowComponentImplHelloComponentImpl.h
...
LIBRARIES = HelloComponentImpl
HelloComponentImpl_OBJECTS = HelloComponentImpl
HelloComponentImpl_LIBS = HelloComponentStubs acscomponent
...

...