cancel
Showing results for 
Search instead for 
Did you mean: 

Calendar in web service

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Well, I made a mistake.

The Calendar is not singleton. But why it will use a getInstance() to get a instance...