Forums Register Login

JNA can be used to access COM based dll ?

+Pie Number of slices to send: Send
Dear friends,

I am having two dlls, one is C based and one is Microsoft COM based. Can I use a single JNA(https://jna.dev.java.net) library to access both dlls from my java applicatiobn ? or is there any other library that i can use for this purpose ?

I can access only C library using JNA. for accessing COM based library there is com4j(https://com4j.dev.java.net/). But I need only one library for both purpose.. Any Idea?
+Pie Number of slices to send: Send
You can use the facade design pattern.
This facade class then has references to both smaller libraries. For each method you want available, create it and just call the smaller librarry methods:
You don't like waffles? Well, do you like this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1566 times.
Similar Threads
JNI - dll method invocation not working despite correct signature
Java GUI calling C++ dll and shared lib
Using JNA in web application
java - DLL communication
Twain Dll
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:23:30.