cancel
Showing results for 
Search instead for 
Did you mean: 

Web dynpro dc compoent controller method call from Java dc class file

Former Member
0 Kudos

Hi All,

Is it possible to call a wd java component controller method from a java dc class file?

I have declared wd java dc as used dc in java dc.Any poiters for the same would be really helpful.

Thanks in Advance.

regards

Radhika Kuthiala

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

short answer: No.

1. using WD references outside of WD DCs is unsupported and will at least show a warning when you try to deploy. Correct usage of runtime dependencies is not predictable.

2. WebDynpro Controllers have a lifecycle that is controlled by the Framework. Even if you manage to initialize a Controller via "new" and use a method, the Controller will never have all the state-information it contains when started regualary. (think of mapped context, context attributes in general, code called in wdInit ...) I would suppose it is possible to implement a runnable low-profile example that still works, but as soon as you try to use "higher" concepts of WD (which would be the only reason to use a WD Component Controller at all), you will definitely fail.

3. Think of it as calling EJBs Session Beans via "new", but more complex.

hope that helps

Jan