Skip to Content
0
Former Member
Jan 04, 2006 at 09:00 AM

Java Mapping: Caching Objects

26 Views

Hello,

I have written a Java Mapping which needs to access lookup data stored in an external database.

I would like to cache the lookup data.

To get this running, I have declared static String tables and carried out the DB access in a static initialization block.

Once I test the mapping in integration builder design, I can see in the trace that my mapping class is reloaded( and the static initialization redone ) each time I run the test.

I am now struggling on whether the classloading for each test is a feature of the test framework?

Another point is, that I would like to do the database access and the caching of my lookup objects at system start and not on the first processing of a message mapping (very easy to be done in SAP Business Connector). Is there a way to do this in XI?

Thanks

Matthias