on 03-18-2008 7:02 AM
Hi all,
We have some Date type data as the parameters of a EJB method. After exposing it to a web service, we found that the Date parameter has become Calendar type, so we have:
void methodName(Calendar beginDate, Calendar endDate);
But we can only get Calendar instance by using getInstance() method cause it's singleton. Thus we cannot fulfill two Calendar-Type paramters in one time for a method.
Have you encounter this kind of problem? and if it is how did you solve it?
Thanks in advance.
YiNing
Well, I made a mistake.
The Calendar is not singleton. But why it will use a getInstance() to get a instance...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.