Calling java from scripting

Hello,
I would like to integrate some scripting capability in my web application.
The main purpose is to cover the following scenario :
- I develop a web app with JSP technology, packaged in a MyAPP.WAR file containing my application and another file (MyCustomer.RAR?) containing installation specific informations. I want the MyApp.WAR to be the same for all my customers, just having the RAR file specific to each customer (installation).
- In this ressource file, there could be some scripting functions that will be called from my JSP Pages to change the default presentation with some customer particular informations.
Those informations would be extracted from my java data model. The purpose is to enable the customer to code some little script, and to avoid coding those in Java.
The question I have on that are :
1/ is it possible to call java instances from scripting language (I read on apache that the answer was yes for some of them), but I would like to know if javascript can do that.
2/ Can I recover the "result" of the script in JSP ?
An example :
1/ The class containing a marvellous property
class MyClass {
public String myProperty;
2/ The JSP page :
<stlLib:callScript(Customer.RAR, "ScriptToCall",anInstance) />
<stlLib:getResult ???>
3/ A user script (pseudo-code)
Customer 1 :
Function ScriptToCall(object) {
variable iwanttoshowsquareroot;
iwanttoshowsquareroot = squareroot(object.myProperty);
return iwanttoshowsquareroot ;
Customer 2 :
Function ScriptToCall(object) {
variable mychoiceisdifferent;
mychoiceisdifferent= object.myProperty / 2;
return mychoiceisdifferent;
According to what ScriptToCall looks like the result on page would be different
Thanks in advance for your advises
Olivier.

1) The script will be running in the browser, not the server, yes? So in Netscape you can load Java objects via Javascript, but IE doesn't seem to support this. Although in either, you can call methods on an applet in the page. But you can't call a JS function from the Java code in the JSP page, since that is only executed on the server.
2) Only if the "result" is submitted back to the server.

Similar Messages

  • Call java from sybase trigger

    Is it possible to call java from Sybase trigger ? If so can you please supply example or URL to one ? Alternative solution is to call shell script from sybase trigger (as app is based on Solaris).
    Regards
    Michal

    Thank for your opinion, but what idea is better ?Doing things in the middle tier, where Java lives.
    Ever heard of event-based trading systems?
    pooling a table every 30 sec. ?. I need to implment
    real-time system which process each trade from table
    once it appears there.Sounds like you have it backwards - you're trying to drive Java from the database.
    I think it'd be better to write that event-based system in Java and leave the database just for persistence.
    GigaSpaces and their ilk are being used this way for highly transactional trading systems. Maybe you could see how they're doing it.
    %

  • Call java from ABAP

    JCo connectivity is used to call RFCs from Java. can i call Java from abap?
    thanks in advance.....
    regards,
    Sundararamaprasad

    Hi Sundar ,
             This link will surely give u an idea about calling java fro ABAP using Jco.
    http://www.thespot4sap.com/Articles/SAP_Netweaver_Java_Connector.asp
    regards,
    aravindh.

  • Calling Java from Delphi

    Can ActiveX bridge used for calling Java from Delphi?

    Also trying to solve this problem, after creating the bean i packaged/registered it successfully, (tested the bean using beanbox, works perfectly) then tried calling it via createoleobject in delphi 7
    (*Code Snip *)
    Var
    v : variant;
    begin
    try
    v := createoleobject(Edit1.text); // my class name ie WorldPort.Bean (also tried WorldPort.Bean.1
    except on e:exception do
    showmessage(e.Message)
    end;
    end;
    (*Code Snip*)
    After this simple code failed i started backtracking , eventually after getting "Access Violation...etc in axbridge.dll" all the time. tried delphi "import activex control" got the same access violation.
    Decided to test the example from http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/examples.html........ they both crashed on execution (calc.exe and boundprop.exe).
    After this failed I tested these example classes on another machine, both crashed again.....
    Also tried this experiment in VC++ , after adding the class to the Toolbox , i try to drop it onto a form, once again access violation.**PS**
    ('You will need VC++ and the Microsoft SDK to build the dll, download c++beta for free from microsoft site it you need it')** and a simple cmd file todo the job would look something like this:
    echo - ** Build Java ActiveX Bridge **
    echo Make sure these folders exist in jre--> axbridge\lib and axbridge\bin
    cd\SDK\jre\axbridge\bin
    set path=%path%;C:\MSDN\Bin;C:\VisualC++\lib
    echo path
    javac WorldPort.java
    jar cmf Manifest.txt WorldPort.jar WorldPort.class
    "C:\SDK\bin\packager.exe" -clsid {162193C4-AD5C-4A06-9F88-A737AE9B43AD} -out "C:\SDK\jre\axbridge\bin" WorldPort.jar WorldPort-reg
    *** After running this cmd you will find the dll in bin folder and the jar in lib folder..***
    Must Read:http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    Hope some of this helps , if you have successfully created / installed/ used a "JavaActiveX" in Delphi , i would really like to try replicate it on my machine..

  • Advantages and Disadvantages of calling java from PL/SQL

