4 Assemble an Adapter or Event Bean
You typically bundle custom adapters and event beans in the same application JAR file that contains the other EPN components. Alternately, you can bundle the custom adapter and its factory or the event bean and its factory in their own respective JAR file so that you can reference them from other application bundles.
For example, when two different applications read data coming from the same data feed provider and both applications have the same event types, it can make sense to share a single adapter implementation. With this approach, you do not have to duplicate the custom adapter implementation in two different applications.
This chapter includes the following sections:
4.1 Assemble a Custom Adapter in its Own Bundle
When you assemble a custom adapter in its own bundle, do
not declare it in the assembly file with the wlevs:adapter
element. You use this element to declare the custom adapter in the
assembly file of the application bundle that uses it.