i have two java classes , and i want to take the output of the first java class ,pass this data to Node Js then, finally this data must move from Node Js to the other Java class as arguments
this the first java class
public static void main(String[] args) {
Random randomGenerator = new Random();
String timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
long timestamp = System.currentTimeMillis() / 1000;
for (int idx = 1; idx <= 10; ++idx) {
int randomInt = randomGenerator.nextInt(100);
System.out.println("Generated : \t" + randomInt + "\t time:\t" + timestamp);
//System.out.println("Generated : \t" + randomInt + "\t time:\t" + timeStamp);
}
}
then this is the second one
String msg = args[]
producer.send(new KeyedMessage("topic",msg));
i need to do this job using Node Js
Any suggestions please
via user3623460
No comments:
Post a Comment