on 07-12-2006 7:19 AM
Hi
I have a web service which returns records based on the parameters send when i try to search for more number of records it runs for more than 20 minutes and then it generete error <b>java.lang.IndexOutOfBoundsException</b> and if there are no records or less records it works fine no problem in both the cases so
please guid me what could be the problem
Hi nk,
This maybe the intialization of Array with minimum number in the webservice.
Can you check the Webservice(Is it created by you)?.
Kind Regards,
Mukesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nk,
Web Services has that problem b'coz it has return n no of records in XML format. It take more times forming in XML format. Web service has the performance issue.
If your not generating model out web service to retreive data from database go for EJB Lookup call the interface directly.
Regards
Suresh
Hi Ninad,
After long time i am replying for this post.
Sample code for lookup ejb
1. addRecord method is interface in EJB
SampleEJB remote = null;
try {
Context ctx = new InitialContext();
SampleEJBHome home = (SampleEJBHome) ctx.lookup("SampleJNDI");
remote = home.create();
String result = remote.addRecord(aTemp1,aTemp2);
} catch (Exception e) {
System.out.println("Exception:" + e.getLocalizedMessage());
}
Regards
Suresh
Hi ninad,
1. Write one java main program inside put above code look up your ejb and call corresponding interface which u want.
2. run that application you will find exact line which gives error.
3. add jar files and EJB project. Add VM Argument also.
still problem exists mean paste your code
Regards
Suresh
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.