Help needed: Using java sources in java agents

I am a bit in trouble here since DDE does not work as I expect it to. I hope there is somebody out there who has a solution to my problem. So here it is:

I am writing java code in my domino database using the Java Perspective. I created a source folder under WebContent\WEB-INF and added the folder to my build path. I am using the classes and methods I coded on my XPages and they work. Now I need to code a java agent that is supposed to run every night. A lot of the methods and classes I need for my agent are already in my source folder, so I want to access the code. But there seems to be no way to import the code into my agent, is there?

I can import sources from my file system or jar files. I can import java libraries. I can import resources from my file system, but I can not add my project source folder to the agent. Switching over to the Java Perspective and opening the agent opens a new project in my Package Explorer showing the agent and all its properties. I can now add my database project to my agent project and add the source folder to it. When I build the agent project everything is fine. After I close the agent the agent project is gone and with it my settings. The same errors reappear.

Is there a way to add my sources to my agent except for copying the classes an methods to a java library and use the library in my agent? I don’t want to have source code redundant. I am kind of stuck here and need a hint or at least someone telling me that there’s no way to get what I want.

Thanks!

A new star is born – hedersoft is now online!

I am so proud to announce that hedersoft lauched their homepage today!

Who is hedersoft?

hedersoft is a new company located in Salzkotten, Germany which provides services and sells products based on Lotus Notes / Domino. The company was founded in August 2011 by Lars Buntrock an myself (Henning Schmidt) and focusses on XPages. That is products based on XPages as well as services based on this exciting technology.

Both Lars and I worked for We4IT (sponsor of the XPages Dev Contest) until we resigned in August. We felt it was about time to stand on our own feet and hence decided to found our own business. We are very dedicated to the OpenSource community and will upload lots of stuff to OpenNTF. Lars already did so by handing in his Database Open Dialog to the XPages Dev Contest in August.

So, there is lots to expext in the upcoming months. We have just started and have so many ideas that are only waiting to get processed. One of thoses is getting our homepage translated which definitely couldn’t be done in the last couple of days. So stay tuned and stop by every now and then to see how the business evolves.