The new 2.5 release of the CORS Filter for handling cross-domain requests offers improved performance. This benefits Java web servers that handle lots of traffic, particularly situations when a significant proportion of that is invalid or unauthorised CORS requests. The improvement is achieved by using static (cached) exceptions within the filter. Here is an an […]
Category Archives: Java
CORS Filter with automatic reconfiguration
Version 2.4 of the Java CORS Filter for handling cross-domain requests has added support for automatic reconfiguration. You can change your CORS policy at runtime without having to reload your web service or application. Kudos to Alexey Zvolinsky for contributing this cool new feature. Automatic reconfiguration is provided by a special variant of the CORS […]
Finding the most efficient Java ObjectOutput method for strings
Coding distributed services and apps often calls for marshalling Java objects into a binary form that can be streamed over the network. Infinispan, for example, requires objects to be serialised so they can be multicast to the nodes of the data grid. The standard Java serialisation implementation packs a lot of object data in order […]
CORS Filter 1.7 with more configuration options
The Java servet filter for enabling CORS (cross-domain) web applications received a major upgrade today. Up until now in order to change the out-of-the-box CORS configuration you had to add filter init-params in the web.xml descriptor of your application. A number of developers asked for alternative configuration means, such as specifying a properties file for […]
CORS Filter 1.6 supports any URI scheme
The Java CORS Filter for adding Cross-Origin Resource Sharing to existing web apps received an important update to permit any URI scheme, not just the ubiquitous http:// and https:// as originally supported. This change is in line with RFC 6454 which defines the concept of web origins. This means that now you can also service […]
All JSON-RPC 2.0 libraries are now in Maven Central
The migration from Ant to Maven is now complete and all Java libraries for handling JSON-RPC 2.0 messages are now published in Maven Central. You can find them under the com.thetransactioncompany.com groupId: JSON-RPC 2.0 Base JSON-RPC 2.0 Server JSON-RPC 2.0 Client JSON-RPC 2.0 Access Filter The useful JSON-RPC 2.0 Shell tool, available for purchase, has […]
JSON-RPC 2.0 libraries and tools switch to Maven
The Java libraries and tools for JSON-RPC 2.0 message serving and processing now use Apache Maven to build. Migrating the previous Apache Ant scripts took about a day a to complete and was not without hassles, notable the ZIP package distribution and the automatic versioning of JavaDocs. We’ll now be able to gain from Maven’s […]
The JSON-RPC 2.0 Client can now handle GZIP and DEFLATE compression
Does your JSON-RPC server return large amounts of data? If so applying HTTP response compression can greatly reduce network traffic and response time, occasionally by a whole magnitude if your JSON structures contain long repeating keys or values. Today we released a new version of the JSON-RPC 2.0 Client library for Java that adds support […]
Opera finally with CORS support
Opera was the last major browser to add support for handling cross-origin requests in its 12th version. The CORS protocol was devised several years ago by a W3C working group to allow for clean making of cross-domain XHR, without JSONp hacks. CORS was initially adopted by Firefox and Chrome, and was subsequently joined by the […]
Access filters for JSON-RPC 2.0 services
Services on the web often have to be controlled for who and how accesses them. If they deal with sensitive data, such as usernames and passwords, you may want to ensure that all requests come in over encrypted HTTPS. If you’re running a private service, you may want to ensure that only selected internet hosts […]