0

I would like to parse Velocity templates using Apache Velocity runtime engine line by line with java. I mean, I would like evaluate each one of the lines of the velocity script, getting the answer for that single line, if any, as an input to another task. This other task will process the input and will send it's output to the Velocity script that may use it or not.

How can I stablish this runtime dialog betwen the Velocity engine and the other task?

1 Answers1

0

It is a producer-consumer problem, and you can achieve that with Threads interaction.

Refer these for more info:

Java Threads

Threads Interaction/Communication

Producer Consumer Problem

Community
  • 1
  • 1
K139
  • 3,654
  • 13
  • 17