Code:
for(int i=0;i<14;i++)
s.sendpm("msadra","asdf","sadf");
das hier funktioniert:
Code:
long l;
public void sendpm(String recipient, String subject, String message) throws IOException{
l++;
pmpm.setParameter("recipient",recipient);
pmpm.setParameter("subject",subject);
pmpm.setParameter("message",message+" "+l);
System.out.println("executing "+l);
htc.executeMethod(pmpm);
}
aber wenn ich das hier mache
Code:
long l;
public void sendpm(String recipient, String subject, String message) throws IOException{
Random r=new Random();
l=r.nextLong();
pmpm.setParameter("recipient",recipient);
pmpm.setParameter("subject",subject);
pmpm.setParameter("message",message+" "+l);
System.out.println("executing "+l);
htc.executeMethod(pmpm);
}
dann hängt es dich nache ein paar wiederholungen beim htc.execute auf.[/code]