Creating Java agent projects
You can create a Java™ agent project to process events by using Java code.
Before you begin
Procedure
- Click , and then click Next.
- Enter a name for the new Java agent project, and select the solution project to which you want to attach the new agent.
- Specify an agent name and a bundle symbolic name, and then
click Finish. The bundle symbolic name must comply with OSGi naming conventions. By default, the wizard prefixes this name with the name of the solution project to ensure its uniqueness and avoid conflicts between solutions with similar agents.Typically, the symbolic name follows the package name style syntax, for example
com.example.agent.The agent name determines the name of the Java class that is created and the bundle symbolic name determines the package in which the class is created.
Results
The Java agent project contains an agent.adsc file to define the routing logic, and an agent_name.java class.
What to do next
Complete the agent descriptor agent.adsc file to define the bound entity of the agent, and the events to process.