on 01-02-2007 7:37 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.