Another 2 speculations
1. first request has to return 2K of junk as part of typical handshake and
no valuable info - it is just to get subscription ID and stuff. It is
typical to swallow the first 2K of messages and do not respond to them till
the stream goes over 2K. Please use any debugging proxy - I use either
Charles or wire debugger depending on protocol - to see if the data is
actually going to the client. If it does, I would add 4K string var as a
part of the response.
2. Subscription ID is not established yet, so you really need to debug
through the client code in order to see if there are any errors in handling
the subscription - usually subscriptions are not returning data on the first
response and client code might - I did not look in subscription endpoint -
ignore everything but the headers.
 I would create client side endpoint to match ServiceAdapter.
HTH,
Anatole



On Tue, Jun 24, 2008 at 12:45 AM, shaun <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> A pure 100% guess... Perhaps you need to call super.manage(command).
>
>
> Steven Toth wrote:
> > --- In [email protected] <flexcoders%40yahoogroups.com>,
> "Steven Toth" <[EMAIL PROTECTED]> wrote:
> >
> >>I have a custom adapter I'm using for messaging. This code works
> >
> > in
> >
> >>BlazeDS, but when I try it in LiveCycle DS it does not work. The
> >>return value (a new AckknowledgeMessage I created) from my
> >
> > overriden
> >
> >>manage() method never makes it to the client. I see the message
> >
> > from
> >
> >>the sysout at the end of the method populated correctly, but
> >
> > whatever
> >
> >>is happening after this method is called and before the message is
> >>returned to the client overwrites what I returned. Any thoughts?
> >>
> >>public class MyMessagingAdapter extends ServiceAdapter {
> >> public boolean handlesSubscriptions() {
> >> return true;
> >> }
> >>
> >> public Object manage(CommandMessage command) {
> >> Object ret = null;
> >> try {
> >> if (command.getOperation() ==
> >>CommandMessage.SUBSCRIBE_OPERATION) {
> >> // Do something custom here...
> >>
> >> AcknowledgeMessage msg = new
> >>AcknowledgeMessage();
> >> ASObject body = (ASObject)msg.getBody
> >>();
> >> if (body == null) {
> >> body = new ASObject();
> >> msg.setBody(body);
> >> }
> >> body.put("someValue","abc");
> >> body.put("spmeOtherValue, "def");
> >> ret = msg;
> >> }
> >> } catch (Throwable t) {
> >> System.out.println("manage(), exception
> >>caught:\n" + t.getMessage());
> >> t.printStackTrace();
> >> }
> >> System.out.println("manage(), returning msg:\n" +
> >>ret);
> >> return ret;
> >> }
> >>
> >
> >
> >
> >
>
> 
>

Reply via email to