cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Dictionary devlopment component in Web dynpro component

Former Member
0 Kudos

Hi

I want to access a table created in the java dictionary development component in webdynpro. I dont want to use the EJB for doing this.

Regards

NagaKishore V

Accepted Solutions (0)

Answers (1)

Answers (1)

htammen
Active Contributor
0 Kudos

Hi,

there are several possibilities to achieve that.

For example

- JDO

- SQLJ

- direct access to the database via JDBC from your WD Controller (not recommended).

For more information about JDO see at

/program files/SAP/JDT/eclipse/examples

There you will find the tutorial J2EE_GettingStartedJDO

For general information about Java persistence have a look at

http://help.sap.com/saphelp_erp2004/helpdata/de/61/fdbc3d16f39e33e10000000a11405a/content.htm

Regards

Helmut

Former Member
0 Kudos

Hi Helmut

You mean to say that we create a separate SQLJ file for accessing the database and use the same in webdynpro.

Do you have any sample code and how do we create SQLJ file in NWDS and integrate with webdynpro

Regards

NagaKishore V

htammen
Active Contributor
0 Kudos

Hi NagaKishore,

I always use session EJBs and communicate with the database via JDBC.

I haven´t made experience with SQLJ yet but there is either a tutorial available or the help files document this issue.

I read about it some time ago in one of these sources and it was good documented.

So have a look there.

I would not recommend to talk to the database from within your Web Dynpro apps directly. It doesn´t correspond to the MVC pattern.

Regards

Helmut