John Wargo

Home
JohnWargo.com
Domino & BlackBerry Java Applications - Part 2 PDF Print E-mail
Sunday, 13 September 2009 06:55
AddThis Social Bookmark Button

Introduction

In the previous installment in this series, I showed how to build a simple Domino Web Service that performed a lookup against a contact database built from the standard public Domino Directory template (pubnames.ntf)

First a Little Background

I should probably explain that the BlackBerry Platform added support for JSR 172 with the release of BlackBerry Device Software 4.3. It’s JSR 172, the J2ME Web Services SpecificationJ2ME Web Services Specification, which gives BlackBerry Java applications the ability to easily consume web services. You could do the work without using JSR 172, using something like kSOAP 2kSOAP 2, but then you:

  • Wouldn’t be using a standard
  • Would be relying upon an ancillary library to do the work
  • Would have a larger application to deploy since your application needs access to all those extra library classes

Anyway, if you ask about this topic on the BlackBerry forums, you’ll receive responses that say JSR 172 is junk and you should use kSOAP 2 and others (like me) who will tell you it’s pretty easy and you should just use the stuff baked into the BlackBerry platform. Use the stuff that’s baked into the BlackBerry platform – it’s going to be much easier for you all around.

So, the way this JSR 172 stuff works is you download the Sun Java Wireless Toolkit for CLDCSun Java Wireless Toolkit for CLDC and use a little utility that comes with it to analyze your web service’s WSDL (web service description language) file and build a Java  stub class your Java application can call to consume the web service. Building the stub takes just a few minutes and calling the stub from your Java application is very easy as well.

Attachments:
FileDescriptionFile size
Download this file (DomDirLookup.zip)DomDirLookup.zip 8 Kb
Download this file (Domino Web Service Part 2.pdf)Domino Web Service Part 2.pdf 1378 Kb
Read more... [Domino & BlackBerry Java Applications - Part 2]
 
Domino & BlackBerry Java Applications - Part 1 PDF Print E-mail
User Rating: / 1
PoorBest 
Monday, 07 September 2009 16:51
AddThis Social Bookmark Button

Introduction

When I worked at Research In Motion and after, I’ve presented at LotusphereLotusphere and the View Domino Developer ConferenceView Domino Developer Conference on how to access Domino applications from BlackBerry devices.

Of course, the lead approach was to use the browser to access mobile friendly Domino applications. It’s not a very exciting demo though – you take a domino database and scrunch it down so it fits the smaller screen and uses rich media sparingly.

The other option I discussed was to create Web Services in a Domino application then use Research In Motion’s MDS Runtime technology to access the operations exposed by these services. It was a truly amazing demonstration to illustrate the web service then build a rich (non-browser) BlackBerry application that talked to it in minutes. With Research In Motion’s recent announcement of the end of life of MDS Runtime and associated development tools – developers need another option for building a (non-browser) rich client application that talks to web services. I’m sure there’s a way to do it from a BlackBerry Widget but I still haven’t had a chance to play with that technology yet.  The only other option is to consume the Web Service from a Java application and for my presentation this year at the View Domino Developer conference I built a Java version of the application I’d been demonstration for years using MDS Runtime.

A few weeks ago I posted here that I was going to write some articles about how to build that application. From the responses I received, it seems that there are a lot of you who are interested in the information, so here we go…

I’m going to split this topic into three parts:

Attachments:
FileDescriptionFile size
Download this file (DomDirLookupWS.nsf)DomDirLookupWS.nsfDomino Directory Lookup Web Service Source Code (in a Notes Database).320 Kb
Download this file (Domino Web Service Part 1.pdf)Domino Web Service Part 1.pdfThis article in a cleaner PDF format than what the site will allow.697 Kb
Read more... [Domino & BlackBerry Java Applications - Part 1]
 
RIM Announces Web Development Webinar PDF Print E-mail
User Rating: / 1
PoorBest 
Friday, 04 September 2009 10:59
AddThis Social Bookmark Button

On the RIM Developer Blog they just announced an  upcomming webinar called 'BlackBerry Developers Webinar: Web Development and Toolkits' Looks interesting; you can check it out herehere.

 
Started Playing with Google Docs PDF Print E-mail
Wednesday, 02 September 2009 19:53
AddThis Social Bookmark Button

I started playing with Google Docs the other day and I thought I'd share a little of my experience. I've been maintaining a long list of topics I want to write about here and it was filling up my task on my BlackBerry and desktop mail client. All of a sudden I had more personal tasks than work tasks and that's not good. I could maintain them in a word doc but then having access to the list from multiple places would be problematic. I use Second CopySecond Copy to synchronize personal files between my laptop and desktop (which I'll write about in a few weeks), but I don't have many and it wasn't worth the effort to setup a new profile for just this one file.

I thought I'd give Docs a try to see how it would work for me and I found it to be a really good fit. I quickly logged in and created a list of all of my topics. The editor has all of the features I need and I can work locally then save the document in the cloud when I'm on the network. I can then access (and update) the file from my personal desktop at home and my laptop while I'm on the road.  I lose the ability to have the list on my BlackBerry (I haven't accessed Docs from my device yet, I'm assuming it won't work - no Gears client until Device Software 5.0) but that's not important to me since the only time I use the BlackBerry for this is to quickly add a new item to the list which only seems to happen on airplanes. I'll just add the topic to my tasks list then copy it over to the document when I can. No biggie.

I am seeing one interesting and annoying issue with the tool. I'm an expert Word user (sorry to brag) and use Headings to organize the structure of my documents and when you create a heading then enter a carriage return to begin the next line - for some bizarre reason Docs treats the heading and the first word that follows as the same word - and underlines it as a spelling error.

Printing is an interesting experience - when you print, Docs makes a PDF of the file on the fly and sends it to the browser. The browser opens Adobe Acrobat and lets you print, email, even mark-up the document. Pretty cool and a smooth feature.

My wife is going to help a friend create a resume tonight. I suggested Docs for this since my wife could help her create it then it would be accessible to both my wife and her friend. They can both work on it without needing to be in the same location. If it needs tweaking, my wife can make the updates and her friend could read it, email it or print it no matter where she is.

All in all, a good tool for me.

 
myBlackBerry PDF Print E-mail
Tuesday, 01 September 2009 18:26
AddThis Social Bookmark Button

A few weeks back the press announced a new BlackBerry site managed by RIM called myblackberry.com. I quickly went online to see what it was and was frustrated for several weeks by its unavailability. Last week the pundits started announcing that the site was live so I went out again to try to access the site. Here's what I got:

I decided to try again today and was able to access then register with the site. Funny thing happened when I registered, it allowed me (actually required me) to set my own security question, but for some bizarre reason forced a minimum length for my answer. See below:

I dutifully entered my question and the answer but found that it was too short. What was I to do? I coudn't change my answer to fit the minimum length required by the form. Rediculous. I had to pick a different question to use.

I have to admit that I hate it when web developers force a requirement for an input field but don't tell me about it until after I populate the field wth the value I want to use. How much simpler would it be to tell me in advance what the requirements are so I could assess my security question and associated answer before hitting the submit button? I would have known immediately that my 'answer' was too short and selected a different question. Of course, after returning to the form you see above, certain of the fields I'd populated were blanked out, so I had to repopulate other portions of the form as well. Not a very helpful design.

 
<< Start < Prev 11 12 13 14 15 16 17 18 19 20 Next > End >>

Page 17 of 24

My Book

InformIT (Pearson Education)