If you are communicating with SAP in OSGi you should also take a look at
hibersap:
http://hibersap.org/
http://blog.akquinet.de/2010/07/09/introducing-hibersap-1/
It uses sapjco under the hood but also provides a nice abstraction like
hibernate does for databases.
I helped to make the library OSGi compatible some time ago. So it should
be quite easy to use.
Unfortunately they can not directly deliver the sap jars as bundles too
as SAP has a not very permissive license.
The company behind hibersap it is also a good choice if you need support.
Christian
On 06.04.2016 09:22, Stoiber, Richard wrote:
Hello everyone,
quite a while ago we updated some of our existing applications, so
that they are now osgi bundles running inside a karaf container.
We now have the requirement for one to communicate with sap to make
BAPI calls and receive/send IDOCS.
To do that we need to use the following jars supplied by SAP:
sapidoc3.jar
sapjco3.jar
The problems we now have are, that those libraries aren’t OSGi Bundles
and also don’t work anymore if you rename them (there seems to be some
kind of check in the code).
This means we can’t put them in the Maven Repository of the Karaf (due
to Maven naming conventions) like the rest of our bundles.
Has anyone else already encountered this problem?
Does anyone have a suggestion how to solve this?
Freundliche Grüße aus Dingolfing
Richard Stoiber
Softwareentwickler
imap://cschneider111%40gmail%[email protected]:993/fetch%3EUID%3E/INBOX/karaf-user%3E11497?header=quotebody&part=1.2&filename=image001.png
<http://www.de-gmbh.com/brandaktuell.html>
DE software & control GmbH
Mengkofener Str. 21, D-84130 Dingolfing
Fon: +49 8731 3797-0; Fax: +49 8731 3797-29
Mobil: +49 176 16263638
http://www.de-gmbh.com <http://www.de-gmbh.com/>
Geschäftsführung:
Friedrich Steininger, Heino Migge, Onur Mubariz
Amtsgericht Landshut, HRB 4478
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com