Hi Val,

Application is already running on top of JBOSS, so no need of another HTTP
server. 

Without connector configuration GridRestProcessor will not initialize. So I
had to initialize  Grid*CommandHandlers separately after Ignition.start() 

final GridKernalContext ctx = ((IgniteKernal)ignite).context();
... new GridCacheCommandHandler(ctx);
... new GridTaskCommandHandler(ctx);
... new GridTopologyCommandHandler(ctx);
... new GridVersionCommandHandler(ctx);
... new DataStructuresCommandHandler(ctx);
... new QueryCommandHandler(ctx);
... new GridLogCommandHandler(ctx);

and written a new REST controller which is similar to GridJettyRestHandler
with smallest change to handle request -

GridRestCommandHandler hnd =
CacheManager.getInstance().getRestCommandHandlers().get(cmdReq.command());
cmdRes = hnd.handleAsync(cmdReq).get();


Things are working fine. However I guess other functionalities from
GridRestProcessor are not available, like timeoutChecker, security, etc ... 

Plug-able custom rest processor would have been better.

Thanks,
-Sam 
 






--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Ignite-REST-with-JBOSS-tp10108p10131.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to