cancel
Showing results for 
Search instead for 
Did you mean: 

EJBs in dynpro

Former Member
0 Kudos

Hi all,

I want to use ejbs in my dynpro. In this case, is it required to use a command bean i.e an intermediate layer?

The ejbs will have business functions. To use an ejb using a javabean model, i'll bind the context attributes of component to that of the created model.

But since our ejb contain functions not variables so I guess the ejb can't be used directly.

Could anyone please help me in this regard.

Is command bean needed in every scenario ?

Is there any other solution to this ?

Can anyone tell me the link for using simple ejbs in dynpro except the pdf in sdn 'Using ejbs in web dynpro' ?

Thanks,

Prasanna

Accepted Solutions (1)

Accepted Solutions (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

no it is not that you have to use command beans.

Since ejbs are used to have business methods, the task is also performed using the stateless beans.

Go to J2EE perspective and create the simple ejb module project, add basic methods to this project. This basic methods you have created can be used in your front end appl. This is simply done by adding the jar file to your front end application

refer the thread for more details, it describes the two ways of ejbs.

http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/b127af68234e868cfd4e9f440aa0bf/frameset.htm

Regards,

Abhijeet.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Prasanna,

You can create very simple bean with set/get methods and some businessmethods like getXXX() and execute() methods in EJB .

Go through the blog

/people/anilkumar.vippagunta2/blog/2005/09/02/java-bean-model-importer-in-web-dynpro

/people/david.beisert/blog/2004/10/26/webdynpro-importing-java-classes-as-model

/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes

Regards, Anilkumar