Skip to main content Skip to complementary content

Creating a Java class


  1. From the repository tree view, expand the Code node and right click the Beans node. In the contextual menu, select Create Bean.
  2. The New Bean wizard opens. In the Name field, type in a name for the bean, for example, CXFdemobean. Click Finish to close the wizard.
  3. Change the class type to interface, change the return type to string and remove the message body.
    package beans;
    public interface CXFdemobean {
        public String helloExample(String message) ;
  4. Press Ctrl+S to save your bean.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!