March 7th, 2012 by alex
I’ve added a cookbook that demonstrates how to create a Graph using Resin REST and flot graph plotting library. The sample php file works with Resin-Pro-4.0.26.
wiki: Application Server: REST Graphing
The sample page requires jquery.flot.js. You can copy the files from doc/admin/flot located in Resin distributable.
Posted in Uncategorized | No Comments »
February 3rd, 2012 by Paul Cowan
I’ve added 2 cookbooks to the Resin 4 Wiki demonstrating Resin’s capability to execute scripts via CGI and FastCGI.
wiki: Native PHP With CGIServlet
wiki: Native PHP With FastCGIServlet
The example use PHP as the CGI executable, but they can be easily adapted to any CGI script.
Of course Resin includes Quercus, a 100% pure Java PHP interpreter. These examples demonstrate how to execute the native PHP interpreter without the need for Apache.
I also included instruction on setting up WordPress with CGI and FastCGI.
Posted in Uncategorized | No Comments »
January 25th, 2012 by ferg
I added a new cookbook to create a custom URL rewrite rule.
wiki: Resin Application Server: Custom Rewrite Rules
Resin’s URL rewriting is similar to Apache’s mod_rewrite, using regexp matching and the CDI XML syntax for built-in rules like resin:Redirect, resin:MovedPermanently and resin:Dispatch. In addition to the build-in rules, you can create your own custom rules for more sophisticated
URL management. This wiki cookbook gives a quick example of one of those rules.
Posted in Uncategorized | No Comments »
January 19th, 2012 by ferg
A new cookbook showing the new parameterized configuration for resin.xml. The resin.xml can now import a properties file and use the properties as EL expressions like ${http} to create clean configurations. The example shows a simple, but complete cluster of three Resin servers acting as http servers, including the health system.
wiki4: Resin Application Server: Parameterized Web Server Cluster
Posted in Uncategorized | No Comments »
January 13th, 2012 by ferg
Another cookbook at wiki4: Resin Messaging: JMS Topic Configuration with CDI and JNDI as requested by a customer.
The cookbook will be interesting if you want to see a relatively-complicated Resin CDI configuration which includes JNDI for the purpose of Spring integration, and also showing how custom facades can be combined with a standard JMS Topic configuration.
Posted in Uncategorized | No Comments »
January 12th, 2012 by ferg
I’ve added a wiki cookbook on Resin WebSockets and Hessian.
wiki4: Resin Messaging: WebSockets with Hessian
Note, that this is a binary websocket protocol, so it would be used with a custom websocket client, not a browser. Since the browsers currently prefer speaking text websockets, the equivalent would be a JSON server.
Posted in Uncategorized | No Comments »
January 11th, 2012 by ferg
As a request from a user, I’ve written up a short wiki cookbook for Resin 4.0’s URL rewrite for a security rule to require SSL for a section of a website.
Wiki: Resin Web Server: URL Rewrite Forbidding non-SSL Requests
The example is pretty simple, since it just needs the as the action rule, and a single predicate, to test the request. Because it’s simple, it’s a good introductory example of Resin’s URL rewriting for people who haven’t looked into it yet.
Posted in Uncategorized | No Comments »
January 5th, 2012 by ferg
I’ve written up a quick how-to for configuring a Resin jCache ClusterCache and injecting it with CDI. The application code uses standard classes and CDI annotations and uses the Resin jCache implementation.
http://wiki4.caucho.com/Resin_Java_Cache_using_CDI_Inject
Posted in Uncategorized | No Comments »
January 3rd, 2012 by ferg
When you’re using Hessian in a streaming environment like WebSockets, you can improve performance by saving the serialization reflection and reusing the input and output streams.
See http://wiki4.caucho.com/Hessian_Performance_OutputStream for a short cookbook example.
Posted in Uncategorized | No Comments »
January 2nd, 2012 by alex
Since I published Part 1 of the Resin Command Line Overview we’ve added a few more commands. The added commands allows to enable or disable a server, add a license, deploy new configuration files and generate admin password. Today I hope to cover commands I did not cover in part on and the new commands. Read the rest of this entry »
Posted in Uncategorized | No Comments »