cancel
Showing results for 
Search instead for 
Did you mean: 

Used DCs issue

Former Member
0 Kudos

Hello,

I have a issue with adding used DCs.

I have one external library DC...say "extlib"

This has all the jar files required.

I have one Portal standalone DC...say "portaldc1"

This portal dc has java classes in the src.API package. These classes require the jars in extlib.

I have one web dynpro DC....say "webdc1"

This webdc1 uses classes in portaldc1 and also require extlib.

What kind of public parts do I have to create and add as used DCs.

I also want to make sure that, when I make changes to any classes in "portaldc1", I just build and redeploy "portaldc1"...I do not want to build and redeploy "webdc1" each time I change portaldc1.

Is this achievable?

Any help is greatly appreciated.

Thanks

MLS

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi ,

You will need to create a dc of type "External Library" and create two public parts (One of type Assembly and other of type Compilation) for an external library.

Then add the public parts as the Used DC's and compile and then deploy.

Thanks

Ritushree

Edited by: Ritushree Saha on Jun 5, 2009 10:50 AM

Former Member
0 Kudos

Karthikeya,

I will try this and let you know how it goes. Stay tuned.

Thanks

MLS

Former Member
0 Kudos

Hi Laxmi,

Did it work?

Regards,

Kartikaye

P.S: Grant if the post were helpful

Former Member
0 Kudos

Kartikaye,

Thanks for your reply.

I understand what happens in an NWDI environment. But just consider the above three DCs being created in the Local development and let me know what all public parts and used DCs to add to accomplish the requirement that I have.

Thanks

MLS

Former Member
0 Kudos

Hi Laxmi,

External Library DC : - Holds the libraries (2 public parts Compilation and Assembly)

J2EE Library DC :- Used to get the deploy the library jars. (1 Public part exposing the jars)

PortappDC : Uses J2ee Library DC (1 public part to expose generic functionality)

WD DC : Uses Portapp DC and J2ee Library DC

Please refer to link given in the earlier post on how to use external jars. I hope this is for NW 7.0 because Ce 7.1 does not have J2EE Library DC.

Regards,

Kartikaye

Former Member
0 Kudos

Kathikeya,

So you are saying that, if we change the used DC, we have to rebuild and deploy the using DC?

--MLS

Former Member
0 Kudos

Hi Laxmi,

I am considering that you are using a NWDI environment. Otherwise it is not possible to used DC unless if you are doing a local development. In case of a local development it does not matter if you dont rebuild the using DC as the locally (in NWDS) you will know if the DC is broken.

But if the development is under NWDI control, then NWDI-CBS will display the using DC has dirty in the build space. They will be rebuild by NWDI.

Please refer to the following link on broken and dirty dcs:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b7c94e-fc6b-2910-30b8-d34a7b51...

Regards,

Kartikaye

Former Member
0 Kudos

Hi Abilash,

Can you be a little more clear on what all public parts I need to create and add as used dcs.

Thanks

MLS

Former Member
0 Kudos

Hi Laxmi,

You will need to create two public parts (One of type Assembly and other of type Compilation) for an external library.

Since the external library is not deployable, it has to be assembled with another DC. In NW 2004s (7.0) this is done using a J2ee Library DC.

Please refer the following link for more information:

/people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components

As per you other question. Once a used DCs is modified and updated in NWDI. The CBS will mark the using DCs as dirty and build them. In case of a broken dependency, the DC status will change to broken.

Regards,

Kartikaye

Former Member
0 Kudos

Hi,

You have to crate "api" public part becoz of external library DC.

Thanks

Abhilasha