main website home
  • About this blog

    This blog features updates, opinions, and technical notes from Caucho engineers about Caucho products, the enterprise Java industry, and PHP. Caucho Technology is the creator of the Resin Application Server and the Quercus PHP in Java engine. A leader in Java performance since 1998, Caucho is a Sun JavaEE licensee with over 9000 customers worldwide.
  • Tags

    ajaxworld bam candi cdi cloud cluster comet configuration deploy devoxx eclipse ejb embedded flash flex google app engine hessian hmtp ioc java ee 6 javaone javazone jms messaging newsletter nyjug osgi php pomegranate quercus resin resin 4.0 REST servlet sfjug silicon valley code camp spring testing training tssjs watchdog webbeans web profile websockets wordpress
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Posts Tagged ‘wordpress mu’

Engineering update

Wednesday, July 2nd, 2008

This week has been (and will be) mostly an engineering week for me, but it’s an exciting one so I thought I’d let everyone know what’s going on.  First, I’m working on improving BAM to be easier to use from a developer’s point of view.  Essentially we moved to an introspected service instead of a strict interface for receiving events.  To give an example, the main BAM interface for receiving events is BamStream.  It contains methods like the following:

GeSHi Error: GeSHi could not find the language java5 (using path /var/resin/hosts/blog.caucho.com/webapps/ROOT//wp-content/plugins/codesnippet/lib/geshi/) (code 2)

There are similar methods for queryGet, querySet, etc. These methods are event handlers that are called on a service when a new message or query arrives for the service. The problem with this is you might have to write the following dispatch pattern:

GeSHi Error: GeSHi could not find the language java5 (using path /var/resin/hosts/blog.caucho.com/webapps/ROOT//wp-content/plugins/codesnippet/lib/geshi/) (code 2)

This isn’t too bad, but it looks messy when you have a ton of different message types. To fix the problem, we’ve written a base class called GenericService. Now instead of writing the code above, you would extend GenericService and write the following:

GeSHi Error: GeSHi could not find the language java5 (using path /var/resin/hosts/blog.caucho.com/webapps/ROOT//wp-content/plugins/codesnippet/lib/geshi/) (code 2)

This is equivalent to the code before, but now we do the dispatch for you. Under the covers, there’s some reflection magic going on, but basically all you have to do is make methods that match the right signature and use parameter annotations like @Message, @QueryGet, @Presence, etc.

In other news, I’ve also been making sure that WordPress Mu works with Quercus. There were a couple of buglets, but those are fixed in the trunk now and it should be ready to go with Resin 3.2.0, due out in about 2-3 weeks. I put up a wiki page that describes how to do the installation. It’s a bit long right now, but hopefully we’ll soon be getting a Debian install that reduces the steps by half.

Tags: bam, quercus, wordpress mu
Posted in Engineering | No Comments »


Caucho Technology is proudly powered by WordPress and Quercus®
Entries (RSS) and Comments (RSS).

  • HOME |
  • CONTACT US |
  • DOCUMENTATION |
  • BLOG |
  • WIKI 4 |
  • WIKI 3 |
  • Resin: Java Application Server
Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.
resin® is a cloud optimized, java® application server that supports the java ee webprofile ®