Hi Tore,

Probably won't be able to help with the coding tasks, but I'll be happy to help with server issues.


* The webpage http://www.bluebearstudio.com/hessianobjc/ are not working today :( php error..

Hmm... I wonder if we should try the web service connector developed by Michael Victorov. SOAP is heavy, but at least serialization is predictable.

I am using axis tcpmon to debug the network traffic. It is very useful as the hessian protocol are almost readable for a human. I start it with " java -cp axis.jar org.apache.axis.utils.tcpmon 8090 localhost 8080". The server are listening on port 8080 and the client are connecting to port 8090.

This is a useful suggestion. Probably would be a good idea to stick this somewhere in the Wiki documentation.

My current status is that I am able to execute a NamedQuery and use the result to fill up a NSTableView using an NSArrayController with Artists from the rop-tutorial. None of the other stuff are working. Like relations, persistent state, graph diff, committing, events. Puh, a pretty long list.


One thing that I had to do in Cayenne is custom (de)serializers (different on the server and on the client). Check out org.apache.cayenne.remote.hessian.ClientSerializerFactory - it has all the client stuff. I guess we may use a similar approach in ObjC.

Andrus


On Aug 12, 2006, at 6:41 PM, Tore Halset wrote:
Hello.

I have tried to start connecting cocoa/objc to cayenne. As I am new to all of this, I would realy like to get some help.

First, The hessianobjc framework are easy to use, but should probablye have a couple of improvements. Here are my hessianobjc notes: * The webpage http://www.bluebearstudio.com/hessianobjc/ are not working today :( php error.. * Do not know how to do basic authentication. turned off on server for now.
 * Basic classes like Map, Double, String etc works out of the book.
* Apply a Dictionary (Map) that are used to map between java class names and Cocoa class names. * Other classes (that are not simple like Double and String and not mapped) are returned as NSDictionary with a special entry named "hessianClassName". That is very cool as the key-value stuff make all classes usable out of the box. * Some arrays like GenericResponse.results has 3 (ca) rows in front with NSError objects. After that the normal result rows are coming. Strange. Here are some examples of the NSError objects: - NSError "Unknown tag returned from server " Domain=BBSHessianObjCDomain Code=666 UserInfo= {NSLocalizedDescription = "Unknown tag returned from server "; } - NSError "Unknown tag returned from server " Domain=BBSHessianObjCDomain Code=666 UserInfo= {NSLocalizedDescription = "Unknown tag returned from server "; }

I am using axis tcpmon to debug the network traffic. It is very useful as the hessian protocol are almost readable for a human. I start it with " java -cp axis.jar org.apache.axis.utils.tcpmon 8090 localhost 8080". The server are listening on port 8080 and the client are connecting to port 8090.

My current status is that I am able to execute a NamedQuery and use the result to fill up a NSTableView using an NSArrayController with Artists from the rop-tutorial. None of the other stuff are working. Like relations, persistent state, graph diff, committing, events. Puh, a pretty long list.

Pri 1 TODO:
* fixing the NSError stuff. Perhaps by just filtering those objects out? * refactoring. should probably prefix all classes with CAY or something.
 * commit to sandbox
 * relations/faults

Regards,
 - Tore.



Reply via email to