Supported HTTP2 client libraries similar like OKHTTP/Jetty for Java Embedded ME - java-me

We are trying to access server which supports HTTP2 from the Java embedded ME client. I am looking for list of HTTP2 Client library similar to OKHTTP, Jetty for constraint environment like Java Embedded ME. If anybody has done similar thing/samples or suggestion how to send HTTP2 request from Java Embedded ME client to server which supports HTTP2. Please suggest.
We tried with OKHttp for Java ME platform but it requires additional package like java.util.net etc. Also Jetty with HTTP2 has Java 8 dependency if I am not wrong which our embedded device will not support?
Thanks in advance..

Related

Is it possible to load test an application hosted in linux server using jmeter?

Am using Linux machine.I want to know that whether it is possible to load test an gaming application(includes HTTPs and websocket protocol) hosted on Linux server, using JMeter.
If you want to run JMeter on Linux machine - it can be done because being a pure Java application JMeter runs anywhere where Java runs. You can install Java on Linux using either your package manager or a 3rd-party tool like SDKMAN!
If you want to use JMeter to test application which runs on Linux it can be done as well, JMeter doesn't know anything about operating system of the application under test.
HTTP protocol can be covered using built-in HTTP Request sampler
WebSocket protocol can be covered by WebSocket Samplers (aren't shipped with JMeter, you will need to install them using JMeter Plugins Manager)

Commnication with scanner using Node js

Is it possible to to communicate with scanner using node js ?
We are using a php application which currently uses a Java applet to communicate with a scanner.
Since latest chrome versions have stopped support for applets we are looking for an alternative method for usb port communication
Can nodejs help us initiate the scan and read bufferstream from the port ?
If not what others options do we have ?
It should be possible with additional libraries.
Try to use this one https://github.com/tessel/node-usb
There is no pure javascript solution.
Fast way is to convert Java applet to Java Web Start. You have to write JNLP which download jars and runs applet outside browser.
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/applet_migration.html
You can also install scanning daemon on client side and connect via web sockets.
Eg. https://www.npmjs.com/package/scanner-js

Do any Cassandra drivers for node.js support SSL?

I am assuming the driver would need to support this. If there is a way to 'force' SSL on the driver (without its knowledge) I'd appreciate any tips.
Looks like this driver should support SSL in client-to-node communication:
https://github.com/datastax/nodejs-driver

RPC from Windows to linux

Is there some (working) example how to create RPC from windows to linux?
Client should be windows NT application, server is linux.
It needs to be MSRPC.
No Corba, no XML-RPC, SUN-RPC etc
MSDN says this:
RPC can be used in all client/server applications based on Windows
operating systems. It can also be used to create client and server
programs for heterogeneous network environments that include such
operating systems as Unix and Apple.
Unfortunately after spending few hours on google I'm giving up.
My expectation:
Linux node should have samba installed, because their MSRPC implementation works.
Using IDL file I generate stubs for both client and server
Client is built using MSVC
Server is build using gcc with some includes/libraries from samba (or other libs)
Linux node must have such RPC port mapper
Can someone point me out?
I think you have 2 possible ways to deal with this:
1- You can try using DCOM with wine, which means that you will actually write your code for windows, but at the same time you can test your results in the process and avoid using WinAPI calls that wine is not able to handle properly. This approach will allow you to generate stubs code from your IDL files.
2- You can try using Samba RPC Pluggable Modules, but I am afraid in this case the RPC communication will be more primitive.
Edit:
It seems there are many other ways. I found a list of libraries in DCOM-Wikipedia, j-Interop for example looks particularly promising.

nodejs and websockets on Windows

I looked through a number of posts on websockets, nodejs, and socket.io and could not find an answer to this question.
I would like to set up a development environment using nodejs to develop websockets application. I would prefer to run Windows since I have physical hardware running Windows and I am very comfortable with VS, but I could set up a Linux box running nginx or apache if necessary. I have explored iisnode, which has good support for node.js, but has no support for websockets since IIS 7.* does not support websockets. I also know Windows 8 supports websockets, but I need Server 2008 R2 and Windows 7 for other tasks, so I would like to avoid that until it is released.
What has worked well for other developers of websockets using nodejs with or without windows as a server development environment?
I am using NodeJS with WAMP (win x64 php 5.x, apache 2.2.x, mysql 5.x) and I'm pretty happy with it, besides a few problem keeping up a long time socket connection between a browser and NodeJS (socket.io). As it's a socket server on its own (with socket.io), i don't have any hooks with apache ! It's pure javascript. And if i need to interact with apache/php/mysql, i just do some posts requests... Also there are modules to interact with mysql.

Resources