Skip to Content
author's profile photo Former Member
Former Member

Integrating Java classes in EJB DC (JDI)


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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 05, 2005 at 02:10 AM

    Hello Harald,

    There is a tutorial in Here is the link



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 11, 2005 at 11:31 AM

    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,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.