Domain: metaparadigm.com
Stories and comments across the archive that link to metaparadigm.com.
Comments · 9
-
Problems
This DMR *seems* cool at first, but the fact that I have to inline the Javascript code insid ethe JSP with this stupid cusotm tag kills it for me. JSP's are supposed to be the presentation layer *only* - if you have JS code it should be in external
.js files as much as humanly possible. THis also helps download times a lot since the .js files can be cached.Personally I think that JSON-RPC is far superior to this "DMR" stuff. It's also been around much longer, so it's tried and tested. It also has non-Java backend implementations.
-
DWR and JSON
-
When you're using java, you can...
...use JSON-RPC instead. XML is longer and hard for a javascript interpreter to interpret. Why does everyone want to use it as a wire protocol? I've never understood this. It makes a lot more sense to me to just store everything as a javascript hash.
Anyway, unlike the almost most ajax libraries, which are at this point almost totally devoid of docs, the guy who wrote a JSON-RPC library actually tells you how to use it. If you've got java, its the way to go, I think. Here it is.
Personally, I'm a perl monger, so I use this lib, which isn't nearly as good, as you have to do most of the javascript stuff yourself. Faster than XML though, and its still rather trivial to turn a DOM object into a plain javascript one for use with JSON. -
JSON instead of XML
I've been doing a lot of experimentation with JSON (JavaScript Object Notation) instead of XML. You do everything youw ould do the AJAX way, but the data sent back to the browser is directly interpretable by JavaScript. Thta takes an ENORMOUS load off the client.
JSON-RPC is an extension for doing RPOC via JSON.
-
xmlhttprequest frameworks...
there are a lot of them...
Sarissa - http://sarissa.sourceforge.net/doc/
Prototype - http://prototype.conio.net/
Dojo - http://dojotoolkit.org/
SAJAX - http://absinth.modernmethod.com/sajax/
DWR - http://www.getahead.ltd.uk/dwr/
JSON-RPC-Java - http://oss.metaparadigm.com/jsonrpc/ -
Re:Some java way to do Ajax easily ?.
I think JSON-RPC-Java existed before the term Ajax had surfaced to
/. or anywhere else. -
Re:XML-RPC did this *years* ago
with simple protcols like JSON (..) you hardly even need a library
- JSON in Java, an example set of Java classes that parse, generate, and manipulate JSON data strings.
- JSON in C.
- JSON in C#.
- JSON in JavaScript, a note on using JSON notation with JavaScript.
- JSON-RPC.
- JSON-RPC-JAVA ORB.
- JSON in Ruby.
- JSON in ML and Ruby.
- The Fat-free Alternative to XML.
- An example of JSON-encoded messages.
-
Re:XML-RPC did this *years* ago
with simple protcols like JSON (..) you hardly even need a library
- JSON in Java, an example set of Java classes that parse, generate, and manipulate JSON data strings.
- JSON in C.
- JSON in C#.
- JSON in JavaScript, a note on using JSON notation with JavaScript.
- JSON-RPC.
- JSON-RPC-JAVA ORB.
- JSON in Ruby.
- JSON in ML and Ruby.
- The Fat-free Alternative to XML.
- An example of JSON-encoded messages.
-
Re:RaidWeb.com has nice hardware too.The only big disadvantage I experienced at the time was the lack of docs on the serial controller, so I only had the audio buzzer signal to go on when a drive failed.
Take a look at safte-monitor.
SAF-TE is an open spec from Intel. Quote:
SAF-TE: SCSI Accessed Fault-Tolerant Enclosures Interface Specification
This specification defines a set of SCSI commands for setting drive status information, including status for RAID arrays, into a disk drive array enclosure. The drive array enclosure may be a separate enclosure, or the same enclosure. The specification also defines commands for managing hot-swap drive slots and returning environmental health information for a drive enclosure.
Most (good!) SCSI RAID enclosures will speak SAF-TE, but not many people make use of it. Try it out with your own enclosures - you may be surprised!