cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro Using JavaBean Model ->Please Help

Former Member
0 Kudos

Dear All,

Can anyone provide an example webdynpro that using Javabean model?.

Help me with steps for creating webdynpro using javabean model..

with regards

kishor

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

I think you no need to specify all the classes info in the Manifest file.

Regards, Anilkumar

0 Kudos

Yes, but if all classes are java beans, I should specify all of them, right? I don't have anything but java beans in this jar.

Regards

Konstantin

Message was edited by: Konstantin Momchev

0 Kudos

Hi,

Thanks for the good explanations. But I still have one question. Should I always describe in the manifest file - each and every class, that actually is a JavaBean?

For instance, in our current projects we have over 100 bean classes that should be visible in the model.

Should we do this manually and isn't there any simplifications in NW IDE?

Thanks in advance

Message was edited by: Konstantin Momchev

Former Member
0 Kudos

Hi Kishore,

I have submitted a simple tool for generating the javaBean directly from MAX DB.

Please find the location below.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf

Do send your feedbacks )

Regards, Anilkumar

Former Member
0 Kudos

Hi Kishore

Infact You have chosen good excercise it covers all i mean MVC(Model,view, and Controller) Just folow the following URL you can try this example or you can directly import this tutorial itself , here the model is EJB,(<b>what you are looking for</b>) View is JSP..

Here is the link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/web dynpro tutorial and sample applications.faq

<b>How to access the Car Rental Web Service?</b>

Hope this helps you

Regards

RK

Former Member
0 Kudos

Hi,

If i am not wrong ,Webdynpro java bean importer doesn't support EJBs.

You need to create simple bean for import not EJB.

Most important is manifest file shoule be proper.

Regards, Anilkumar

Former Member
0 Kudos

hi,

follow this link .

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/creating your first j2ee application.pdf

This will provide you ample help on creating beans

Regards

Rohit.R.Krishnan

Former Member
0 Kudos

Hi,

First You need to create a simple java bean .

Example :Consider you have customer and material classes.

You need to create a Manifest.mf also with following entris and the bean should contain the .mf file also .

Manifest-Version: 1.0

Name: com/sap/test/customer .class

Java-Bean: True

Name: com/sap/test/material .class

Java-Bean: True

The manifest file is very important .JavaBean importer imports the model depending on the manifest file only.

In the webdynpro just you can give the bean (.jar) as input.

Regards, Anilkumar