This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello,everyone! I have been told to integrate a sort of license tools,some of which are developed by Java,some developed by C and C++.
Our company has a lot of products.Each license tool is designated to make a license for a particular product.
Now,all work fine.But,we have to train the person before he/she can issue a license using the above tools.We now want to create a web-based console to integrate these tools all,and anyone who is authorized can just select and input some information to issue a license easily.
What we have now are the java sourcecode of the tool which is developed in java and the c,c++ sourcecode of the tool which is developed in c,c++.
Does anyone has some experience in integrating java and c,c++ application? Do I need to use JNI technology? Any suggestion is welcome! [ May 04, 2006: Message edited by: Ernest Friedman-Hill ]
To integrate Java and C/C++ in the same process you have to use JNI, yes. But as you said the point of this is that you're writing a Web front end, you could also just turn all the tools into Web Services and access them via SOAP/XML-RPC/what-have-you, running the C/C++ ones under Apache, and the Java ones in Tomcat or whatever.
I think we need to start with your requirements; then we can more wisely choose from among the many possible options.
One more thing: note that everyone feels their questions are urgent; there's no need to say so in your subject line. As a matter of policy, we edit messages to remove "urgent" from the subject, as I've done here. [ May 04, 2006: Message edited by: Ernest Friedman-Hill ]
Let me explain the license tools a little further.
Basically,there are two kinds of tools,one is developed in C or C++,the other is developed in JAVA.
When we issue a license by the tool(an exe file) written in C or C++,we just click the tool then get a command-line console,then input the information of the product as prompted,at last,a license will be created and stored in the same directory as the tool.
When we issue a license by the tool written in JAVA.We run the tool.It is a GUI application,we just input the information of the product and then,a license will be created and stored in the directory which can be changed by you.
Now,I need to create a simple web console,maybe jsp,which has included the JAVA license tool and the C or C++ license tool.It is not hard to integrate the JAVA tool,but,the problem is how to integrate the C,C++ tool.
author and iconoclast
Actually, it's the GUI tool that might be hard to integrate. The command-line tool can be easily executed using Runtime.exec() from a JSP or servlet; the GUI tool, by design, has to run on the client machine rather than the server. Perhaps it could be converted to an applet; otherwise, you'll have to rip off the GUI and turn it into something that can be run on the server.
Did you change your JavaRanch display name? Yours is currently violating our site policy which requires that you use a full, real (sounding) first and last name for your display name. A single name isn't enough. You can change your display name here. Thanks!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Integration of Java application and C,C++ application