I am using below function to send sms to multiple recipients .problem 
hitting enter i am not able to terminate ,is there any method  which is to 
be called at end of  below function to terminate  automatically,is my code 
below correct ? whr i am going wrong ? help


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 
regtbl");
            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)

    }

-- 
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/-/szoA6nuKGowJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to