Showing results for 
Search instead for 
Did you mean: 

Integrating Java classes in EJB DC (JDI)

Former Member
0 Kudos


I am developing an EJB application in a JDI environment, that is, using DCs. Apart from regular EAR, EJB, WD development components we need to create a DC which contains simple POJOs - common Java classes such as value objects, exceptions, etc. which will be used within other DCs.

Therefore, I first created a regular Java DC, coded all appropriate classes and then referenced the DC from within my EJB DC using the "Used DCs" dialog.

It did not work out - the CBS cannot find the files.

Then I found out that the solution might be to use a J2EE Library DC instead of a common Java DC. It tried it as described in the help but again, no success.

Does anyone have a short explanation or any suggestions how I can get this to work?

Thanks in advance!

Harald Schubert

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Harald,

in the Java DC you have to publish the classes (or entire packages) in a public part with purpose "compilation". This allows the component make to find those classes when building the using DC. Into this public part you normally only put the classes that are needed for compiling others, i.e. the public API.

You need a second public part of type "assembly" for packaging the classes in order to deploy and execute them. This second public part normally contains all the classes of the Java DC. Because this public part has a different purpose it cannot be used when compiling other DCs. It is only for packaging.

It is your choice whether you package this Java DC into your application or whether you package it into a J2EE server library (and reference the library in the application-j2ee-engine.xml).

Hope this helps,


Active Participant
0 Kudos

Hello Harald,

There is a tutorial in Here is the link