on 08-18-2008 12:34 PM
hai ,
am new to webdynpro for java ... Am trying to import ejb bean jar to web dynpro ..
Steps as follows
i) copy the bean jar to wd project lib folder
ii) Set classpath
SampleWD - > Model
Model -> create model
Model name : Samplemodel
Model package : com.sample
Local jar file : C:\sap\workspace\SampleWD\lib\addbean.jar -- getting error in this step as Invalid Class - java bean not available for import
can anybody help me ..
Thanks in advance...
regards,
Krish
Hi Krish,
You Can use EJB Model in java Dynpros, Refer to these links you will find all The Process for Developing an application using EJB's.
[Importing Enterprise JavaBean (EJB) Models|http://help.sap.com/saphelp_nwce10/helpdata/en/45/dd45e4bc295595e10000000a1553f7/content.htm]
[Enterprise JavaBeans for Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20b21892-c31c-2a10-f484-fcef1eaf8c4f]
[SAP NetWeaver J2EE Preview: Application Development with the EJB 3.0 Programming Model|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0914ef0d-0d01-0010-beb9-d85ef5a6188d]
check this Blog : [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3511] [original link is broken] [original link is broken] [original link is broken];
Sample Example for Importing Java Beans.
[Using EJBs in Web Dynpro Applications|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
create an ejb module Project
apply a stateless session bean, implement your business logic and add the methods to interface
right click your ejb project and select Development Component > Show In > Component Properties from context menu
switch to the permissions tab and select Entity forwarding
create a Java EE Enterprise Application Archive (ear) file and reference your ejb
create WebDynpro DC
import your ejb
I Hope This Information might be Helpful for you.
Regards,
Sharma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krish,
In addition to Madhu's suggestion,
As per the Java Bean Model creation steps, you will need to add the Commanad Bean JAR too in your Project, and while creation of Model, you need to select this Command Bean JAR and not the Bean Project JAR.
Regards,
Alka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krish,
Add ejb20.jar as External jar ( jar file will be there in the server installation folders) in the Java Build Path of webdynpro project.
This will solve your issue.
Thanks
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.