refer : http://www.blogjava.net/jinfeng_wang/archive/2009/05/26/277988.html
1) edit the ubbconfig file:
     

*RESOURCES
IPCKEY          69345

#Example:
#IPCKEY         123456

DOMAINID        simpapp
MASTER          simple
MAXACCESSERS    100
MAXSERVERS      20
MAXSERVICES     40
MODEL           SHM
LDBAL           N

*MACHINES
DEFAULT:
                APPDIR="/home/test/atmi"
                TUXCONFIG="/home/test/atmi/tuxconfig"
                TUXDIR="/home/oracle/tuxedo10gR3"
#Example:
#               APPDIR="/home/me/simpapp"
#               TUXCONFIG="/home/me/simpapp/tuxconfig"
#               TUXDIR="/usr/tuxedo"

rhelserver      LMID=simple

MAXWSCLIENTS=50

*GROUPS
GROUP1  LMID=simple     GRPNO=1 OPENINFO=NONE
WSGRP   LMID=simple     GRPNO=2
JSLGRP  LMID=simple     GRPNO=100
JREPGRP LMID=simple     GRPNO=101




*SERVERS
DEFAULT:
                CLOPT="-A"

simpserv        SRVGRP=GROUP1 SRVID=1
WSL             SRVGRP=WSGRP SRVID=10 RESTART=Y MAXGEN=10 GRACE=3600 CLOPT="-A -- -n//192.168.247.129:7110   -m 5 -M 10 -x 5"
JSL             SRVGRP=JSLGRP  SRVID=100 CLOPT="-A -- -n //192.168.247.129:9110 -m 3 -M 10 -x5"
JREPSVR         SRVGRP=JREPGRP SRVID=101 CLOPT="-A  --   -W -P /home/oracle/tuxedo10gR3/udataobj/jolt/repository/jrepository"





*SERVICES
TOUPPER 
   now ,you must compile the ubbconfig file , and boot youre tuxedo server. 
    $ tmloadcf   ubbsimple
    $ tmboot
2)edit the  jolt respository file:
     a) edit and save simpapp.rep: (
YOUR MUST REMVE ALL THE BLANKS IN THE HEAD AND TAIL OF THE LINE.)
         
service=TOUPPER
inbuf=STRING
outbuf=STRING
export=true
param=STRING
type=string
access=inout 
   b) config the JAVA's CLASSPATH and run jbld command and import the simpapp.rep to jolt respository
      $ export  CLASSPATH=.:/home/oracle/jrockit_160_05/lib/dt.jar:/home/oracle/jrockit_160_05/lib/tools.jar:/home/oracle/tuxedo10gR3/
udataobj/jolt/jolt.jar:/home/oracle/tuxedo10gR3/udataobj/jolt/joltadmin.jar  
      $ 
java bea.jolt.admin.jbld -p SIMPSERV //192.168.247.129:9110  simpapp.rep
3)   write your java code in your client. certarnly, you must config your classpath.
    
 1
import bea.jolt.JoltRemoteService;
 2
import bea.jolt.JoltSession;
 3
import bea.jolt.JoltSessionAttributes;
 4
 5
public class Test {
 6
    public static void main(String[] args) {
 7
 8
        JoltSession session;
 9
        JoltSessionAttributes sattr;
10
        JoltRemoteService toupper;
11
12
        sattr = new JoltSessionAttributes();
13
        sattr.setString(JoltSessionAttributes.APPADDRESS, "//192.168.247.129:9110");
14
        sattr.setInt(JoltSessionAttributes.IDLETIMEOUT, 300);
15
        session = new JoltSession(sattr, null, null, null, null); 
16
17
        toupper = new JoltRemoteService("TOUPPER", session);
18
        toupper.setString("STRING", "hello,wolrd!");
19
        toupper.call(null);
20
        System.out.println(toupper.getStringDef("STRING", null));
21
        session.endSession();
22
    }
23
24
}