0

One possible solution could be simple HTTP get or post request, but that wouldn't be secure.

2
  • Are these applications on the same machine? Are these web applications or desktop applications? What security issues are you concerned about? Commented Oct 28, 2009 at 13:54
  • What platform? Could you just use something as simple as pipes? Commented Oct 28, 2009 at 13:57

5 Answers 5

2

You can integrate Java and PHP with PHP-modules; http://php.net/manual/en/book.java.php

(Given that they are on the same machine)

Sign up to request clarification or add additional context in comments.

Comments

1

One possible solution could be simple HTTP get or post request, but that wouldn't be secure.

Why not? Do it over HTTPS and have the web service only accept connections from known IPs or via specific API keys. If a HTTPS POST request is acceptable for processing credit cards (it is), it's good enough for your app.

Comments

1

Maybe we need some more information about your problem.

One possible solution is Zend Java Bridge (http://files.zend.com/help/Zend-Server-Community-Edition/zendjbridge.html).

If PHP and Java are in different machines, please let us know why web services are not a good solution. In that case, Java RMI in combination with Zend Java Bridge would be useful.

Comments

0

An http***s*** post connection would be secure. There are many ways to affect the authentication, but this is the basic idea behind the REST concept.

This is commonly done in credit cards, as well as Amazon web service and others. You can look at those for ideas.

Comments

0

One possible solution could be simple HTTP get or post request, but that wouldn't be secure.

What do you base this premise on?

If both ends are on an internal network, it's perfectly safe.

2 Comments

Assuming every user with access to the internal network is trustworthy, that is. HTTPS might be a better bet.
Depends. For most setups, restricting access in a firewall is probably just fine. If you can't trust the infrastructure, ssl might be an option, but I would try to solve it architecturally first.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.