Tested the SimpleRead. It worked .. can tell me what com port i have and listen to it.. waiting.
But when deployed into Tomcat package of main app, it returns null. Suresh helped by refering to http://www.jguru.com/faq/view.jsp?EID=1048895
where we place the comm.jar and win32com.dll in the java_home/jre/lib/ext ...
Now it worked as proven concept. Next is to put the SimpleWrite at convenient place within the Compiere processor that handles issuing of request notice and receipt of notice has to be another place where we place a notifier to check for incoming sms from device and spawn a check as to the contents of message. This follows hereby a protocol:
1. Check CLI of incoming sms.
2. If in request_updates<>user_id.phone,
3. Submit reply to request with message+wrap.
4. Message is translated from SMS Dictionary
i.e. 1 = "Will attend to it rite away"
2 = "Will attend after present task"
3 = "Cannot attend. Pls route"
Wrapper shall prefix the user name, and type of reply i.e. "Engineer A sent sms:Will attend..."
Carrying the SMS dream abit further, we can have ERP on Demand! or SMS-ERP!
For example, u send "SO-Joe" and system returns "Joe Block has 3 open Sales Orders. Key in which one u like - 1/2/3"
U then send, "2";
System: "2nd Orders 3 Hoes. Do u want to ship? Y-1/N-2)"
U say, "1";
System: "3 Hoes to ship to Joe. Warehouse notified" and system sends an sms to the Warehouse Manager's handphone