cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing J2EE Module Model within WD DC

Former Member
0 Kudos

Hi all,

we're about to set up a larger scale NetWeaver application and still try to bring our J2EE model together with the WD frontend layer in a smart way.

Using NetWeaver component technology we're already able to share WD and DDIC projects, but until now we didn't manage to use the J2EE model directly in the WD projects. Nevertheless this is possible via JNDI query or XMI import.

But isn't there a better way, for instance using J2EE entity models directly in the WD project?

Thank you and best regards,

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Christian,

I am very sorry for the late replay.

1. One way to integrate an EJB is to use a JNDI query in order to get the local home interface and use this to create the bean. That way you would not use a Web Dynpro model and that is why you have to setup the context structure and the data management between bean and context by yourself.

2. You can use the XMI import. Please follow the (draft) instructions:

http://sapmats-de.sap-ag.de/download/download.cgi?id=KPHD1VP6YGV4177FKTNSGVFBEFS036262H04G2AFOM4CLI7...

3. You could generate a Web Service based on the bean and use the Web Service model of Web Dynpro.

This would be the technical solution for Sneak Preview since there is no direct support for the Java Bean model.

4. A direct Java Bean model will be supported with SAP NetWeaver '04 stack 9.

Hope that helps!

Karin

Former Member
0 Kudos

Hi Karin,

I am running into the same limitation with Java Beans as well.

I like to know when SAP Netweaver '04 stack 9 would be available?

Thanks,

Paul

Former Member
0 Kudos

Hi Karin,

Do you happen to have the Step by Step guide around? I'd tried downloading it from the server but it'd been deleted.

Btw, I have tried exporting a simple Java Class to XMI and importing it into a WebDynpro Model. The import wizard had raised a warning "no class found" from the XMI.

Any advice or info will be appreciated.

Thanks,

Paul

Former Member
0 Kudos

Hi Paul,

to import XMI models successfully some conditions according XML/UML versions must be matched and some specific "marking" of model parts for export to Web Dynpro has to be done.

You can find a detailled description <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c5/a9592b4405c140b86f5a2e7aecc0ae/frameset.htm">here</a>.

Regards

Stefan

Former Member
0 Kudos

Stefan,

Thanks for the quick response. My objective is to export a simple EJB to XMI so that I could import it into a Model Class in WebDynpro for easy management and model node mapping.

Do you happen to know where I can find sample XMI files to begin with? I am using Together NWDS.

Thanks again!

-Paul

Former Member
0 Kudos

Background:

1) XMI was generated by "Together 6.2" from a simple class with several properties with simple types and collection

2) Imported the XMI to create WD Model Class throught he Wizard

However, the wizard returned an error message "Class not flagged for WebDynpro Import".

Does any know how to flag the class for WebDynpro Import.

Thanks,

Paul

Former Member
0 Kudos

Hi Paul,

I've answered this in the following thread:

Best regards,

Christian

Former Member
0 Kudos

Hi Paul,

sorry for the delay. I didn't even see your question, since there were some problems with the forums.

BTW, Christian's answer is correct.

Best regards,

Stefan

Former Member
0 Kudos

Thank you Christian and Stefan.

You've saved my life....

Many thanks...... _