Hi

I have a simple test HTML client that is trying to subscribing to java Adapter in DISTINCT or RAW mode. Looks like the client is connected but does not subscribe. The same client works well if i subscribe in MERGE mode.

I am aware that the MERGE and DISTINCT mode clients can not co-exist, so after my MERGE test i restarted my adapter to make sure i don't have any client connected to it in MERGE mode.

The first line on my java adapter subscribe method is printing out the item that is being subscribed. When subscribe in MERGE mode, i see the line being printed , but on the DISTINCT or RAW mode, i don't see it which makes me believe that i am not subscribed.

Question is do i need to make any special setting in the Adapter to support DISTINCT or RAW ? i am not sure what i am missing.

Below is the snippet of client code , Please advise

<script>
var hostToUse = "http://localhost:9090"
define("lsClient",["LightstreamerClient","StatusWidget"],function(LightstreamerClient,StatusWidget) {
var lsClient = new LightstreamerClient(hostToUse,"ESTREAMER");
lsClient.connect();
return lsClient;
});


</script>
<!-- JavaScript code specific of this application -->
<script type="text/javascript">


require(["lsClient","Subscription","DynaGrid"], function(lsClient,Subscription,DynaGrid) {

var logDynaGrid = new DynaGrid("loggrid",true);
logDynaGrid .setAutoCleanBehavior(true,false);
logDynaGrid .addListener({
onVisualUpdate: function(key,info, domNode) {
if (info == null) {
//cleaning
return;
}
var cold = (key.substring(4) % 2 == 1) ? "#eeeeee" : "#ddddee";
info.setAttribute("yellow", cold, "backgroundColor");
}
});

var logGridSubscription = new Subscription("RAW","item_1",logDynaGrid .extractFieldList());
logGridSubscription.addListener(logDynaGrid);
logGridSubscription.setDataAdapter("LOG_ADAPTER_DI S");
logGridSubscription.setRequestedSnapshot("yes");
lsClient.subscribe(logGridSubscription);
});


</script>