Forum Discussion
nmrao
12 years agoChampion Level 3
invoking reusable java classes which are called from jars (Kept inside of soapui bin/ext/)
I am not sure about locking. My bet here is to take a look the java class implementation and see if code is written thread safe or not and if there are any static variables are used, please pay attention to them.
There are otherways of doing as well:
1. you may directly provide a command in side groovy, as if you are running it on command line java call and this will not require to copy the jar files to specific location, and can be referred from where they are. And you can get the return code from the java to groovy back.
for eg:
$JAVA_HOME/bin/java -cp $CLASSPATH <your class name> arguments
Below link will help you for the same.
http://groovy.codehaus.org/Executing+Ex ... rom+Groovy
2. You may also create your Instance variables of java class, and call methods of the same like you do in java.
Regards,
Rao.
Related Content
- 6 years ago
Recent Discussions
- 15 years ago