Skip to Content
Former Member
May 26, 2004 at 08:51 AM

How to build/use a library for WebDynpro related utility classes


Hi all,

i tried to build a J2EE library to "pack" some utility classes together, which should only exist once in the container (generic sorting, filtering of context elements and more). I succeeded finally, but i'm not sure, if this is "legal" anyway or if there's a better way to achieve this. The library looks like this:

1. The classes are contained in one single jar at the moment, just for sake of simplicity. This will change in the future.

2. Since some of the utility classes are referencing WD-classes (like WDRuntimeException) again, an outgoing weak reference to the webdnypro service is defined. The Weak Reference appliance matrix in: says, this is illegal for a library? On the other hand, there are some libraries like the "Remote Profile Library", which also have outgoing service references.

Here's the provider.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE provider-descriptor SYSTEM "library.provider.dtd">

Any help is appreciated.