Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
problem with dynamic text scripting
elpivo
hi all, i was wondering if anyone knwos how to call an ejb from the dynamic text script.
thanks all!!!
Find more posts tagged with
Comments
averma
Hi elpivo:<br />
The code to call ejb would not be much different from code to call regular java class, you just need to follow the ejb specifications to package home and remote implementations in their own jars along with any utility classes and make it available to BIRT. BIRT uses Mozilla Rhino JavaScript which provides integration with Java. You would import the required Java package and use it in your scripts as follows:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
importPackage( Packages.com.mycompany.MyPackage);
myObj = new MyClass();
myObj.myClassMethos();
</pre>
Hope this helps!<br />
<br />
Ashwini