[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
CLIENTMETHODCALLER Callback Strategy  XML
Forum Index -> Development
Author Message
bthalheim

Power User

Joined: 05/04/2012 11:45:24
Messages: 72
Offline

Hi,

for my own interest I'd like to ask the following questions: Why is the Callback in CLIENTMETHODCALLER class-based? Couldn't it be instance-based, too?

The reason why I'm asking this, is the consequence of class-based callback that you need a static (global) field/method to communicate messages, because the Class which implements ICLIENTMETHODCALLERTarget is instantiated by the framework needs to send somehow messages somewhere. This works, but feels weird to me.

Regards,

Björn
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,

I am not yet sure how to do it in a different way - there is no naming service or "Spring-like-framework" available on client side...

Do I misunderstand something?

Regards, Björn

Björn Müller, CaptainCasa GmbH
bthalheim

Power User

Joined: 05/04/2012 11:45:24
Messages: 72
Offline

I think you understood me very well even though my question was probably ambigious.

So basically, it is not possible to adapt the PageBrowser to pass in an instance of ICLIENTMETHODCALLERTarget to use for callback (which I would call then instance-based callback), because in the JSP, this callback instance simply cannot be used.

Unfortunately, I don't know very much about JSP, otherwise I could probably easier understand, why things are done the way they are done. If I understand you right, it's simply because this is the only way it could work.

Thanks,

Björn
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,

...yes, please carefully pay attentions that the CLIENTMETHODCALLER is some logic running on client side (for interface purpose) and is not aware of any JSP issues on server side...

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team