[8.5.5.7 or later]

Adding SIP annotations

Add annotations to SIP 1.1 servlets to embed data directly in a SIP application and to inject resources, such as EJB or SIP utility classes.

Before you begin

You must create a SIP 1.1 servlet.

[8.5.5.8 or later]For SIP 1.1 projects with a Web 3.0 or later facet, the Create SIP Servlet wizard creates annotated SIP servlets automatically.

For SIP 1.1 projects with a Web 2.5 facet, you must manually add annotations by completing the following steps.

Procedure

  1. Open your SIP servlet class open in the Java™ editor.
  2. Click an appropriate location in your code and type the annotation (for example, @SipServlet).
    Tip: Type the @ character and click CTRL+Spacebar to see a list of annotations that you can add.
    Image showing the content assist for adding @SipServlet annotation to a servlet in the Java editor.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: t_addingSIPAnnotations.html