cancel
Showing results for 
Search instead for 
Did you mean: 

Calling DLL in Webdynpro

Former Member
0 Kudos

Hello Everybody,

Can we take use of DLLs in webdynpro?

I have some functionality embedded in DLL and wants to take use of that functionality. Is there any procedure to take use of?

Waiting for reply.

Thanks in advance,

Bhavik

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hello Bhavik,

To use DLL from Java you need Java Native Interface(JNI). Check appropriate tutorial http://java.sun.com/docs/books/tutorial/native1.1/

and

http://bdn.borland.com/article/0,1410,20679,00.html

...

http://www.google.com/search?hl=en&q=howtousedllinjava&btnG=GoogleSearch

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

thanks for your reply.

I am thinking with this thing only.

But, is there anything else?

Is there any method to declare that Dll as API and take use of that api etc?

Thanks,

Bhavik

Former Member
0 Kudos

<i>But, is there anything else?

Is there any method to declare that Dll as API and take use of that api etc?</i>

Nothing. JNI is the only way. At least, it is the simplest one: more complex but correct in J2EE environment is to wrap functionality as Resource Adapter.

If your DLL is a COM library, then you probably may use some Java toolkits that create wrappers automatically for you (but it will be still JNI underneath).

It seems you are really missing MS-only J++ features

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi Valery,

Thanks for reply.

What is the procedure to create java wrappers for DLL COM library?

Regards,

Bhavik

Former Member
0 Kudos

This is specific by toolkit used.

However, the sequence is almost the same for all of them:

1. Generate wrappers sources via some supplied wizard (can output Java or Java and C/C++ code)

2. Compile Java sources

3. Build helper dlls (from C/C++ sources)

4. Use

http://www.google.com/search?q=JavaCOMbridge

VS

Answers (0)