- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a requirement to call a Java code from Magento. Are there any in built API's in magento to do that or should we customize the PHP code to directly call the Java code.
Please guide me.
Thanks,
Ravi Teja
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I really hope you don't need to exec() to call your Java code! On a recent integration with a customer's Java back-office we wrapped the Java application in a small servlet-based HTTP API and called it from Magento using Varien_Http_Client - this will remove the time taken for your application to bootstrap itself. You will need to discuss the options with your Java developers, however.
I hope that helps,
Aaron
www.iweb.co.uk | Magento Small Business Partner
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento Customization to integrate with Java Code
No built in API for this, you can create custom php code and run java application with exec()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I really hope you don't need to exec() to call your Java code! On a recent integration with a customer's Java back-office we wrapped the Java application in a small servlet-based HTTP API and called it from Magento using Varien_Http_Client - this will remove the time taken for your application to bootstrap itself. You will need to discuss the options with your Java developers, however.
I hope that helps,
Aaron
www.iweb.co.uk | Magento Small Business Partner