public void send() throws Exception
    {


         Connection con = null;
         Service.getInstance().createGroup("MyParents");
        try {
            DBConnection db = new DBConnection();
            con = db.getConnection();
            PreparedStatement ps = con.prepareStatement("select mno from 
tbl");
            ResultSet rs = ps.executeQuery();
             while (rs.next()) {
                Service.getInstance().addToGroup("MyParents", 
rs.getString(1));
            }
            con.close();

        }

         catch (SQLException ex) {
            Logger.getLogger(noticeBean.class.getName()).log(Level.SEVERE, 
null, ex);
        }
       
        

        GsmModem gsmModem = new GsmModem();
        GsmModem.configModem(port, bitRate, modemName, modemPin, SMSC);

        gsmModem.Sender("MyParents", getDesc()); // (tp, msg)

          

}


Here Problem what i am facing ,once the above function is called and 
executed , I am not able to terminate using enter key, is there any other 
alternative to do the same at end of function...... Is there any 
modification to be done for above code... ? plz help 

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/smslib/-/5h3QFifkx4sJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to