french english

RSS 1.0 
 
 Login 
 Password 
 Sign in 
 
04-22-09 / 02:16 AM : CP2JavaWS 0.5 release : full digest and state support (cjed)
A new 0.5 version of CP2JavaWS bridge is available at Sourceforge. It includes the following new features :

- full digest authentication (rfc2617) support (tested on Safari and Firefox), with automatic retrigger of original connection.
Besides digest parameters settings (nonce life, realm, etc.), the authentication filter allows to set list of services that require (or not) authentication (using includes and excludes).
Authentication occurs only once (for the first service that requires it).

Note : only works with sameDomain (when using JSONP digest authentication could happen, but there is no mean to check response status nor retrieve response headers - see security considerations)

- session/state management : JSESSIONID cookie is automatically retrieved once authentication challenge ends (Authentication-info response header with Ok code) and added to following requests (had to be coded for Safari - Firefox handles it natively).

Note : only works with sameDomain (when using JSONP, for security reason the server isn't allowed to set a cookie to the client, as it originates from another domain).

- a new Habilitation fillter has been added : it allows (through a custom habilitation service) to set access rules for services, depending on the user, remote service and method called (these rules apply after authentication check).

- sameDomain setting moved from remoteService to endPoint (the same for all services of a web app).

- the packaged cp2javaws-filter.jar now includes the right files (sources files were ok however).
 Post a comment
04-20-09 / 12:57 AM : Mac mini : power and heat / idle mode (cjed)
Apple provides guides about macs environmental performances. We learn that the new Mac mini uses 45 percent less power (only 13W) when idle (that isn't sleep - that uses only 1,5W - but fully awake machine without any active application other than system daemon tasks). The previous version required 23W in idle mode, and the original version with 1,25Ghz G4 used 32W in that mode. The max power is 110W (was the same in older CoreDuo versions, and 85W on the single G4 with Radeon 9200), for a 2 Ghz Core2 Duo and Nvidia 9400M. Heat dissipation in idle mode is also down (2,5 times less than with the first G4 model, and close to 2 times less than with the previous CoreDuo model). However max heat dissipation in full charge is the same (was a bit higher when switching from a single G4 to a CoreDuo).

New MacPro also made progress in idle mode, however they can require up to 300W in full charge (that is in fact considering 8 cores, many fans and a high end graphic card).
 Post a comment
04-16-09 / 11:27 PM : CP2JavaWS 0.4 released (cjed)
A new version of CP2JavaWS, 0.4, is available at Sourceforge. It includes the following new features :

- Decoding and encoding now support cycles/references. Existing objects's references are replaced with a path ($ref:<pathFromRootObject>) when encoding to JSON. The path follows EL/BeanUtils rules : someKey.anotherKey, someKey[0](key).anotherKey, [index], (key), someKey(key)[1](key2).anotherKey, etc.
When decoding, references/paths are replaced with the previously decoded objects.
A new CPPropertyUtils class allows to get/set these nestedProperties on the cllient side, in the same way as Java's commons BeanUtils (the two frameworks manage nested dictionaries and arrays, and multiple dimensions arrays). You have to use at least commons beanutils 1.8.

- CPJSONAware categories aren't required anymore. Automatic decoding/encoding of ivars (used when custom objects do not implement CPCoding) has been merged in to CP2JSCoder and CP2JSDecoder. Implementing CPCoding allows to set different JSON keys than ivars name (can then match Java's objects attributes names if they differ from CP objects's ones).

- fixed a problem with dates DST.
 Post a comment
04-08-09 / 11:09 PM : Google AppEngine : free Java hosting (cjed)
Google added support for Java in its free AppEngine hosting platform. Among additional services provided is BigTable database, that is optimized for scalability. Use of the datastore (BigTable is accessed through the DataNucleus Access Platform open source framework), is really easy (complies with JDO spec - also supports JPA).

To deploy a war we have to add an appengine-web.xml file into the WEB-INF (that file contains the required application id, and some other optional parameters).

Google also provides an Eclipse SDK, that brings a GWT project wizard, and server test (simulates the AppEngine, including the services and the datastore) !

Details for uploading a war can be found here. Scalability features of the solution are great, for the database and static files.

See also : If you elect to use the free appspot.com domain name, the full URL for the application will be http://application-id.appspot.com/. You can also purchase a top-level domain name for your app, or use one that you have already registered.
There is no way to delete an application in App Engine. You can register up to 10 application IDs per Google account. If you do not want to use one of your allotted application IDs for the tutorial, you can just read this section, and refer to it later when you are ready to upload your first application.


It is stated that the offer is for now restricted to some users, however I did success registering my first application id using my Google account (a verification process of account through sms is required).

We can then now easily host a Cappuccino application : client part in the war's web root (index.html entry point, Cappuccino application's .js file that has been optimized through press tool, objective-j.js file), services code (Java classes), Spring jars and configuration, CP2JavaWS jars and configuration.
Download of application's js files can be optimized (can use separate servers, others than the main server that serves dynamic resources -servlets/jsp) if they are marked as static in the application configuration file (via exclude/include parameters). By default JSP files and resources residing in the WEB-INF folder are considered dynamic.
 Post a comment
04-07-09 / 11:16 PM : ITMS : 256kb without DRM on the whole catalog (cjed)
The whole ITMS catalog is now encoded in AAC 256 kbits/s (without DRMs). As expected, most popular songs are priced higher, whereas albums keep their 9,99$ price. However, as audio CD prices are close, we could expect lossless encoding.
The new iTunes 8.1.1 allows HD movies rentals.
 Post a comment
04-06-09 / 02:36 AM : CP2JavaWS 0.32 : CPCoding protocol support (cjed)
A new 0.32 version of CP2JavaWS is available at Sourceforge :

Encoding and decoding of client objects now also supports CPCoding, through new CP2JSEncoder/CP2JSDecoder.
These coder provide transparent backward compatibility with previous versions of CP2JavaWS that were based on the CPJSONAware protocol :

- if no CPCoding implementation is found on custom objects, it uses instead the old toJSObject/objectWithJSObject methods from CPJSONAware categories.

- Furthermore it does the switch at each node level ! That is for custom objects we can etiher implement CPCoding protocol's methods (if the serialization requires particular work, for example to exclude some attributes or choose arbitrary JSON keys - different from ivar names), or benefit from the automatic encoding of objects provided by the CPJSONAware categories (then custom objects have to import CPObject_CPJSONAware.j, and JSON keys will match exactly ivar names).
 Post a comment
04-03-09 / 10:10 PM : Apple stock is up again (cjed)
While new features of Snow Leopard on the UI front are ermerging (Apple kept them secret as long as possible in order to avoid Windows 7 copying these), and next iPhone (and probably a tablet mac) will fix the remaining issues (notably the digital camera sensor), Apple's stock is up again, at a high rate. Or the reason could be that the market is dynamic thanks to upcoming purchase of Sun by IBM (however there is still to know how the future of ZFS - used in Snow Leopard - will be managed).
 Post a comment
04-02-09 / 12:04 AM : iPhone OS 3.0 beta 2 (cjed)
A second beta of the iPhone OS 3.0 is said to be available for iPhone Developer Program members. It includes the Push feature (with better performance) and adds two additional applications pages.
 Post a comment