someone use this when needed

AA

On Mon, Jun 20, 2011 at 6:25 PM, Samantha Jayamaha <[email protected]>wrote:

> Dear,
>
> Hope this will help you.
>
> Regards
> Samantha Jayamaha
>
>
>
> On Mon, Jun 20, 2011 at 3:33 PM, Mohankumar <[email protected]>wrote:
>
>> Dear
>> you can find it in jbase site
>> Sent from my iPhone
>>
>> On Jun 18, 2011, at 5:19 PM, roman <[email protected]> wrote:
>>
>> > Hi,
>> >
>> > i need to develop the subroutines in jbase, so if any one have the
>> > documents related to development of subroutines in jBase, please
>> > forward it.
>> >
>> > Thanks in advance
>> >
>> > Roman
>> >
>> > --
>> > Please read the posting guidelines at:
>> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>> >
>> > IMPORTANT: Type T24: at the start of the subject line for questions
>> specific to Globus/T24
>> >
>> > To post, send email to [email protected]
>> > To unsubscribe, send email to [email protected]
>> > For more options, visit this group at
>> http://groups.google.com/group/jBASE?hl=en
>>
>> --
>> Please read the posting guidelines at:
>> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>>
>> IMPORTANT: Type T24: at the start of the subject line for questions
>> specific to Globus/T24
>>
>> To post, send email to [email protected]
>> To unsubscribe, send email to [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/jBASE?hl=en
>>
>
>   --
> Please read the posting guidelines at:
> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> IMPORTANT: Type T24: at the start of the subject line for questions
> specific to Globus/T24
>
> To post, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit this group at
> http://groups.google.com/group/jBASE?hl=en
>

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
Start jAgent in one session.
-------
jsh-->jbase_agent -p9494
(1077266|1) NOTICE starting up jAgent, Process Per Connection mode, listening 
on port 9494, SocketAcceptor.h +107


(1060866|1) NOTICE RequestHandlerService::open: connected with localhost, 
RequestHandlerService.cpp +221
(1060866|1) NOTICE Closing connection to localhost, RequestHandlerService.cpp 
+127
(1060866|1) NOTICE Shutting down Connection, JAgentSocketServer.cpp +115

Basic code:
---------
jsh-->CT . TESTSUB
    TESTSUB
001 SUBROUTINE TESTSUB
002 CRT "HI"
003 RETURN

Java Code:
----------
jsh-->cat jrem.java
import com.jbase.jremote.*;
 class jrem
 {
 public static void main (String a[])
  {
  try {

     DefaultJConnectionFactory cxf = new DefaultJConnectionFactory();
     cxf.setHost("127.0.0.1");
     cxf.setPort(9494);      //Port should match the port jAgent is listening on
     System.out.println("Before getConnection");
     JConnection cx = cxf.getConnection();
     System.out.println("After getConnection");
     JSubroutineParameters params = new JSubroutineParameters();
     params.add(new JDynArray(""));
     System.out.println("BEFORE CALLING!");
     JSubroutineParameters returnParams = cx.call("TESTSUB",null);  // ----> 
here you are calling Basic routine.
     System.out.println("AFTER CALLING!");
    } catch (JRemoteException e) {

    System.out.println("ERROR"); // error

    }
 }
}
jsh-->


jsh-->jshow -c TESTSUB
Subroutine:          .. /lib/lib0.so.3
                     jBC TESTSUB version 10.0 Mon Aug  2 12:33:44 2010
                     jBC TESTSUB source file .


jsh-->javac -cp <TAFC_installed_path>/java/lib/jremote.jar jrem.java

jsh-->java -cp .:<TAFC_installed_path>/java/lib/jremote.jar jrem

Before getConnection
After getConnection
BEFORE CALLING!
HI
AFTER CALLING!


Hope this helps.

Reply via email to