 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Ibuildings Blog: Integrating PHP And Java
by Chris Cornutt June 02, 2010 @ 09:14:25
New on the Ibuildings blog there's a post from Ian Barber looking at the powerful combination of PHP and Java to make your applications even more robust.
There are many reasons to want to integrate these new developments with Java rather than just creating a separate silo - existing libraries or systems that would be difficult or expensive to replicate, well-tested systems providing key functionality, and an existing team of developers are just a few. So, the best way is often to mix and match the two - which is easier than it might first appear.
He looks at the four main ways to integrate the two technologies, some being a bit easier to implement than others:
- Indirect integration (shared data source)
- PHP on the JVM
- PHP to Java (bridge)
- PHP consuming Java services
voice your opinion now!
integration javasc bridge jvm webservice
Liip Blog: Jackalope - JCR for PHP started
by Chris Cornutt May 12, 2009 @ 10:21:15
In this new post to the Liip blog Tobias Ebnother looks at Jackalope that's looking to bring JCR functionality into the toolset offered to PHP developers.
We initiated a new open source project called Jackalope. Its purpose is to bring JCR via Jackrabbit to the PHP world. [...] JCR provides a great standardized storage for hierarchical content and supports some nice features like full text search, versioning, transactions, observation, and more. Our main goal is to create a PHP Connector for Jackrabbit without using any Java.
To accomplish this, they're doing things in two steps. First, they've created a setup with the Java bridge (from Zend Server) to make the connection back to the Jackrabbit server and making writing tests to that API. The second step is to swap out the Java bridge with the Jackalope connection piece. You can check out the current state of the project on its Github page or come and ask questions of the team on the Freenode IRC network (#jackalope).
voice your opinion now!
jackalope jcr zendserver java connect native bridge
Ant Phillips' Blog: Integrating SAP NetWeaver in Zero PHP
by Chris Cornutt March 20, 2009 @ 09:02:25
In a recent post to his blog Ant Phillips looks at how you can integrate the SAP Netweaver softare into Zero PHP (a Java PHP clone).
I thought it would be interesting to hook up a Zero PHP application with a SAP NetWeaver system. So last weekend I summoned up the courage and, armed with a bottle of red wine, set about the task. Surprisingly enough it wasn't too difficult (setting aside finding 20GB of disk space needed by the installer).
He talks about making the connection via SAP's JCo middleware component and the PHP/Java bridge that comes with the standard Zero installation. Code is included showing how to make the connection and grab information from the SAP data store.
voice your opinion now!
zerophp java port sap netweaver integrate bridge jco
Ant Phillips' Blog: PHP/Groovy Bridge
by Chris Cornutt January 14, 2009 @ 10:23:46
In a recent post Ant Phillips looks at another bridge that's offered to combine PHP with another language (besides the Java one) - a link over to Groovy.
Up until recently the PHP runtime was treating Groovy code just the same as Java. Anyone could compile a Groovy class to Java class files using the Groovy compiler. Those class files could then be dropped into a Zero application and used in PHP through the PHP/Java Bridge. The problem is that Groovy isn't the same as Java.
He compares the way its works when its Java-esque and how it should work as combined with the Groovy bridge. The code is much cleaner and, by making it more readable, makes it easier to maintain in the future. You can see some slides from a presentation hes given on the subject here.
voice your opinion now!
groovy language bridge java example slides
PHPFreaks.com: Design Patterns - Strategy/Bridge, Value Object, Singleton (Registry)
by Chris Cornutt October 10, 2008 @ 09:33:10
Following up on their introduction to design patterns, the PHP Freaks have posted tutorials covering three of the more popular patterns - strategy/bridge, value object and singleton.
- Strategy and Bridge - The Strategy and Bridge patterns provide solutions to apply polymorphism in more flexible way than you can accomplish with only inheritance.
- Value Object - The Value Object pattern has, just like the Singleton, to do with referencing and instances. In a way, the Value Object is the opposite of the Singleton: it's goal is to ensure NOT to use the same instance, under certain conditions.
- Singleton and Singleton Registry - The Singleton pattern ensures that you are always dealing with the same, single instance, wherever in your application. The Registry pattern usually utilizes the Singleton pattern (hence "Singleton Registry") to make the same 'globalness' apply to objects who's classes weren't necessarily designed to
Keep checking back to their tutorials section for more design pattern tutorials.
voice your opinion now!
design pattern singleton registry valueobject strategy bridge
IBM developerWorks: Integrating Java and PHP in WebSphere sMash
by Chris Cornutt October 01, 2008 @ 15:35:29
The IBM developerWorks site has this new tutorial posted showing how to combine two different languages, PHP and Jave, with the help of the Java bridge in the WebSphere sMash environment.
The WebSphere sMash environment enables rapid development of interactive Web applications based on popular Web technologies such as PHP, and it lets you reuse existing Java assets from PHP scripts. This article introduces the Java Bridge and shows how to access Java classes from PHP.
They create a sample project to work with in sMash and show how to implement and create a new the Java object that automatically loads and makes available to PHP the functionality inside. They look at accessing static methods and fields, catching exceptions, type conversion, and working with SQL connections.
voice your opinion now!
ibm java websphere smash bridge tutorial
PHPImpact Blog: Building Web Applications Using PHP and Java
by Chris Cornutt June 03, 2008 @ 13:42:39
This recent post on the PHP::Impact blog spotlights a useful little tool for those developers needing to span the gap between PHP and Java in their applications - the PHP/Java Bridge.
The PHP/Java bridge allows you to quickly access Java classes from within your PHP classes without having to know Java and vice versa. Because of this two-way flexibility, you can access hundreds of pre-built Java classes from PHP, and hundreds of pre-built PHP classes from Java opening up your applications to greater flexibility and enhanced functionality.
The post includes an introduction to the bridge's functionality - its functions/methods, how to make a new instance of it, catching exceptions and the type conversion it automatically does (like lang.java.String directly to the PHP String type).
They also mention the Zend Platform bridge functionality for a more commercial solution.
voice your opinion now!
application build java bridge phpjavabridge zendplatform
|
Community Events
Don't see your event here? Let us know!
|