You May Like






Subscribe to RSS through Email:

Enter your email address:



RSS Subscription

Home
Rails to Java via REST

Rails to Java via REST - By Brian Leonard

Brian Leonard has written "Rails to Java via REST," detailing how he used Netbeans to write a REST service for a JPA entity bean, and used it from a Rails application: 

Since I've been studying the Rails framework, I've had an interest in integration with Java. Yes, JRuby is one possible solution, but if you have some large Java system that you want to integrate with, it' unlikely that you're just going to get the jar files to access that system's APIs. More likely is that system will expose itself as a service, and the service type du jour is REST.

So, in this entry I'm going to expose an entity class as a RESTful web service and then create a Rails client for that entity.

Setting Things Up

  • Download and install NetBeans 6.0 M10. Grab the Full distribution so you can get the Java IDE, Ruby and GlassFish.
  • Download and install the SWDP to GlassFish. This is required to create the RESTful web service.

Creating the RESTful Web Service

Here we'll expose the manufacturer table as a RESTful web service.

Create the Manufacturer Entity Class

  • Start NetBeans 6.0 and create a new Web Application named Manufacturers.
  • Right-click the project and select Entity Classes from Database.
  • Select jdbc/sample as the Data Source and MANUFACTURER as the Table (your list of available tables will be different then mine, but you should have MANUFACTURER):
Read more...
 
Retrieving database information with AJAX, PHP and MySQL

Retrieving database information with AJAX, PHP and MySQL - By somecoders


With the recent popularization of AJAX (Asynchronus Javascript And XML), it is now unnessecary to reload a page with the same basic layout, just to get new content. You can use AJAX to retrieve just the content without reloading the page, then change the value of a content area.

Read more...
 
Rich Ajax slide shows with DHTML and XML

Retrieving database information with AJAX, PHP and MySQL - By Jack Herrington

Over IBM DeveloperWorks, Jack Herrington has published an article on Rich Ajax slide shows with DHTML and XML. In this article you will learn to create an Asynchronous JavaScript and XML (Ajax) client-side slide show that's animated using "Ken Burns Effects." Here, you discover how to build XML data sources for Ajax, request XML data from the client, and then dynamically create and animate HTML elements with that XML.

Read more...
 
<< Start < Prev 11 Next > End >>

Results 41 - 44 of 44



Who's Online

We have 3 guests online

Subscribe To

 Subscribe in RSS

Follow me...

Top 10 Most Downloaded

HTML5 Games for Phone & Tablet

Job Vacancies

  • Cook
    Kriteria : Pria Wanita Usia Minimal 18 Maksimal 45 tahun Pendidikan SMA/SMK pengalaman Kerja Minimal 1 Tahun dibidang yang sama Mempunyai Komunikasi yang yang baik Berpenampilan Menarik Dan Rapi Menguasai Info Lebih Lanjut Silahkan Kunjungi Cook
  • Call Center Representative
    We’re continuously looking for detail-oriented and thoughtful people in Indonesia to join our team. You’ll be tasked with answering customer questions through phone calls and video calls and need to Info Lebih Lanjut Silahkan Kunjungi Call Center Representative
  • CREW RESTAURANT (GADING SERPONG, BINTARO, KEMANG, BEKASI & KARAWACI)
    Tugas / Tanggung Jawab : Bertugas di bagian front of house/back of house Bertugas memberikan pelayanan yang prima kepada pelanggan Bertugas untuk Preparation, Cleaning dan Stock Opname Membuat, menyiapkan, dan Info Lebih Lanjut Silahkan Kunjungi CREW RESTAURANT (GADING SERPONG, BINTARO, KEMANG, BEKASI & KARAWACI)