A question about design of Java Application on java card.

Hi every one,
I have a question about design of Java applet on java card,
There is an application on my card that it is not java card, it include a DF and some EF under DF, I would like to know if I want to have this application on java card ,how can I design DF and EF on java card ,I mean is there any relation between DF,EF with applet and file? for example can I say DF is same as applet and EF is same as file?
I'll appreciate for any help .
yours sincerely,
orchid

hi
you can write a java class for DF.
an instance of DF class have some EF objects.
for example,
samples/com/sun/javacard/samples/JavaPurse/CyclicFile.java
implements ISO 7816 CyclicFile ( EF )
see also:
http://forum.java.sun.com/thread.jspa?threadID=673745&messageID=3936272
best regards,
siavash

Similar Messages

  • Deploying no java applications using Java Web Start

    Hi,
    I am new to java web start. Is it possible to distribute non java applications using java web start. I have an APP which can run on a desktop in standalone mode. The app has jusy HTML and Java script files. Is it possible to package this app and deploying using java web start? I am assuming If it is possible, I can make updates to the packaged app in the web servers and the updates will be downloaded next time the app is used provided configurations are correct?
    thx

    The app has jusy HTML and Java script files. Is it possible
    to package this app and deploying using java web start? Not really. Resources for JWS need to be zipped,
    while this HTML/JS app. will (I guess) not work from
    inside the depths of a Jar (or Zip) archive.
    Note that you can organise for those files to be
    downloaded and expanded onto a known place
    on the user's disk, by using an 'installer' element,
    but..
    ...I am assuming If it is possible, I can make updates to the
    packaged app in the web servers and the updates ..installers are only called once, and do not 'update'.

  • How can i built a java application using java debug class on Log4J

    Hi,
    As java API support the MethodEntryEvent, using which I can get the automatic logging statements when the method is entered or exited as HelloExample.main(with argument type).
    Where HelloExample is the class name.
    Main is the method entered with its argument types.
    In some cases I have the o/p as
    -- VM Started --
    ====== main ======
    main -- HelloExample
    callerMethod -- HelloExample
    ====== main end ======
    -- The application exited --
    By using Log4J is there any possibility of getting these sort of o/p along with the loggers supported by Log4J. i mean to say can i built an java application which supports the MethodEntryEvent and MethodExitEvent from java API and also uses the Log4J debugging. I took an e.g. trace example, which (in J2SE 1.4.x or 5.x) will be found in $JAVA_HOME/demo/jpda/examples.jar and unpacking it by
    jar -xvf $JAVA_HOME/demo/jpda/examples.jar i found the com/sun/tools/example/trace/Trace.java and passed the class constructed with logger taken from Log4J. In this case the logging message is displayed on the console. As per the requirement i need to transfer the whole o/p to an output file along with Log4J logger statements. in this case i should not give any command in the cosule except compiling and executing the programme. the programm also should able to run without the main() as i need to integrate Log4J with an application and the code must me application server independent. i need the output as i got using MethodEnteryEvent (shown as above) in case of java application built using Log4J.
    Can any one help me in this regard. can any one give me some suggestion or any programme of this sort. All suggestions are welcomed.
    Thanks & Regards,

    hi,
    can someone help me how to implement logging for method entry parameters and
    method exit return value.
    can someone help me how to use log4j and integrate it to the method entry
    logging and method exit logging.
    Here what i need is without writing the log statements for the method entry and
    method exit i need to log it to the file
    along with other log4j debug statements i provide in the file.I should be able
    to configure whether to enable/disable the logging
    for method entry and method exit. In method entry i should be able to log the
    parameters the method take and in method exit
    i should be able to log te return value to the log file, before the method is
    returned to the callee.
    i hope i am clear
    Thanks in advance.

  • JVM Error while running java application through Java Webstart

    Hi All,
    While running java application through Webstart, we got the following error log and application is not running. I am not sure why this is happened? Can anyone help me out to resolve this problem?
    Help Regarding this will be highly appreciated.
    Thanks In advance.
    Bala
    Error in Log File:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (53545542324F5554494E45530E435050008C), pid=684, tid=9424
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
    --------------- T H R E A D ---------------
    Current thread (0x00345a60): JavaThread [_thread_in_vm, id=9424]
    Stack: [0x00030000,0x00070000), sp=0x0006f9a4, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x12430d]
    V [jvm.dll+0x6366e]
    V [jvm.dll+0x636a3]
    V [jvm.dll+0x10073c]
    V [jvm.dll+0x7859b]
    V [jvm.dll+0x919fc]
    C [javaw.exe+0x2120]
    C [javaw.exe+0x11bb]
    C [javaw.exe+0x3151]
    C [kernel32.dll+0x123e5]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    Other Threads:
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 2304K, used 42K [0x02a60000, 0x02cd0000, 0x051c0000)
    eden space 2112K, 2% used [0x02a60000, 0x02a6a908, 0x02c70000)
    from space 192K, 0% used [0x02c70000, 0x02c70000, 0x02ca0000)
    to space 192K, 0% used [0x02ca0000, 0x02ca0000, 0x02cd0000)
    tenured generation total 30272K, used 0K [0x051c0000, 0x06f50000, 0x22a60000)
    the space 30272K, 0% used [0x051c0000, 0x051c0000, 0x051c0200, 0x06f50000)
    compacting perm gen total 8192K, used 409K [0x22a60000, 0x23260000, 0x26a60000)
    the space 8192K, 4% used [0x22a60000, 0x22ac64d0, 0x22ac6600, 0x23260000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040d000 C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe
    0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
    0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
    0x77f50000 - 0x77fec000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
    0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
    0x77c00000 - 0x77c48000 C:\WINDOWS\system32\GDI32.dll
    0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\MSVCRT.dll
    0x71c20000 - 0x71c32000 C:\WINDOWS\system32\tsappcmp.dll
    0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.DLL
    0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
    0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
    0x71bc0000 - 0x71bc8000 C:\WINDOWS\system32\rdpsnd.dll
    0x771f0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
    0x71c40000 - 0x71c98000 C:\WINDOWS\system32\NETAPI32.dll
    0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
    0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_11\bin\hpi.dll
    0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_11\bin\verify.dll
    0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_11\bin\java.dll
    0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_11\bin\zip.dll
    VM Arguments:
    jvm_args: -Xms32m -Xmx512m -Xbootclasspath/a:C:\Program Files\Java\jre1.5.0_11\lib\javaws.jar;C:\Program Files\Java\jre1.5.0_11\lib\deploy.jar -Djnlpx.home=C:\Program Files\Java\jre1.5.0_11\bin -Djnlpx.splashport=1970 -Djnlpx.jvm="C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe" -Djnlpx.remove=true -Djava.security.policy=file:C:\Program Files\Java\jre1.5.0_11\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=32m,512m
    java_command: com.sun.javaws.Main C:\DOCUME~1\ssiwach\LOCALS~1\Temp\1\javaws3
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\Program Files\Java\jre1.5.0_11\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\mysql\bin;"C:\Program Files\Java\jre1.5.0_11\bin"
    USERNAME=ssiwach
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 1
    CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 2097151k(438060k free), swap 4194303k(5136k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
    ------------------------------------------------------------------------------------------------------------------

    Hi All,
    While running java application through Webstart, we got the following error log and application is not running. I am not sure why this is happened? Can anyone help me out to resolve this problem?
    Help Regarding this will be highly appreciated.
    Thanks In advance.
    Bala
    Error in Log File:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (53545542324F5554494E45530E435050008C), pid=684, tid=9424
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
    --------------- T H R E A D ---------------
    Current thread (0x00345a60): JavaThread [_thread_in_vm, id=9424]
    Stack: [0x00030000,0x00070000), sp=0x0006f9a4, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x12430d]
    V [jvm.dll+0x6366e]
    V [jvm.dll+0x636a3]
    V [jvm.dll+0x10073c]
    V [jvm.dll+0x7859b]
    V [jvm.dll+0x919fc]
    C [javaw.exe+0x2120]
    C [javaw.exe+0x11bb]
    C [javaw.exe+0x3151]
    C [kernel32.dll+0x123e5]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    Other Threads:
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 2304K, used 42K [0x02a60000, 0x02cd0000, 0x051c0000)
    eden space 2112K, 2% used [0x02a60000, 0x02a6a908, 0x02c70000)
    from space 192K, 0% used [0x02c70000, 0x02c70000, 0x02ca0000)
    to space 192K, 0% used [0x02ca0000, 0x02ca0000, 0x02cd0000)
    tenured generation total 30272K, used 0K [0x051c0000, 0x06f50000, 0x22a60000)
    the space 30272K, 0% used [0x051c0000, 0x051c0000, 0x051c0200, 0x06f50000)
    compacting perm gen total 8192K, used 409K [0x22a60000, 0x23260000, 0x26a60000)
    the space 8192K, 4% used [0x22a60000, 0x22ac64d0, 0x22ac6600, 0x23260000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040d000 C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe
    0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
    0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
    0x77f50000 - 0x77fec000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
    0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
    0x77c00000 - 0x77c48000 C:\WINDOWS\system32\GDI32.dll
    0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\MSVCRT.dll
    0x71c20000 - 0x71c32000 C:\WINDOWS\system32\tsappcmp.dll
    0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.DLL
    0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
    0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
    0x71bc0000 - 0x71bc8000 C:\WINDOWS\system32\rdpsnd.dll
    0x771f0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
    0x71c40000 - 0x71c98000 C:\WINDOWS\system32\NETAPI32.dll
    0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
    0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_11\bin\hpi.dll
    0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_11\bin\verify.dll
    0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_11\bin\java.dll
    0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_11\bin\zip.dll
    VM Arguments:
    jvm_args: -Xms32m -Xmx512m -Xbootclasspath/a:C:\Program Files\Java\jre1.5.0_11\lib\javaws.jar;C:\Program Files\Java\jre1.5.0_11\lib\deploy.jar -Djnlpx.home=C:\Program Files\Java\jre1.5.0_11\bin -Djnlpx.splashport=1970 -Djnlpx.jvm="C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe" -Djnlpx.remove=true -Djava.security.policy=file:C:\Program Files\Java\jre1.5.0_11\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=32m,512m
    java_command: com.sun.javaws.Main C:\DOCUME~1\ssiwach\LOCALS~1\Temp\1\javaws3
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\Program Files\Java\jre1.5.0_11\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\mysql\bin;"C:\Program Files\Java\jre1.5.0_11\bin"
    USERNAME=ssiwach
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 1
    CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 2097151k(438060k free), swap 4194303k(5136k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
    ------------------------------------------------------------------------------------------------------------------

  • Java application compiles java files in memory

    how can I use java application program (that may call method runtime exec or some other techniques) to compile the other java files that were already loaded in memory. (I can not copy those target files to the hard disk with extension java, then compile for security reason).

    And once they are compiled, where do you plan to put the compiled .class files? Same security problem, right? Perhaps you planned to load and use them "from memory" somehow? This would be a different security problem. Perhaps you need to rethink what you are doing.

  • Disk Space "leaking" in Java Application Using java.io.RandomAccessFile

    I have noted this behaviour in both java version 1.2.1 and 1.3.1 on Solaris 5.8.
    I have a java application that is essentially "tailing" a very large log file.
    The program opens a RandomAccessFile in read-only mode and calls readLine on the file as long as the file is getting written to.
    If the file stops getting updated the program assumes the logfile has been moved/rotated/wrapped (by an external process) and the program the calls close and then reopens the file to allow the program to start reading from the new file and to allow the O/S to free up the system resources.
    It appears that the program is not actually closing the filehandle or releasing the disk space and eventually the disk fills up.
    When this happens the program is stopped and restarted and the disk space is freed up.
    We have run the pfiles command against the running process and have confirmed that the old filehandles are still open.
    I have attached what I think to be the relevant code lines below:
    RandomAccessFile filehandle = null;
    boolean reopen = true;
    boolean connected = true;
    while(connected)
    if (reopen)
    while(! new File(filename).exists())
         doSleep (filewaittime);
              filehandle = new RandomAccessFile(filename, "r");
    while (file_being_updated)
    // read from the file etc.
    filehandle.close();
    filehandle = null;
    reopen = true;
    The reopen flag is set to false in code not shown here.
    I have verified that the block of code that calls close() on the filehandle and sets it to null is being executed when the logfile is moved externally.

    Hmmmm. Sounds like a hint to me :)
    I am still experimenting but I will certainly try moving to the latest JDK and report a bug if I don't figure this out on my own.
    Thanks.

  • How to execute a java application from java itself

    Hi,
    I�m working in Client Server environment. After starting the server, i want to automatically call the client. ( java Server (in Server.java
    the call (java Client) has to be done. Can anyone help me for this problem.
    thanks.

    In normal client server design the client initiates communication with the server, not the other way around.
    So you initiate a conversation just like a normal client server communication.
    -The client is running.
    -The client listens for a connection (SocketServer)
    -The server starts up.
    -It connects to the client using a socket. (The server must know the host/ip of the client.)

  • Start java application from java program

    My problem is the following:
    I start a java application A that allows you to select a couple of .java files.
    After having choosen them, the application adds some additional information to these .java files (that means some more lines of code � we call it �infecting� the java files).
    After the files have been infected, I want to start the application B implemented by these choosen and infected .java-files (without a new start of the Java Virtual Machine)
    For doing so, we use the following method whichs works quite fine:
    public static void ExecuteWithInvoke(String path, String classname)
         try
              new URLClassLoader(new URL[] {new File(path).toURL()})
                   .loadClass(classname).getMethod("main",
                   new Class[] { String[].class }).invoke(null,
                   new Object[] { new String[] {} });
         catch (Exception e)
         {e.printStackTrace();}
    The only problem that occurs:
    When the application B is launched, the �old� version of the choosen .java files is used and not the current, already infected version of these files. (I guess because the �old� .class files are used.)
    I solved this problem by finishing the program A after the infecting and restart my application B manually. In this case the infected .java files are used (I guess the new Start of the Java Virtual Machine solves my problem by reloading the �new� .class files)
    How can I reach to start my application with the mentioned method but with the infected .java files and without having a new start of the JVM ??
    Can anybody help me?
    Thanks in advance
    Sorry for my English, it�s a long time since I quit school

    Hello,
    my problem of reloading classes is still unsolved although you tried to help me!
    Therefore I posted a little program to illustrate our difficulty.
    It would be nice if somebody could have a look at this program.
    We have a file Testdatei.java whose only method is the main method.
    I get the class object of this file and with the help of Reflection the declared methods.
    Evereything works fine so far.
    Then I change the content of this file by adding an additional method a() (see change() for this).
    Now I delete the old class file and I compile Testdatei.java again (see compileJava()) and once more I get the class object for this changed file. Afterwards I get the declared methods for this class via reflection.
    But instead of showing now the methods main() and a() Reflection still only shows the method main().
    I guess the changed class has not been reloaded!!
    package testpackage;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.lang.reflect.Method;
    import java.net.URL;
    import java.net.URLClassLoader;
    import com.sun.tools.javac.Main;
    public class LoadClass
         private File f;
         private Class c = null;
         private Object o;
         public LoadClass()
              f = new File("C:/AAJ/src/testpackage/Testdatei.java");
              try
                   o = neuesExemplar(f.getPath(), "testpackage.Testdatei");
                   c = o.getClass();
                   System.out.println("Class " + c.getName() + " found.");
              catch (Exception e)
              {e.printStackTrace();}
              Method [] method = c.getDeclaredMethods();
              for (int i=0; i<method.length; i++)
                   System.out.println(method.getName());
              change();          
              compileJava(f.getPath());
              File fileToDelete = new File("bin/testpackage/Testdatei.class");
              System.out.println(fileToDelete.delete());
              Class cla = null;
              try
                   Object o = neuesExemplar(f.getPath(), "testpackage.Testdatei");
                   cla = o.getClass();
                   System.out.println("Class " + cla.getName() + " found.");
              catch (Exception e)
              {e.printStackTrace();}
              Method [] methods = cla.getDeclaredMethods();
              for (int i=0; i<methods.length; i++)
                   System.out.println(methods[i].getName());
         private int compileJava(String javaFile)
         String[] args = {"-d", "C:/AAJ/bin/", "-classpath", System.getProperty("java.class.path"), javaFile};
         return Main.compile(args);
         public static void main(String[] args)
              new LoadClass();
         private Object neuesExemplar(String pfad, String klassename) throws Exception
         URL url = new File(pfad).toURL();
         URLClassLoader cl = new URLClassLoader( new URL[]{ url });
         Class c = cl.loadClass(klassename);
         return c.newInstance();
         private void change()
              FileWriter fw;
              BufferedWriter bw;
              try
                   fw = new FileWriter(f);
                   bw = new BufferedWriter(fw);               
                   bw.write("package testpackage;");
                   bw.newLine();
                   bw.newLine();
                   bw.write("public class Testdatei");
                   bw.newLine();
                   bw.write("{");
                   bw.newLine();
                   bw.write("public static void main (String [] args)");
                   bw.newLine();
                   bw.write("{");
                   bw.write("System.out.println(4);");
                   bw.newLine();
                   bw.write("}");
                   bw.newLine();
                   bw.newLine();
                   bw.write("private void a ()");
                   bw.newLine();
                   bw.write("{");
                   bw.newLine();
                   bw.write("System.out.println(55);");
                   bw.newLine();
                   bw.write("}");
                   bw.newLine();
                   bw.write("}");
                   bw.close();
                   fw.close();               
              catch (IOException e)
              {e.printStackTrace();}                                             
    I�m using eclipse 3.1.0. Is it possible that it�s a bug in eclipse that eclipse holds the old class file in memory from the beginning and always refers to this one and not to the new compiled one?
    Thanks a lot
    Simon

  • Executing a Java application from JAVA

    Hello all,
    I have a problem spawning a Java IRC client from another Java application. The client only manages to execute itself properly [join a specific channel] once the original parent application has been closed. Any ideas?
    The code is as follows:
    public void run(){
         String[] cmd = {"java", "IRC"};
         try {
               Process p = Runtime.getRuntime().exec(cmd);
              p.waitFor();
         } catch (Exception exc){
              print ("Could not run the IRC session file" + exc);
      }

    Well, if you ask me, it's not very good Java style to try to access the command line to run ANOTHER Java application.
    My suggestion is simply call the IRC program's methods to get it started. Don't bother with Runtime.exec.

  • Question about Design Standard licence

    Hi!
    I would like to know, when you buy a licence Design Standar, this is only for one computer or you can install it on 2?
    I'm trying to understand also about volume licence.. This is useful only when you have how much computer? we are going to have maybe a maximum of 6 computer using that suite.
    Thanks!
    Christ

    Hi Christ, here's an overview guide to answer all those questions and more on Adobe volume licensing...
    If not, just post back with anything further.

  • Question about design pattern - business delegate

    hi guys
    i have got a question to ask about the delegate pattern. usually, we use it to decouple between presentation client and businessservice tiers. for instance, the service tier has an session ejb, and delegate wrapps the ejb. and the web client calls delegate to access service. is the delegate only used by the presentation tier? within the service tier, we can have many ejbs that work together to get tasks done. do we still use delegates in the service tier? what is ur suggestion? thanks

    Try the Patterns and OO Design forum.

  • Question about konception of a application

    Hello,
    I'd like to make an application, which would have a lot of forms and where I could very easy add new forms. In JSF every form has own JavaBean and information in faces-config.xml.
    I'd like to avoid write for every form a bean and writting data info faces-config.xml.
    I wanted to write own VariableResolver, which would take form-data and write them into DB.
    However, I don't know how to check if the data are already valid - VariableResolver is called a few times.
    I could write a Action, which would be called after submit. These Action would be defined in some class (which would be pretending that it's Bean for this form but it'd not have any getters and setters) and it would write the data into DB.
    Does anyone made similar application or have idea for a better solution ? ?
    with best regards,
    Rafal

    hi
    you can write a java class for DF.
    an instance of DF class have some EF objects.
    for example,
    samples/com/sun/javacard/samples/JavaPurse/CyclicFile.java
    implements ISO 7816 CyclicFile ( EF )
    see also:
    http://forum.java.sun.com/thread.jspa?threadID=673745&messageID=3936272
    best regards,
    siavash

  • Questions about  Designer

    Hello,
    I am new in this forum and in Oracle Designer also.
    I have started to work with Designer last month,
    I am learning to use it,
    and I have a question :
    - what is the difference between Template object and object library???? waht ares the uses of both them ?
    - waht is the difference between Designer et Designer headstart?
    thanks for your help ans have a good day,

    I'll give you my opinion based on my experience...
    Templates serves as 'skeletons' of generated forms and reports. You use them to define global appearance and functionalities of the module, but not details like specific item properties.
    The object libraries define the details of the generated objects, like items, canvas, windows. Many properties you can't define using templates, but can do using object libraries.
    Usually to generate an app you rely on both templates and object libraries, as well on preferences.
    I've never used headstart, but I think it's a kind of "add-on" to Designer, with pre-customized templates, object libraries etc (maybe it can be thought as a framework?)
    hth

  • Question about JRE and Swing applications

    Hi i trying to make a Swing application whit some clients but one of them tell me that he have a lot of troubles whit java, because someone make an applet for his website and when he upgrade the JRE the applet dont work anymore.
    In my case i dont want any applets, i want swing, but a im not sure if
    swing uses the JRE and if the application im going to make, may have troubles when they upgrade de JRE.
    Tanks for de answers and sorry for my english

    In general, Java maintains upward compatibility (older code runs in newer Java releases.)
    Certain exceptions are made, and each major Java release identifies these. The current document can be read here:
    http://java.sun.com/j2se/1.5.0/compatibility.html

  • A question about design.

    I have a program I wrote using Visual Basic that I use at my church to print a deposit slip for our weekly offerings.  A pretty simple program.  I enter the check information (giver name, check number, amount) or cash and put that data in a list
    box.  I also total the cash & check amounts to print on a deposit slip.  One aspect of the program is that I store the name and address of anyone who gives to the church and at the end of the year I print a letter giving them the total of their
    offerings throughout the year so they can deduct it on their income tax forms.  The names and address are keep in a simple access database.
    Now, I have added the capability to insert the check in a Magtek MICR check reader and using the account number on the check (which I have stored in the database in the same table that holds the names) I can get the name of the person making the contribution
    along with the check number.  Then I just enter the amount, hit enter and I'm ready for the next check.
    Here is the problem (and it's not a big one): some of our members have two or more checking accounts so I end up with two rows with duplicate information in my database.  My question is should I create another table with the account number and a key
    pointing to the member name?  I know, I've been kinda wordy for such a simple question but I really want the views of the members of this forum.
    Thanks in advance.
    Philip

    Philip,
    Just thinking out loud. How about having seperate tables for the personal info, account and contribution?? Something like below:
    Person
    PersonID, Name, Address and other personal details
    BankAccount
    Account_ID, PersonID, Branch_details etc.
    Donation:
    Donation_ID, Person_ID, Account_ID, Check_Number, Amount, Datetime etc.
    So you can have a track of all names and accounts seperately. Now for the contributions, if a person has given two checks each with different bank account, the same can be captured distinctly with the combination of Account, Check and Donation id. The Person_ID
    can be removed from the last table if we can assume that each account maps to only one person (eliminating the possibility of shared accounts)
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

Maybe you are looking for

  • Error Me683

    Hi, One of my client is facing a problem very frequently.He creates a PO with 100 to 150 items from the Purchase requisitions once he completes the PO the user saves and he could see the PO number.then after words when he try to see the PO he gets th

  • ECC 6.0 Client copy

    Hi all Recently i Loded my system with SAP ECC 6.0 IDES. But Country Setting Screen, Tax procedures ( TAXINN, TAXINJ) are not activated. and also i am facing problem in activating New GL function. If any body know the solution please share with me .

  • I need help uninstalledin cs2 can someone walk me throgh it

    my cs2 stopped working and they at adobe told me to uninstall it and the reinstall... i need help!

  • Error test anywhere

    Hi all, I'm trying deploy anywhere in Exchange 2013, but when i'll try in Exchange Analyzer Remote, i see the message error; Foi encontrada uma exceção inesperada no nível da rede. Detalhes da exceção: Mensagem: The remote server returned an error: (

  • Planned and Actual costs at the Activity level

    Hi all,       Can you tell me if there is a R/3 report which lists out the planned and actual costs for a project and displays it for each network and activity? I want these values at the activity level.       I found a report which lists out these v