Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

J2ME Design pattern

Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm wondering if there are any design patterns which is suitable for the j2me technology(CLDC/MIDP)?
The system I'm about to design has these characteristics:
- The client-side appliction is a travel expense report application. This application will be installed on a PDA (Palm or Pocket PC). The challenge will be to design a system which is more or less independent of the device, i.e. not to use any device-specific properties (only soft button, etc).
- The appliation must be able to communicate with a server-side application residing on a PC through the PDA cradle.
So if any of you have links or books you want to recommend about j2me design patterns, I would appreciate if you told me about them
Posts: 17346
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know much about specific Patterns for J2ME
However, I am familiar with things that would lead to patterns.
For instance, we know that the memory for a mobile unit is small, and therefore try to limit what is done on the client, but also really limit all the calls to outside help. If you are continually calling a web server or other server for services, the traffic really slows things down.
So what that leads to is using things like Proxy, Adapter, and Facade patterns on the client side, and Coarse designs on the server side. Coarse meaning instead of three calls to get three data pieces from the server, it can be done in one call to the server that returns a Collection or Text of all the data returned in from the one call.
Obviously, my statements are on the higher level thought process of design, and applications require specific ways of implementation, but keeping those thoughts will keep things cleaner for you.
Hope that helps, and that I am not completely off course in my advice. But I am sure if I am that someone else will clear it up.
Posts: 1436
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think J2ME design pattern is an very interesting topic. For starters, there is the Sun Smart Ticket Blueprint:
If you are more interested in MIDP UI patterns, I would recommend Ben Hui's article on JavaWorld
I will give a talk in this upcoming JavaOne conference and it will focus on "best practices and design patterns for J2ME". So, if you do go there, check out my name in the session list!
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
    Bookmark Topic Watch Topic
  • New Topic