    Hi,
    I have one doubt. What are all the advantages and disadvantages of the calling java from PL/SQL?
    In actual scenario the java program will be in the Application server side. It will do the operation and it will store the result in Data base. But in this case (calling java from PL/SQL), we are loading the java program in the Data base and it is doing the operations.
    I have seen many posts are coming regarding loading jar files into the database. Actually the jar will deploy in to Application server. Is there any difference instead of keeping in the Application server side?
    Then I have read,
    advantages:
    -> java having lot API's. so PL/SQL can use that API's.
    -> if we can not do anything in PL/SQL. we can do it using this mtd(calling java from PL/SQL).
    My questions:
    -> could you explain what are all the things we can not do but we can do using "calling java from PL/SQL" method?
    -> is there any other advantages?
    Disadvantages:
    -> the performance is very slow in calling java from PL/SQL.
    My questions:
    -> Then why others are loading java files and jar files into database?
    -> is there any other disadvantages?
    Could you explain about this one? It will be more helpful to others also…
    Regards,
    kk

    Hi,
    You can read the free first chapter of my book @ http://www.amazon.com/gp/product/1555583296/ (see details then Excerpt)
    Kuassi http://db360.blogspot.com

  • Problem calling java from vb via activex bridge

    I am trying to call java from vb via ActiveX Bridge and I am running into problems. I would appreciate any help.
    I am using Visual Basic 2010 express, and Java JDK 1.6.0_16. I have used the http://download.oracle.com/javase/1.4.2/docs/guide/beans/axbridge/developerguide/index.html page as a guideline. To try to make it work I took the following steps:
    1. Wrote a very simple java class (below):
    package xxx;
    import java.io.Serializable;
    public class axb implements Serializable {
    public int get_axb_Handle() {
    int Address = 12345678;
    return Address;
    2. After I compiled, and created the jar file. I built the dll using the following command:
    "C:\Program Files\Java\jdk1.6.0_16\bin\packager" -out "C:\Program Files\Java\jdk1.6.0_16\jre\axbridge\bin" E:\axb\dist\axb.jar xxx.axb
    3. I then registered using: regsvr32 axb.dll
    4. In Visual Basic Express IDE I use Project -> Add Reference to add Iterop.axb (dump below), and axb namespace
    5. In my basic code I use the following lines
    Dim axb1 As axb.axb
    axb1 = New axb.axb <== Crash here with AccessViolationException ( full exception below)
    What am I missing? Any help would be greatly appreciated
    Thanks
    Iterop.axb partial dump
    ___[MOD] C:\Documents and Settings\Elie A. Cohen.USINC022\My Documents\Visual Studio 2010\Projects\Repo API Example\Repo API Example\obj\x86\Release\Interop.axb.dll
    | M A N I F E S T
    |___[NSP] axb
    | |___[INT] axb.axb
    | | | .class interface public abstract auto ansi import /*02000006*/
    | | | implements axb.axbDispatch/*02000003*/
    | | | implements axb.axbSource_Event/*02000005*/
    | | | .custom /*0C000018:0A000001*/ instance void [mscorlib/*23000001*/]System.Runtime.InteropServices.GuidAttribute/*01000002*/::.ctor(string) /* 0A000001 */ = ( 01 00 24 34 45 36 44 30 44 41 38 2D 36 41 45 44 // ..$4E6D0DA8-6AED ...
    | | | .custom /*0C000019:0A000007*/ instance void [mscorlib/*23000001*/]System.Runtime.InteropServices.CoClassAttribute/*01000009*/::.ctor(class [mscorlib/*23000001*/]System.Type/*01000007*/) /* 0A000007 */ = ( 01 00 0C 61 78 62 2E 61 78 62 43 6C 61 73 73 00 // ...axb.axbClass. ...
    | |
    | |___[CLS] axb.axbClass
    | | | .class public auto ansi import /*02000004*/
    | | | implements axb.axbDispatch/*02000003*/
    | | | implements axb.axb/*02000006*/
    | | | implements axb.axbSource_Event/*02000005*/
    | | | .custom /*0C00000F:0A000008*/ instance void [mscorlib/*23000001*/]System.Runtime.InteropServices.ClassInterfaceAttribute/*0100000A*/::.ctor(int16) /* 0A000008 */ = ( 01 00 00 00 00 00 ) ...
    | | | .custom /*0C000010:0A000009*/ instance void [mscorlib/*23000001*/]System.Runtime.InteropServices.ComSourceInterfacesAttribute/*0100000B*/::.ctor(string) /* 0A000009 */ = ( 01 00 0F 61 78 62 2E 61 78 62 53 6F 75 72 63 65 // ...axb.axbSource ...
    | | | .custom /*0C000011:0A000001*/ instance void [mscorlib/*23000001*/]System.Runtime.InteropServices.GuidAttribute/*01000002*/::.ctor(string) /* 0A000001 */ = ( 01 00 24 43 44 42 46 36 42 33 33 2D 45 32 33 46 // ..$CDBF6B33-E23F ...
    | | | .custom /*0C000012:0A000002*/ instance void [mscorlib/*23000001*/]System.Runtime.InteropServices.TypeLibTypeAttribute/*01000003*/::.ctor(int16) /* 0A000002 */ = ( 01 00 02 00 00 00 ) ...
    | | |___[MET] method .ctor : void()
    | | |___[MET] method equals : bool(object)
    | | |___[MET] method getClass : object()
    | | |___[MET] method get_axb_Handle : int32()
    | | |___[MET] method hashCode : int32()
    | | |___[MET] method notify : void()
    | | |___[MET] method notifyAll : void()
    | | |___[MET] method toString : string()
    | | |___[MET] method wait : object(object,object)
    AccessViolationException exception
    System.AccessViolationException was unhandled
    Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Source=mscorlib
    StackTrace:
    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
    at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
    at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
    at System.Activator.CreateInstance(Type type)
    at WindowsApplication1.Form1.getPatientHandle_Click(Object sender, EventArgs e) in C:\Documents and Settings\Elie A. Cohen.USINC022\my documents\visual studio 2010\Projects\Repo API Example\Repo API Example\Repo API Example.vb:line 13
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
    at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException:

    In case you haven't figured it out already... Or if anyone else is curious... Or for myself when I get old and forgetful...
    h2. Object Creation
    For starters, when you create an ActiveX object from within VB, use:
    Set myObject = CreateObject("JavaObject.Bean")When I refer to JavaObject.Bean, I'm meaning the full object name + ".Bean". So, in your case, you should use:
    Set myObject = CreateObject("xxx.axb.Bean")h2. Location
    The .dll file must be located in the JRE that is used at the time of calling. Meaning, the .dll file must be placed under <jre_home>\axbridge\bin and registered there.
    In your case:
    DLL:
    C:\Program Files\Java\jre6\axbridge\bin
    Jar:
    C:\Program Files\Java\jre6\axbridge\libh4. A Note:
    The only supported JRE is a 32bit version as far as I know with regards to the ActiveX bridge. Just like the packager.exe can only be found in the 32bit JDK.
    h2. Methods
    h3. Object Types
    ActiveX Bridge does not support passing literals or arrays. However, it does support passing java's primitive data types as Objects.
    Simply meaning:
    h4. Invalid:
    public int get_axb_Handle() {
         int Address = 12345678;
         return Address;
    }h4. Valid:
    public Integer get_axb_Handle() {
         int Address = 12345678;
         return Address;
    }On a normal circumstance, there's little difference between the two methods. However, in the second example, the JVM does a typecast from a literal data type to a object data type, resulting in a valid object to pass through to Visual Basic. Now, obviously there are multiple ways to do a proper change, new Integer(int) for example. It doesn't matter to me. At the end of the day, you have to pass an object.
    As a side note, the same idea applies when receiving data from Visual Basic.
    h4. Invalid:
    public void set_axb_Handle(int newHandle) {
         int Address = newHandle;
    }h4. Valid:
    public void set_axb_Handle(Integer newHandle) {
         int Address =newHandle;

  • ResourceBundle throws MissingResourceException when calling Java from C

    All,
    Our code calls Java from C application.
    The C code create JVM using JNI_CreateJavaVM. Due to internal design issues we don't
    create the JVM with a "-classpath" option.
    After creating the JVM, we create a ClassLoader (URLClassLoader), with a URL list as it's classpath.
    The last step in the C code is to load a Java class using the C reference to URLClassLoader.loadClass
    (I will refer to this class as classA), and than call one of it's static methods.
    Please notice that classA is not instantiated, we call a static method.
    At this point we are moving to the Java code...
    In the Java static method we call ResourceBundle.getBundle("resources.messages"),
    the result is ResourceBundle throws MissingResourceException.
    - The JAR hosting "resources/messeges.properties" (refer as jarA) is include in the
    ClassLoader URL paths we used for loading the Java class.
    - Using a debugger we can see that ClassLoader.getSystemClassLoader() don't contain
    jarA in it's URL list.
    - Using the debugger we see that classA.class.getClassLoader() does contain
    jarA in it's URL list.
    After some investigation we see that ResourceBundle.getBundle calles to ResourceBundle.getLoader:
    private static ClassLoader getLoader() {
            Class[] stack = getClassContext();
            /* Magic number 2 identifies our caller's caller */
            Class c = stack[2];
            ClassLoader cl = (c == null) ? null : c.getClassLoader();
            if (cl == null) {
                cl = ClassLoader.getSystemClassLoader();
            return cl;
        } getClassContext() - native method, this can explain the why the above work fine for Windows.
    I suspect the problem raised in the above code. Since I couldn't get a debug
    version of rt.jar for Solaris, I need some help.
    Our environment is Solaris 8, Java 1.5.
    Please note that the same code works fine on WindowsXP with the same Java version!
    Thanks,
    Avi

    I was thinking JVM should the classpath when it is invoked. But obviously it is not and we need to assign the classpath ourselves when invoking from native side. Thanks for pointing that out. For other people's benefit the following is the code piece I for initializing JVM.
    char* str1;
              char* str2;
              char* classpath;
              str1 = "-Djava.class.path=";
              str2 = std::getenv("CLASSPATH");
              classpath = (char*)malloc(strlen(str1) + strlen(str2) + 1);
              strcpy(classpath, str1);
              strcat(classpath, str2);
              if (str2 == NULL)     {
                   printf("CLASSPATH environment variable is not defined.");
                   exit(1);
              m_VmArgs.version = JNI_VERSION_1_4;
              m_options[0].optionString= classpath;
              m_VmArgs.options = m_options;
              m_VmArgs.nOptions = 1;
              m_VmArgs.ignoreUnrecognized = JNI_TRUE;
              JNI_GetDefaultJavaVMInitArgs(&m_VmArgs);
              /* Create the Java VM */
              m_Res = JNI_CreateJavaVM(&m_Jvm, (void**)&m_Env, &m_VmArgs);
              if (m_Res < 0) {
                   printf("Can't create JVM\n");
                   exit(1);
    thanks,
    chancellor

  • Questions abt. calling Java from C

    I have a java class that contains a method I need to make accessable to C functions. It looks something like this:
    public class ExportName
       private SomeObj theObj;
       public ExportName(SomeObj theObj)
          this.theObj = theObj;
       } //end ExportName
       public String getName()
          return theObj.getName();
       public native String getNameJNI();
    }Using javah I have my ExportName.h, and I'm in the process of writing ExportName.c:
    #include <stdio.h>
    #include <jni.h>
    #include "ExportName.h"
    JNIEXPORT jstring JNICALL Java_ExportName_getNameJNI (JNIEnv *, jobject)
       jclass cls = (*env)->GetObjectClass(env, obj);
       jMethodID mid = (*env)->GetMethodID(env, cls, "getName", "()Ljava/lang/String");
       if (mid == 0)
          return;
       } /* end if */
    }I have 2 questions:
    (1)At some point, I need to actually call the java method using
    (*env)->Call<TYPE>Method(env, obj, mid);
    What type should I use here (CallWhatMethod)?
    (2)Also, I need to create genuine C wrappers for these methods. How do I hand off the jstring returned by this JNI C code to the ANSI C method that calls it? I know that there is a conversion along the lines of:
    const char str = (env)->GetStringUTFChars(env, <<JSTRING HERE>>, 0);
    Can I just put the call to the JNI method where the jstring variable name goes?
    Any help would be appreciated. I have already read the Java tutorial on JNI, so please don't respond just to tell me to go there.
    Thanks!

    If that is the case, then your starting point is not javah, but to investigate the invocation API, after which you will call java methods from C.
    Well, the Invocation API is mostly orthogonal to whether you are calling Java from C or vice versa. The Invocation API is mostly about creating/destroying VMs. You can call Java methods from a flat C application or you can call Java methods from C from within Java native methods.
    If you want to call Java from C, you need to use the methods you're using like GetMethodID, CallXXXMethod, etc...
    In your particular example, if you wanted to call ExportName.getName(), you would use CallObjectMethod. You would cast the result to a jstring, and then use GetStringUTFChars, ReleaseStringUTFChars, etc...
    God bless,
    -Toby Reyelts
    For a solution to all your JNI woes, check out Jace - http://jace.reyelts.com/jace

  • Calling java from csh scripts

    I have recently come across certain projects where Java has being used as an alternative for scripting purposes. What I am trying to say here is that making calls to java programs from csh scripts and these Java programs are merely doing trivial/sql tasks which could have very well been carried out in a scripting language itself. and then Java calling some scripts so ending up with a chain of Java calling scripts which call Java and so on.
    It has been my understanding all along that such a design would not be something recommended, and there should be a separation of concerns and a clear demarcation between Java and the scripting code. What however I am struggling with is finding some articles or papers supporting this thought and I would greatly appreciate if some you have something you would like to share preferably an article, supporting or negating such a design.
    Edited by: kilyas on Mar 25, 2010 2:52 PM

    >
    Actually my original post was a reply to Saish. But thanks for the input. It's good to know that you extend TDD to scripting as well, but most of the scenarios I have come across thats not been the case. Whether thats the lack of test tools/libraries like JUnit or JMock for csh scripting or the user's frame of mind of getting things done, I am not sure.There's no need for such tools. Even in Java et al, test harnesses can be hand-whittled. JUnit is just Java code, after all. Test harnesses for scripts are no different. As an extremely basic example, you might a file that picks up everything from one directory, run a sed application against it, and dump the results in another directory. Writing tests for that is pretty easy; start with a couple of sample input files, and expected outs, apply your script, do a diff on the resut against the expected outs. Granted there isn't a nice UI to give you a green bar with shell scripts, but you can still get a list of pass/fail stats. Groovy scripts, of course, can be run in an actual JUnit runner.
    If you're finding it too hard to test scripts, like perhaps there are too many different flows of execution through the script, it's worth considering whether the task-at-hand is really a scripting job at all. The sweet spot for scripts is gluing together the stuff that performs all the complex logic.
    What are the best practices recommendations for such a scenario, I am sure there much be something about it or some pattern or anti pattern dealing with it and some review of such an implementation. Don't you think so?I hope so! I've been tasked with documenting a scripting standard written by another developer, finding references to cite and such-like. There do exist coding standards on the web for scripting, shouldn't be too hard to find something useful. As for reviews, I expect simple peer review by someone else who knows scripting is about as good as it's going to get.
    I'd add that logging plays an important part in scripting, just as it does in your "real" code

  • Calling java from python

    Hi,
    I am trying to call java methods from a python script. Jython is not an option. I have looked at using Jpype. Below is my code thus far:
    Jpype.py
    from jpype import *
    startJVM("C:\Program Files\Java\jdk1.6.0_12\jre\bin\client", "-ea", "-Djava.class.path=%s" % classpath)
    com =JPackage("CallJavaFromPython")
    jp = com.Jpype1()
    jp.printArgument("XXX")
    shutdownJVM()
    ================================================== =
    Jpype1.class
    package CallJavaFromPython;
    public class Jpype1 {
    public static void main(String args[]){
    System.out.println(args[0]);
    public void printArgument(String arg){
    System.out.println(arg);
    ================================================== =
    Error message i am getting when I try to run the python script is :
    NameError: name 'startJVM' is not defined
    has anyone come across this before?
    Thanks in advance...

    hofsoc wrote:
    The most recent release of Jython does not support above Python 2.3. There is a beta version released but it is not possible for me to use this. Otherwise it would be perfect.Ok, that's a drag. Any chance you can use an earlier version of Python?

  • Calling Java from OMB Plus

    I have a number of OMB Scripts which import/export etc.. Within this script I capture the password from the user so that I can connect to the repository. I found a new class in the latest java which will mask this password and I want to use this within my TCL Script. From what I've read you should be able to call Java Classes from a TCL Script however it gives me a java.lang.reflect.InvocationTargetException
    error. Any help you would be appreciated. (Error at bottom of post)
    Thanks
    Sean
    I've included the Call and the class below.
    Within my tcl script
    package require java
    set t [ java::new finance.ombpass ]
    set owbreppass [$t run]
    JAVA ombpass.Java
    (The Class file ombpass.class in contained in the folder "finance" located under
    oracle\product\owb\10204\owb\bin\admin\)
    The TCL Source is being called after performing a cd to that directory.
    package finance;
    import java.io.Console;
    public class ombpass{
              public String run() {
                   Console cons = System.console();
                   char [] pswd = cons.readPassword("Password: ");
                   String s = new String(pswd);
                   System.out.println(s);
         return s;
    ERROR THROWN...
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at Launcher.main(Launcher.java:167)
    Caused by: java.lang.UnsupportedClassVersionError: finance/ombpass (Unsupported major.minor version 50.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at tcl.lang.TclClassLoader.loadClass(TclClassLoader.java:148)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at tcl.lang.JavaInvoke.getClassByName(JavaInvoke.java:712)
    at tcl.lang.FuncSig.get(FuncSig.java:216)
    at tcl.lang.JavaInvoke.newInstance(JavaInvoke.java:67)
    at tcl.lang.JavaNewCmd.cmdProc(JavaNewCmd.java:105)
    at tcl.lang.Parser.evalObjv(Parser.java:818)
    at tcl.lang.Parser.eval2(Parser.java:1221)
    at tcl.lang.Parser.evalTokens(Parser.java:1001)
    at tcl.lang.Parser.eval2(Parser.java:1208)
    at tcl.lang.Procedure.cmdProc(Procedure.java:161)
    at tcl.lang.Parser.evalObjv(Parser.java:818)
    at tcl.lang.Parser.eval2(Parser.java:1221)
    at tcl.lang.Interp.eval(Interp.java:2189)
    at tcl.lang.Interp.eval(Interp.java:2273)
    at tcl.lang.SwitchCmd.cmdProc(SwitchCmd.java:141)
    at tcl.lang.Parser.evalObjv(Parser.java:818)
    at tcl.lang.Parser.eval2(Parser.java:1221)
    at tcl.lang.Procedure.cmdProc(Procedure.java:161)
    at tcl.lang.Parser.evalObjv(Parser.java:818)
    at tcl.lang.Parser.eval2(Parser.java:1221)
    at tcl.lang.Interp.eval(Interp.java:2189)
    at tcl.lang.Interp.evalFile(Interp.java:2368)
    at tcl.lang.SourceCmd.cmdProc(SourceCmd.java:75)
    at tcl.lang.Parser.evalObjv(Parser.java:818)
    at tcl.lang.Parser.eval2(Parser.java:1221)
    at tcl.lang.Interp.eval(Interp.java:2189)
    at tcl.lang.Interp.eval(Interp.java:2273)
    at tcl.lang.Interp.recordAndEval(Interp.java:2328)
    at tcl.lang.TclConsoleThread$2.processEvent(TclShell.java:424)
    at tcl.lang.Notifier.serviceEvent(Notifier.java:444)
    at tcl.lang.Notifier.doOneEvent(Notifier.java:585)
    at tcl.lang.TclShell.run(TclShell.java:170)
    at tcl.lang.TclShell.run(TclShell.java:68)
    at oracle.owb.scripting.OMBShell.main(OMBShell.java:38)
    ... 5 more
    java.lang.reflect.InvocationTargetException

    Besides "package require java", you also need to "java import" your class into TCL. For example, this is how I implemented my OMB-SQL package:
    package require java
    # PVCS Version Information
    #/* $Workfile:   omb_sql_library.tcl  $ $Revision:   2.3  $ */
    #/* $Author:   michael.broughton  $
    #/* $Date:   16 Dec 2008 10:10:36  $ */
    proc oracleConnect { serverName databaseName portNumber username password } {
       # import required classes
       java::import java.sql.Connection
       java::import java.sql.DriverManager
       java::import java.sql.ResultSet
       java::import java.sql.SQLWarning
       java::import java.sql.Statement
       java::import java.sql.CallableStatement
       java::import java.sql.ResultSetMetaData
       java::import java.sql.DatabaseMetaData
       java::import java.sql.Types
       java::import oracle.jdbc.OracleDatabaseMetaData
       # load database driver .
       java::call Class forName oracle.jdbc.OracleDriver
       # set the connection url.
       append url jdbc:oracle:thin
       append url :
       append url $username
       append url /
       append url $password
       append url "@"
       append url $serverName
       append url :
       append url $portNumber
       append url :
       append url $databaseName
       set oraConnection [ java::call DriverManager getConnection $url ]
       set oraDatabaseMetaData [ $oraConnection getMetaData ]
       set oraDatabaseVersion [ $oraDatabaseMetaData getDatabaseProductVersion ]
       puts "Connected to: $url"
       puts "$oraDatabaseVersion"
       return $oraConnection
    proc oracleDisconnect { oraConnect } {
      $oraConnect close
    proc oraJDBCType { oraType } {
      #translation of JDBC types as defined in XOPEN interface
      set rv "NUMBER"
      switch $oraType {
         "0" {set rv "NULL"}
         "1" {set rv "CHAR"}
         "2" {set rv "NUMBER"}
         "3" {set rv "DECIMAL"}
         "4" {set rv "INTEGER"}
         "5" {set rv "SMALLINT"}
         "6" {set rv "FLOAT"}
         "7" {set rv "REAL"}
         "8" {set rv "DOUBLE"}
         "12" {set rv "VARCHAR"}
         "16" {set rv "BOOLEAN"}
         "91" {set rv "DATE"}
         "92" {set rv "TIME"}
         "93" {set rv "TIMESTAMP"}
         default {set rv "OBJECT"}
      return $rv
    proc oracleQuery { oraConnect oraQuery } {
       set oraStatement [ $oraConnect createStatement ]
       set oraResults [ $oraStatement executeQuery $oraQuery ]
       # The following metadata dump is not required, but will be a helpfull sort of thing
       # if ever want to really build an abstraction layer
       #set oraResultsMetaData [ $oraResults getMetaData ]
       #set columnCount        [ $oraResultsMetaData getColumnCount ]
       #set i 1
       #puts "ResultSet Metadata:"
       #while { $i <= $columnCount} {
       #   set fname [ $oraResultsMetaData getColumnName $i]
       #   set ftype [oraJDBCType [ $oraResultsMetaData getColumnType $i]]
       #   puts "Output Field $i Name: $fname Type: $ftype"
       #   incr i
       # end of metadata dump
       return $oraResults
    proc run_exec_template { oraConnect rtOwner locName taskType taskName {custParms ""} {sysParms ""} } {
        #   rt_owner      := e.g. MY_RUNTIME      - Name of the Runtime Repository Owner
        #   location_name :- e.g. MY_WAREHOUSE    - Physical Name of the Location to which this task was deployed
        #                                           (i.e. a DB Location or a Process Location or the Platform Schema)
        #                                           Note: Always use "PlaformSchema" for SQL_LOADER and SAP types.
        #   task_type     :- PLSQLMAP             - OWB PL/SQL Mapping
        #                 |  SQLLOADERCONTROLFILE - OWB SQL*Loader Mapping
        #                 |  PROCESSFLOW          - OWB ProcessFlow
        #                 |  ABAPFILE             - OWB SAP Mapping
        #                 |  DATAAUDITOR          - OWB DataAuditor Mapping
        #                 |  SCHEDULEDJOB         - OWB Scheduled Job
        #   task_name     :- e.g. MY_MAPPING      - Physical Name of the Deployed Object. This can be optionally qualified
        #                                           by the name of a deployed parent, such as the Processflow Package name
        #                                           of a Processflow. A module name cannot be used here because it is not
        #                                           a deployable object.
        #   system_params :- { , | (name = value [, name = value]...)}
        #                    e.g. ","
        #                    or   MY_PARAM=1,YOUR_PARAM=true
        #   custom_params :- { , | (name = value [, name = value]...)}
        #                    e.g. ","
        #                    or   MY_PARAM=1,YOUR_PARAM=true
        # RETURNS
        #   1 if task reports SUCCESS, 2 if WARNING, 3 if ERROR
        set oraStmt [ $oraConnect createStatement ]
        set tmpRslt [ $oraStmt execute "alter session set current_schema=$rtOwner" ]
        set tmpRslt [ $oraStmt execute "set role owb_o_$rtOwner" ]
        set tmpRslt [ $oraStmt execute "set role owb_d_$rtOwner" ]
        set callString "declare x number; begin x := wb_rt_api_exec.run_task('$rtOwner','$locName','$taskType','$taskName','$custParms','$sysParms'); end;"
        set oraCall [ $oraConnect prepareCall $callString ]
        #$oraCall registerOutParameter  { 1 java.lang.Integer int} {4 java:lang:Integer int}
        #$oraCall setString 2 $rtOwner
        #$oraCall setString 3 $locName
        #$oraCall setString 4 $taskType
        #$oraCall setString 5 $taskName
        #$oraCall setString 6 $sysParms
        #$oraCall setString 7 $custParms
        $oraCall execute
        #set retVal [$oraCall getInt 1]
        #set back to the default schema
        set oraDatabaseMetaData [ $oraConnect getMetaData ]
        set oraUser [$oraDatabaseMetaData getUserName]
        set tmpRslt [ oraStmt execute "alter session set current_schema=$oraUser" ]
    # SAMPLE CODE to run a quick query and dump the results. #
    #set oraConn [ oracleConnect myserver orcl 1555 scott tiger ]
    #set oraRs [ oracleQuery $oraConn "select name, count(*) numlines from user_source group by name" ]
    #for each row in the result set
    #while {[$oraRs next]} {
      #grab the field values
    #  set procName [$oraRs getString name]
    #  set procCount [$oraRs getInt numlines]
    #  puts "Program unit $procName comprises $procCount lines"
    #$oraRs close
    #oracleDisconnect $oraConnI do not know if you will need to play with classpaths or anything to get a successfull import as I never tried to do anything with custom classes. Oracle also has a demo example of integrating java with OMB+ to create modal dialogs which might provide additional guidance. It is available here: http://www.oracle.com/technology/sample_code/products/warehouse/files/owb_params.html
    Good luck with it!

  • How to Call Java from ABAP

    Hi all,
    I have installed JCO & created the RFC in SAP. i have used below code to test my RFC connection & it's working fine.
    But In the below report, where to call the JAVA Program & what code i should use to call java code .
    Actually my ABAP requirement is to download a file. Then i need to call JAVA program, inside ABAP, to encrypt the downloaded file. Here, Java program is used to encrypt the file. Now question is, how to call the Java program inside the ABAP code.  Please advice with the code sample. Thanks a lot.
    REPORT  z_jco_test.
    PARAMETERS: requtext LIKE sy-lisel.
    DATA: echotext LIKE sy-lisel,
          resptext LIKE sy-lisel,
          rfctest TYPE TABLE OF rfctest,
          wa_rfctest TYPE rfctest.
    wa_rfctest-rfcdata1 = requtext.
    wa_rfctest-rfcdata2 = 'Hello World'.
    APPEND wa_rfctest TO rfctest.
    CALL FUNCTION 'RFC_PING'
      DESTINATION 'JCO'.
    CALL FUNCTION 'STFC_CONNECTION'
      DESTINATION 'JCO'
      EXPORTING
        requtext = requtext
      IMPORTING
        echotext = echotext
        resptext = resptext
      TABLES
        rfctest  = rfctest.
    WRITE: 'Echo Text: ', echotext.
    WRITE: 'Response Text: ', resptext.
    LOOP AT rfctest INTO wa_rfctest.
      WRITE: / 'rfcdata1: ', wa_rfctest-rfcdata1.
      WRITE: / 'rfcdata2: ', wa_rfctest-rfcdata2.
    ENDLOOP.

    Hi,
    You might accomplish your goal using external operating system commands.
    1) Define in SM69 an external command, letu2019s say ZJAVA. This command will execute a script on the operating system, letu2019s call it calljava.sh.
    2) In script calljava.sh you just call java, passing some parameters. For example, java $1 $2 $3 $4 $5 $6 $7
    3) In your ABAP program you call the ZJAVA external command and pass parameters to it. Of course, one of the parameters must be your Java program name.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname                   = l_command
          additional_parameters         = l_param
          trace                         = 'X'
        IMPORTING
          status                        = l_status
          exitcode                      = l_exitcode
        TABLES
          exec_protocol                 = l_exec_protocol_itab
        EXCEPTIONS
          no_permission                 = 1u2026

  • Calling java from XSLT

    Hi All,
    I am trying to call java method from XSLT file. It works fine on stand alone when I use Simple Transformation java program for transformation, but the same code is throwing exception in weblogic application server.
    Please help me on this issue.
    Exception:
    ERROR: The first argument to the non-static Java function 'getRev' is not a valid object reference.
    FATAL ERROR: 'Could not compile stylesheet'
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:828)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:617)
         at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2737)
    at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2657)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:285)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:233)
    at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:621)
    at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
    at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
    at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.processWorkflowExtensions(ChangeSessionBean_3rbfzs_EOImpl.java:10838)
    at com.agile.pc.cmserver.base.CMRouteSessionBean.changeStatus(CMRouteSessionBean.java:960)
    at com.agile.pc.cmserver.base.CMRouteSessionBean.changeStatus(CMRouteSessionBean.java:898)
    at com.agile.pc.cmserver.base.CMRouteSessionBean.changeStatus(CMRouteSessionBean.java:888)
    at com.agile.pc.cmserver.change.ChangeSessionBean_3rbfzs_EOImpl.changeStatus(ChangeSessionBean_3rbfzs_EOImpl.java:12050)
    at com.agile.ipa.pc.CMRoute.changeStatus(CMRoute.java:705)
    at com.agile.ui.pcm.common.RouteHandler.changeStatus(RouteHandler.java:1747)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.agile.ui.web.action.ActionServlet.invokeMethod(ActionServlet.java:1067)
    at com.agile.ui.web.action.ActionServlet.handleRequest(ActionServlet.java:672)
    at com.agile.ui.web.action.ActionServlet.doPost(ActionServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.agile.ui.pcm.common.filter.RemoteFSRequestFilter.doFilter(RemoteFSRequestFilter.java:148)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.agile.ui.web.filter.LoggingFilter.doFilter(LoggingFilter.java:108)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.agile.ui.pcm.common.filter.WebClientLog.doFilter(WebClientLog.java:78)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.jspbook.GZIPFilter.doFilter(GZIPFilter.java:21)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.agile.ui.pcm.common.filter.SSOTicketFilter.doFilter(SSOTicketFilter.java:89)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    XSLT sample code:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:pl="com.oracle.test.Sample" version="2.0">
         <xsl:template match="/">
              <xsl:variable name="rev" select="'02'" />
              <xsl:variable name="msg" select="pl:getRev($rev)" />
              <xsl:element name="result">
                   <xsl:value-of select="$msg" />
              </xsl:element>
         </xsl:template>
    </xsl:stylesheet>
    Sample.java :
    package com.oracle.test;
    import java.io.*;
    public class Sample {
         public static String getRev(String rev) {
              // some logic i am going include here
              if (rev.equals("01")) {
                   return "valid one";
              return "";
    Thanks All,

    ERROR: The first argument to the non-static Java function 'getRev' is not a valid object reference.Because it results in this error rather than anything else, you have to verify (apart from typos) the actual files finally deployed to run that your method getRev is declared "static", and that the argument $rev is setup with select="'02'" and not select="02". (What you posted looks fine, just make sure it remains the same in those essential aspect.)

  • ClassDefNotFound error when calling Java from C++

    Hi all,
    I have a problem with calling my java from C++ through JNI.
    I have set my CLASSPATH environment varible that include path to every libary that I need. My source is as follows:
    #include <jni.h>
    #include <stdio.h>
    int main()     
         JNIEnv               *env;
         JavaVM               *jvm;
         JavaVMInitArgs     vm_args;
         jint               res;
         jclass               cls;
         jmethodID          mid;
    IMPORTANT: specify vm_args version # if you use JDK 1.1.2 and beyond
         vm_args.version = JNI_VERSION_1_4;
         vm_args.ignoreUnrecognized = JNI_TRUE;
         JNI_GetDefaultJavaVMInitArgs(&vm_args);
         /* Create the Java VM */
         res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
         if (res < 0) {
              printf("Can't create JVM\n");
              return 1;
         cls = (env)->FindClass ("dds/test/comm/listeners/NACKListenerFrame");
         if (cls == 0)     {
              printf("Can't find NACKListenerFrame Class\n");
              return 1;
    mid = (env)->GetStaticMethodID(cls, "start", "()V");
         if (mid == 0)     {
              printf("Can't find NackListnerFrame.start \n");
              return 1;
         (env)->CallStaticVoidMethod((_jclass*)cls, (_jmethodID*)mid, NULL);
         jthrowable e = (env)->ExceptionOccurred();
         if (e)     {
              env->ExceptionDescribe();
              env->ExceptionClear();
         if ((jvm)->DestroyJavaVM() < 0)     {
              printf("Cannot destroy JVM./n");     
         return 0;
    I deliberately left out the codebelow because I want the JVM I created to load Classes from the system's CLASSPATH variable as I have set path to every classes that I need, in that CLASSPATH variable.
    JavaVMOption     options[1];
    options[0].optionString=
    "-Djava.class.path=.;E:/DDSproject/DDSImplementation/classes";
    vm_args.options = options;
    vm_args.nOptions = 1;
    But it seems like unless I specify CLASSPATH in my C++ source code the JVM could not find any classes.
    I tried to put the "jvm.dll" path to the first one in the System's PATH variable. It does not work either...
    Gurus Pls help!!!.. I don't know what to do... I don't wanna code my CLASSPATH in my c++ source code as above.
    Thanks in advance,
    chancellor

    I was thinking JVM should the classpath when it is invoked. But obviously it is not and we need to assign the classpath ourselves when invoking from native side. Thanks for pointing that out. For other people's benefit the following is the code piece I for initializing JVM.
    char* str1;
              char* str2;
              char* classpath;
              str1 = "-Djava.class.path=";
              str2 = std::getenv("CLASSPATH");
              classpath = (char*)malloc(strlen(str1) + strlen(str2) + 1);
              strcpy(classpath, str1);
              strcat(classpath, str2);
              if (str2 == NULL)     {
                   printf("CLASSPATH environment variable is not defined.");
                   exit(1);
              m_VmArgs.version = JNI_VERSION_1_4;
              m_options[0].optionString= classpath;
              m_VmArgs.options = m_options;
              m_VmArgs.nOptions = 1;
              m_VmArgs.ignoreUnrecognized = JNI_TRUE;
              JNI_GetDefaultJavaVMInitArgs(&m_VmArgs);
              /* Create the Java VM */
              m_Res = JNI_CreateJavaVM(&m_Jvm, (void**)&m_Env, &m_VmArgs);
              if (m_Res < 0) {
                   printf("Can't create JVM\n");
                   exit(1);
    thanks,
    chancellor

  • Calling Java from BPEL

    Hi,
    Is WSIF still the best/recommend way to call java code from your BPEL? Or are we moving away from that kind of env. and should put a wrapper around the legacy java code and expose them as services?
    Regards,
    Muasir

    hi,
    Java can't call BPEL directly. So you have following steps:
    1. Create Web Service from existing java file(Some tools can generate Web Service from java class).
    2. Generate the Service Proxy by using Web Service.
    3. Invoke the Web Service through proxy.
    4. If your application use the struts, you can invoke the process from struts action class, which is called from a web page.
    Maybe it is useful for you!

Maybe you are looking for

  • How can I use this extension

    At the end if says "Access... but I can''t find the acces anywhere in Dreamweaver CS3... I am very new at this and i8t's the first time I'm using something like this, but I need to put together a slide show with exactly this description. Can someone

  • Sorting TV Show Episodes

    When viewing a specific TV show's episodes in ITunes, they are sorted by episode number. However, FR insists on sorting episodes alphabetically. Is there a way to get FR to sort by episode number instead? Thanks in advance for the help!

  • Apple tv 2 power supply replacement

    Is there any way of buying a replcement power supply for apple tv 2? Delta Electronics ADP-6BF S Be handy as mine has packed in one of my Apple tvs! Any help appreciated!

  • FFORMAT OF TEXT IN REPORTS

    I want to format the report headings with bold and size 13 and page heading to bold and size 10 , from the normal display of the text. Can Any body help me in this regards. Please advice me. Thanx

  • Should I move up to a Power Mac G5

    I currently have a Power Mac G4 with 733 Mhz ... it has 1 mb cache ... I have owned it for about 6 six years. I use it totally to edit films fom my school. I am using Final Cut 3 I have heard that the advantage of the G5 is speed, but I have point of