Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

LCDS Bug, return from overriden ServiceAdapter manage() discarded

Not applicable
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 discards what I returned. This seems like a bug.



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;

}

}
2 Replies
Not applicable
> 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.



Steven,



Have you tried your custom adapter on the LCDS 2.6 beta available at

labs.adobe.com? This includes the 3.0 version of BlazeDS, so I would expect

that what ever bug you are encountering is fixed. If not, please let us

know.



--

Tom Jordahl

LCDS team
Not applicable
I tried it LCDS 2.6 Beta and it is fixed. Thank you for your assistance.