on 05-19-2010 8:56 AM
Hi Gurus,
I want to put some commonly used function into a lib which can be shared cross different project.
for example some utility class for jdbc operation.
what project should I create?
i tried to create a java project and then wrap it in a j2ee enterprise application.
when I test it, i got some class loader issue.
Best regards,
John
Hi John,
Please have a look at below documents for creating external library DC project which you can use in different project.
[A bit of (impractical) scripting for Web Dynpro - Libraries & External|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2361] [original link is broken] [original link is broken] [original link is broken];
[Libraries & External Library DC|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4512] [original link is broken] [original link is broken] [original link is broken];
Hope it will helps you,
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
to develop your own library you should do as follows:
create a java plain dc and add you dependencies to it, then develop your classes etc.
Define an assembly public part and add all you packages and classes to it, plus any resource you want exported.
Define a compilation public part in the same way, you will use it to compile your dependent DCs.
Create an ear DC which depends upon the assembly public part, and define this dependency as "bundled_lib" in the .dcdef editor. Build and deploy the ear.
Every DC which depends upon the lib must have a runtime dependency on the ear plus a build time dependency on the plain java dc.
This procedure is simpler because the lib is automatically packed in the ear and you can use NWDI as well.
Regards, Vincenzo
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.