Is it closed::applet-client of OAS EJB

any success research?
for
IE5
Nav4.7
after plug-in1.1.3 security check problem
jar signed
null

It is expressly forbidden in the spec for EJB's to be socket servers.
David
william wrote:
Hi Greats,
Is it possible to write a socket programming in EJB? Our application
does not have any separate client application. WE are writing server EJB
components which has to do some transaction service for the already
existing clients which will send stream of bytes to the server.
Can anybody help me out in this
Thanks in advance
william

Similar Messages

  • Applet clients accessing EJB middle-tier

    Hello
    I am trying to have an Applet access the stateless session EJBs on the middle tier (OC4J 9.0.3)
    The applet works fine in the AppletViewer.
    However in the IE browser version 5.5, I get java.security.AccessControlException.
    Which I can understand because applet is not allowed to open a RMI-IIOP port on the remote server.
    What steps do I need to take to allow the applet to open such a connection. Signing jars?, java.poclicy file ?
    I know that this setup works fine on JBoss and also on WebSphere. (using certificates)
    Is this not suported by OC4J? Does the server need to support something or is it strictly a client side issue?
    Any comments will be highly appreciated.
    Thanks
    vijay

    We are having Applet-clients with OC4J and it works fine. We sign all our client-jars (including oc4jclient.jar) and our application has all permissions at the client. Modifying java.policy works as well, but signing Jar-Files is simpler and doesn't need any client-changes.
    For normal operations it seems ok to include oc4client.jar for the client application, but we are using JMS and therefore need a lot of classes of oc4j.jar - so I buildt my own deployment-jar out of oc4j.jar.
    If you use the cache_archive and cache_version attributes in the html-tag, all the jar-files are only downloaded at application startup if they are changed on the server (und version-numbers are increased). So startup-time is comparable to a local application.
    Gilbert

  • Is there any way to use JDK1.4PreferenceAPI in JWS + Applet clients

    Dear Friends,
    Actually, we are in process of reusing the J2sdk1.4 new utilities like (Preferences API ) in all the applications means Application client, Java WebStart
    Client , Applet client. As for as Application client is concern , we do not have any problem at all, Its because of, J2sdk1.4 Preferences API provides an
    option to Plugin our Implementation for reading and writing User Preference Information.
    But Incase of JWS client or Applet client , we can not Plug in our own Preference Factory Implementation , because of some security concern. We came
    to know that it is possible via setting system property -D option and signing the Jar which uses this Preference API class. But it will create more problem
    for our client while using our application . So we need to use JDK1.4 Preference with out using above two methodology.
    Is there any possible solution which can help me to use the JDK1.4 Preference API in all the clients????.
    Please do help me as early as possible. This is very very important for us.
    Thanks in advance
    with regards,
    Pitchaimani

    Dear Sir,
    Thanks for your immediate reply, I had solved the problem by putting both the classes in a single signed jar. Now i am get into the new Problem. The problem is, even if i set the SystemProperty for Preference Factory, it doesn't take effect at all.
    Actually what happened was, while starting the
    Browser(Netscape or IE), browser will try to load all the Java classes (which includes InputMethodManager class also). This InputMethodManager class create an Object for Preference Node and use the same for getting the Preference values. In this case if i invoke My Application(Applet) from the browser, and set the System Property (For Preference Factory), it won't take effect at all. Suppose if i use Preference.userRoot() in my application, it will try to look the Java Preference Object and return the same which is not a desired one. So i would like to know, is there any mechanism to set/reset the Preference Factory (for my Application alone)???
    Please help me to get out of this problem. It is very very important for me.
    Your help is highly appreciated
    Thanks & Regards,
    Pitchaimani

  • Applet client with DataForms using dial-up

    Jdeveloper 3.2, IAS9i
    Hello,
    Somebody knows if the DataForms are efficient via dial-up?
    For example in the Online Orders sample,with an applet client (with DataForms, using dialup to connect to app. server). What happens when an user insert a new employee record. When an user navigate around the fields ocurrs a validation inside the Business Object Tier. What happens with the remote round trips?, It's faster?.
    Jdeveloper 3.2.2
    IAS9i
    Thanks a lot.
    null

    Any application designed to run over a dial -up connection must be extremely sensitive to the fact that dial-up connection is very slow due to it's bandwidth.
    Applets by default require downloading a lot of files to the browser. So you must download your app code, the jdbc drivers and any other required classses.
    Applets using BC4J components then must also download the BC4J code. BC4J uses a data cache, so data is also downloaded.
    Avoid using applets in this design.
    Use JavaServerPages(JSP's) (or servlets) which are a much "thinner" version of the "Thin client" group of tools(applets, servlets jsp's)
    WHY JSP's over servlets ??
    They are quicker to write than servlets

  • How to get started on java applet client/server game?

    Hi,
    I've googled, but didn't find any useful information about creating java applet client/server game. I've followed the example of Client/Server Tic-Tac-Toe Using a Multithreaded Server in Java How to Program from Deitel, but I when I tried on Applet, my cliet doesn't communicate with the server at all. Any help to get started with Applet would be great. Thanks!

    well, i decided to put in portion of my codes to see if anyone can help me out. the problem I have here is the function excute() never gets called. here is my coding, see if you can help. Notice, I'm running this on Applet thru html page. This shouldn't be much different than running JFrame in term of coding right?
    Server.java
        public void init()
            runGame = Executors.newFixedThreadPool(2);
            gameLock = new ReentrantLock();
            otherPlayerConnected = gameLock.newCondition();
            otherPlayerTurn = gameLock.newCondition();
            players = new Player[2];
            currentPlayer = Player1;
            try
                server = new ServerSocket(12345, 2);
            catch (IOException ie)
                stop();
            message = "Server awaiting connections";
        public void execute()
           JOptionPane.showMessageDialog(null, "I'm about to execute!", "Testing", JOptionPane.PLAIN_MESSAGE);
            for(int i = 0; i < players.length; i++)
                try
                    players[i] = new Player(server.accept(), i);
                    runGame.execute(players);
    catch (IOException ie)
    stop();
    gameLock.lock();
    try
    players[Player1].setSuspended(false);
    otherPlayerConnected.signal();
    finally
    gameLock.unlock();
    Client.java
        public void init()
            startClient();
        public void startClient()
            try
                connection = new Socket(InetAddress.getByName(TienLenHost), 12345);
                input = new Scanner(connection.getInputStream());
                output = new Formatter(connection.getOutputStream());
            catch (IOException ie)
                stop();
            ExecutorService worker = Executors.newFixedThreadPool(1);
            worker.execute(this);
        }So after worker.execute(this), it should go to Server.java and run the function execute() right? But in my case, it doesn't. If you know how to fix this, please let me know. Thanks!

  • Selector closing all sockets if one found closed by client

    Hi,
    I have a selector monitoring 8 sockets.
    One socket is closed by client.
    Selector closes the same socket from its side and then it gets IOException on all other socketChannel's read method, it eventually closes all socketChannels.
    Can somebody give me solution which will close only those channels which are closed by client

    Selectors don't do this, it must be your code. Show us.

  • How can I give My Own PreferencesFactory Impl in Applet client

    Dear Sir,
    Actually we have requirement like storing and retrieving the Preference values from the local machine to remote server. We had read the complete Java documents of PreferenceAPI. It has lots of features, but we found that the Preferences storing and retrieving process are embedded into the PreferenceAPI itself. We would like to plugin our own implementation for storing and retrieving the same. We can plugin our own implementation by setting the System Property called java.util.prefs.PreferencesFactory. In case if it is an application client , then we do not have any problem at all. But In applet client , we do not have a mechanism to set the System Property in Applet client , Security Manager throws Security Exception ,while setting this property.
    If it is not possible to set the System property,Please do let us know any other way like Instantiating our iplementation while calling PreferenceAPI.getSystemRoot() and PreferenceAPI.getUserRoot() methods.
    please help me to solve the problem as early as possible.
    Your help is very much appreciated.
    Thanks in advance
    with regards,
    Pitchaimani M

    Your help is highly appreciated!

  • How I create a client standalone in EJB, help me please

    I need create a client standalone but the application no find my JNDI. Will be anyone give me one step by step client standalone in EJB?
    Hugs, thanks

    needing multiple usernames and passwords is going to force you into using a database type log in system. There is no "simple" way to accomplish this. You can also use java, ajax and a number of other types. But for the most secure you want to use a server sided language like ColdFusion, PHP, ASP, etc. That's where your server configuration comes in. What server sided language will it support? That's a good place to start.
    Another good place to start is do you know anything about code to write some on your own? DW does some coding for you, there are plug ins but it is always best to be able to understand the code.
    you can always look through the DW exchange for a small log in system that might be easy for you to change to your needs.

  • Connection reset when closing the client program.

    when closing the client program I get the error message Connection Reset
    at ServerThread.run(SeverThread.java:244)
    which is the following file
    i've marked the 244: on this file on the left of the file.
    after this I have the client program which is called Client.java
    the error happens when I close the client program and the error is on the serverthread side of the application. Please anyone help out with this one.. Thanks.
    //SererThread.java
    import java.net.*;
    import java.io.*;
    import java.util.Date;
    import java.util.Calendar;
    import javax.swing.*;
    public class ServerThread extends Thread {
    private Socket socket = null;
    String outputStrings = "";
    public ServerThread(Socket socket) {
         super("ServerThread");
         this.socket = socket;
         Calendar c = Calendar.getInstance();
         int hr = c.get(Calendar.HOUR_OF_DAY);
         int hour=hr-1;
         int min = c.get(Calendar.MINUTE);
         int sec = c.get(Calendar.SECOND);
         String timeOfConnect [] = new String[100];
         int conCtr = 0;
    int curState = 0;
         String entries [][] = new String[5][100];
    public String getInput(String theInput) {
    String sentToClient = null;
         Calendar c = Calendar.getInstance();
         int hr = c.get(Calendar.HOUR_OF_DAY);
         int hour=hr-1;
         int min = c.get(Calendar.MINUTE);
         int sec = c.get(Calendar.SECOND);
         int day = c.get(Calendar.DAY_OF_WEEK);
         int month = c.get(Calendar.MONTH);
         int year = c.get(Calendar.YEAR);
         int pm = c.get(Calendar.PM);
         String strHr = Integer.toString(hour);
         String strMin = Integer.toString(min);
         String theInputSeg = "";     
         if(theInput!= null)     
         for(int a=0;a<theInput.length();a++)
              char inputCharArray [] = theInput.toCharArray();
              if(inputCharArray[a]==';')
                   theInputSeg = theInput.substring(0,a);
    if (curState == 0) {
    if(c.PM==1&& hour == 8)
         sentToClient = "yes";
    curState = 1;
    } else if (curState == 1) {
         for(int a=0;a<3;a++)
                   //System.out.println("theInput:" + theInput);
                   //System.out.println("a:" + entries[0][a]);
                   //System.out.println("a:" + entries[1][a]);               
                   //if()
                   if(theInputSeg.equalsIgnoreCase("CUSCarissa_Calton25242526")||theInputSeg.equalsIgnoreCase("CUSSan_Htat27242526")
                        ||theInputSeg.equalsIgnoreCase("CUSSadam_Husien20909990"))
                   //if(theInput.equalsIgnoreCase(entries[0][a])||theInput.equalsIgnoreCase(entries[1][a]))
                        System.out.println("buy...");
                        curState = 0;
                        sentToClient = "Bye.";
                   else
                        System.out.println("buy...!");
                        curState = 0;
                        sentToClient = "Hello.";
    return sentToClient;
    public void run() {
         int next = 0;     
         BufferedWriter bw = null;
         byte [] b = null;
         BufferedWriter bw1 = null;
         try{
    //JOptionPane.showMessageDialog(null,"Sizz");
    String fileNameStr = "C:\\San Server Data\\cInputCustData.txt";
    File f = new File(fileNameStr);
    long size = f.length();
    b = new byte[(int)size];
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    int count = 0, index = 0;
    int byteRed = 0;
    int sizeInt = (int)size;
    while (bis.available() > size-1)//16848 )
    bis.read(b,index,(int)size);
    //int bytesRead = bis.read(b,index,(int)size2);
    //size2 -= count;
    //index += count;
    //System.out.println( "hello:" + b[index]);
    //index++;
    //bis should be closed in a finally block.
    bis.close() ;
    catch(IOException io)
    System.out.println("Oh oh io error");
         //System.out.println("cInputCustData: \n" + new String(b));
         String bStr = new String(b);
         char charbStr []= bStr.toCharArray();
         String header []= new String[5];
         int ctr = 0;
         int e = 0;
    boolean first = true;
         for(int q=0;q<5;q++)
              for(int u=0;u<100;u++)
                   entries[q]= new String("");                    
         //System.out.println("b: " + bStr);
         for(int s=0; s<charbStr.length;s++)
              if(s<charbStr.length-1)
              if(charbStr[s]==':'&&charbStr[s+1]==':')
                   //System.out.println(" s0: " + s);                    
                   for(int ss=s+2;ss<s+12;ss++)
                        //System.out.println("ss: "+ ss + " s: " + s);                         
                        if(charbStr[ss]==':')
                             //System.out.println("in");     
                             header[ctr] = bStr.substring(s,ss);               
                             //System.out.println("1ss: " + ss + " s: " + s);          
                             for(int c=ss+1;c<charbStr.length;c++)               
                                  if(charbStr[c]==':')
                                       //System.out.println("ctr: " + ctr + " " +"entries[0]" + entries[0][0]+ "\n"+ entries[0][1] + "\n" + entries[1][0] + "\n" + entries[1][1]);
                                       if(ss<charbStr.length)entries[ctr][e++] = bStr.substring(ss+1,c);
                                       //System.out.println("c:" + c);
                                       ss= c;
                        ctr++;
                        e=0;
              //System.out.println("header: " + header);                         
                                  //System.out.println("entires[0]0: " + entries[0][0]);
                                  //System.out.println("entires[0]1: " + entries[0][1]);
                                  //System.out.println("entires[1]0: " + entries[1][0]);
                                  //System.out.println("entires[1]1: " + entries[1][1]);
                                  //System.out.println("entires[2]0: " + entries[2][0]);
                                  //System.out.println("entires[2]1: " + entries[2][1]);
              String timeConnect[][] = new String[5][100];
              char myChars[] = null;
              for(int d=0;d<5;d++)
                   for(int f = 0;f<100-1;f++)
                        for(int cs=0;cs<entries[d][f].length();cs++)
                             if(!(entries[d][f].equals("")))
                                  myChars = entries[d][f].toCharArray();
                             for(int a=0;a<entries[d][f].length();a++)
                                  if(myChars[a]==';')
                                       for(int k=a;k<entries[d][f].length();k++)
                                            timeConnect[d][f]= entries[d][f].substring(a,k);
                                       //     System.out.println("time: " + timeConnect[d][f]);
         //for(int o=0;o<5;o++)
              //System.out.println("Header["+o+"]" + header[o]);
         try {
         PrintWriter output = new PrintWriter(socket.getOutputStream(), true);
         BufferedReader input = new BufferedReader(
                        new InputStreamReader(
                        socket.getInputStream()));
         String inLine, outLine;
         outLine = getInput(null);
         output.println(outLine);
         while ((inLine = input.readLine()) != null) {
    244: outLine = getInput(inLine);
              output.println(outLine);
              System.out.println(inLine);
              outputStrings += inLine;
              //if(inLine.equals("Hello."))break;
              timeOfConnect[conCtr++]= " " Integer.toString(hour)":"+Integer.toString(min)+":"+Integer.toString(sec);
              if(c.PM==1){System.out.println("HL");timeOfConnect[conCtr-1]+="PM";}
              System.out.println(timeOfConnect[conCtr-1]);
              outputStrings += "\n"+ timeOfConnect[conCtr-1];
              //System.out.println("output");     
              try {
                   //FileWriter fw1 = new FileWriter("C:\\San Server Data\\Connectlog.txt");
                   bw1 = new BufferedWriter(new FileWriter("C:\\San Server Data\\Connectlog.txt",true));
                   //PrintWriter pw2 = new PrintWriter(bw1);
                        System.out.println(outputStrings);
                        //pw2.println(outputStrings);
                        if(next == 0)          
                             bw1.write(outputStrings);
                        if(next == 1)
                             bw1.write(outputStrings+ " D");
                        bw1.newLine();
                        bw1.flush();
                   //pw2.close();
                        catch (IOException io) {
                   System.out.println("Oh oh, Got and IOException error!"+io);
                        finally{
                             if(bw1 != null) try{
                                  bw1.close();
                             catch(IOException io)     
         output.close();
         input.close();
         socket.close();
    if(next == 0)next = 1;
         else if(next == 1)next = 0;
         //WONCUS1 won = new WONCUS1();
         //String m[] = new String[1];      
         //won.main(m);
         //won.start();     
         } catch (IOException err) {
         err.printStackTrace();
    //Client.java
    public class Client {          
    public static Socket Socket = null;
    public static BufferedReader i = null;
         public static PrintWriter o = null;
         public static String packetString = "CUSCarissa_Calton25242526"; //product id
         public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    public static String fromServer;
    public static String fromUser;
    public static void main(String[] args) throws IOException {
         int ars=0;
         if (args.length > 0)
              ars = Integer.parseInt(args[0]);
    try {
         Socket = new Socket("localhost", 4444);
    o = new PrintWriter(Socket.getOutputStream(), true);
    i= new BufferedReader(new InputStreamReader(Socket.getInputStream()));
    } catch (UnknownHostException err) {
    System.err.println("Can not find Server!");
    System.exit(1);
    } catch (IOException e) {
    System.err.println("Couldn't get initialisation files to be represented in true statement!");
    System.exit(1);
    while ((fromServer = i.readLine()) != null) {
         //int hour = Integer.parseInt(fromServer);
         //System.out.println("Server: " + fromServer);
         System.out.println("Server: " + fromServer);     
         if (fromServer.equals("Bye."))
    break;
         if (fromServer.equals("Hello."))
    break;
    fromUser = packetString;
         if (fromUser != null) {
    System.out.println("Client: " + fromUser);
    //o.println(fromUser);
              String getComp = InetAddress.getLocalHost().getHostName();
              String ip = InetAddress.getLocalHost().getHostAddress();
              o.println(fromUser+";"+getComp + " " + ip);
              //o.println(getComp + " " + ip);

    "onclose event of application", at least do something such as call wait() on ReadersWhy? Who is going to notify() it?
    and close the Sockets and then Readers/WritersI won't even ask why about that because it is 100% dead wrong. Close the outermost Writer or OutputStream. That flushes the output, closes the socket, and closes any input streams or readers. Taking your advice the flush() cannot occur. But the evidence is that he is closing the socket: in fact the operating system does that anyway. Possibly he needs to take the advice about closing the Writer/OutputStream, to cause the flush(), which might stop the server from writing. But that depends on the application. If it's legal in the application protocol for the client to exit while the server is still writing he will just have to put up with the 'connection resets', or at least interpret them properly rather than just logging them as an error.
    If your using a window(GUI) you can use the main frame with a Window closing event.And that's completely irrelevant because the error happens on the server.

  • Closing a client

    Hey,
    I implemented a client server application. Multiple clients can communicate with the server simultaneously. What I want to do is that when having several clients the server reports how many clients are connected with it. This works fine. The problem is that when I close a client, the server will give the follwoing error:
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    What I want is that the server will decrement the number of available clients and continue working normally not everything become to a halt because I closed one client.
    In the serverThread class I did the following, though it seems for nothing:
      try {
                server.close();
                ServerMain.clientCounter--;
            } catch (IOException ex) {
                Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);
            }Thanks for your time

    I added a try catch statement whre the stream is closing and in the catch statement I added a line of code to decrement the number of clients..
    If someone can fix it for me it would be very appreciated. Thanks
    This is my serverThread class:
    public void run() {
             //   ServerGui gui = new ServerGui();
                ServerMain.clientCounter++;
                // displays ip address
               System.out.println( server.getLocalAddress().getHostAddress());
                // set DNS Name
                System.out.println(server.getLocalAddress().getHostName());
                // set number of clients attempting to connect
                System.out.println(ServerMain.clientCounter.toString());
                String host = "127.0.0.1";
                try {
                    DataOutputStream dos = null;
                    DataInputStream dis =  null;
                    dis =  new DataInputStream(server.getInputStream());
                    dos = new DataOutputStream(server.getOutputStream());
                        File folder = new File("c:\\sharedfiles");
                    File[] listOfFiles = folder.listFiles();
                    dos.write(listOfFiles.length);
                    for (int i = 0; i < listOfFiles.length; i++) {
                        if (listOfFiles.isFile()) {
    // send list of files available to client
    dos.writeUTF(listOfFiles[i].getName());
    String pathChosen = dis.readUTF();
    String path = folder.getPath().toString().concat("//"+pathChosen);
    File f = new File(path);
    Long size =f.length();
    dos.writeLong(size);
    // data is written in blocks of 1024 bytes
    FileInputStream fstream = new FileInputStream(f);
    int blockSz;
    byte[] block = new byte[1024];
    while (( blockSz = fstream.read(block)) != -1){
    dos.write(block,0,blockSz);
    try{
    fstream.close();
    dos.flush();
    dos.close();
    catch (Exception e){
    System.out.println(ServerMain.clientCounter--);
    } catch (UnknownHostException e) {
    System.out.println("Don't know about host: " + host);
    System.exit(1);
    } catch (IOException e) {
    e.printStackTrace();
    System.out.println("Couldn't get I/O for the connection to: " + host);
    System.exit(1);
    try {
    server.close();
    ServerMain.clientCounter--;
    } catch (IOException ex) {
    Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);

  • Deployment wizard (OAS EJB)

    Why do I get
    There is nothing to process in jar file I:\\ows_4082\\ows\\upload\\691MyOASAppSource.jar.
    Compilation of idl interfaces for I:\\ows_4082\\ows\\upload\\691MyOASAppSource.jar failed!
    if I try to deploy my bc4j appmodule to an oas 4.0.8.2 as EJB?
    thx,
    Tib

    Hi
    edit the file svwww.cfg file in
    ORAWEB_HOME/admin/websitename/httpd_machinename/www.
    In the [Server] portion of parameters change the 'FileCaching'
    parameter to "OFF".
    regards
    raghu
    Albert (guest) wrote:
    : Trying to deploy an EJB into OAS 4.0.8.1 using
    : JD3 deployment wizard.
    : If the EJB already exists there, then an exception arises
    : in the wizard:
    : Creating client jar...
    : java.io.FileNotFoundException: E:\dev32\ows\4.0
    : \..\apps\ejb\MyAccount\_client.jar
    : at java.lang.Throwable.<init>(Compiled Code)
    : at java.io.FileNotFoundException.<init>(Compiled Code)
    : at java.io.FileOutputStream.<init>
    : (FileOutputStream.java:69)
    : at sun.tools.jar.Main.run(Main.java:76)
    : at sun.tools.jar.Main.main(Main.java:524)
    : at oracle.oas.tools.util.JarGenerator.createJar(Compiled
    : Code)
    : at oracle.oas.tools.util.CreateJars.main(Compiled Code)
    : Creation of client jar for E:\\dev32
    : \\ows\\upload\\194MyAccountSource.jar failed!
    : As I've found, the _client.jar is actually present there,
    : but it is locked by someone, so the wizard cannot overwrite it.
    : If I stop the OAS Node Manager, then the file is released.
    : After deleting the _client.jar and starting OAS Node Manager
    : again, the wizard works.
    : What Oracle has to comment on that ?
    null

  • URGENT:Testing deployed OAS EJB Aplication (JNDI Problem)

    Please I need urgently help on this subject matter:
    Environment:
    OAS 4.0.8.2a on NT 4.5 SP5
    Jdeveloper 3.1
    Oracle 8R2
    After succesfull deployment of BC4J aplication on OAS I want simply test it. When I click to test on the appModule on the tree, the dialog asking the connection information appears..I choose OAS option from the drop down box.
    The error message I get is:
    "apps/ejb/ClientesProjectOAS/pkgClientes/PkgClientesModule is not the name of a registered component"
    I have tried with other variants too taking into account what OAS Administration shows..but no luck!
    Now, WHAT SHOULD BE PUT TO THE "JNDI PATH" and "CLIENT JAR PATH" options. This is the most confusing point to me and there are practically no valid/good information on online help.
    Thanx.
    Best regards,
    Ari Supperi
    [email protected]

    I have (almost) the same problem. Any idea? My weak english must be the reason, but I cannot find out what to enter into the JNDI and the Client jar path during testing my OAS deployed AppModule.
    Thx,
    Tib
    null

  • [Needing Help] J2EE proyect with Applet client

    Hello, I'm Maximiliano and I'm working in a proyect in J2EE.
    I'm using netbeans for developing.
    I'm trying to include a applet in my netbeans proyect but the netbeans IDE compile/save the classes in WAR/WEB-INF/classes and that folder it's not public, so i can't call my applet from my index.jsp.
    If i move the class file to the root of the WAR it works but the imports for mi ejbs are broken.(Because they're in /WEB-INF/lib)
    I've also tried to create a separate proyect for the applet and packaging all in a EAR package (with a simple ejb too) and it's not working either.
    What i need is if anyone can tell me how to call my packaged applet from my index.jsp
    I know including applets in html with <applet> tag but i cannot resolve the correct path to my applet, or if i have to modify my proyect.
    Thanks, Maximiliano.
    And example will be much apreciated.

    its a very good question actually - I have no idea how to achieve that. My gut feeling says that you certainly want to turn the applet into a separate project, as the applet is basically a client to your JEE environment and not part of the JEE application itself. Turning it into a separate war module seems like the thing to do - perhaps even put it outside your application EAR.
    The imports of the EJBs are not going to work in any case, even if you manage to get them on the applet's classpath. Your applet is not running on the server, thus it could only call EJB methods through the remote interface, for which you need a a set of libraries from the server and you somehow need to get the remote interface classes on the classpath of your applet - quite difficult to setup.
    If you want to invoke EJB methods from the applet, I would really suggest turning them into jax-ws webservices as that makes it such that you don't need any additional libraries to be able to do it. The Java 6 runtime already has jax-ws 2.x inside it, and it is dead easy to call a webservice from a client application.

  • Applet Client Using SSL

    Hi,
    I want my Applet to make a secure connection to an EJB deployed on the server(Weblogic
    Server 7.0). But i get the following exception..
    java.lang.RuntimeException: Missing license file for: WebLogic Platform 7.0
    at weblogic.security.utils.SSLSetup.getLicenseLevel(SSLSetup.java:135)
    at weblogic.security.utils.SSLSetup.getWrapperClass(SSLSetup.java:187)
    at weblogic.security.utils.SSLContextWrapper.getInstance(SSLContextWrapper.java:24)
    at weblogic.security.utils.SSLSetup.getSSLContext(SSLSetup.java:381)
    at weblogic.rjvm.t3.T3SJVMConnection.newSocket(T3SJVMConnection.java:95)
    at weblogic.rjvm.t3.T3JVMConnection.newSocketWithRetry(T3JVMConnection.java:358)
    at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:239)
    at weblogic.rjvm.t3.T3SJVMConnection.createConnection(T3SJVMConnection.java:83)
    at weblogic.rjvm.Protocol.createConnection(Protocol.java:231)
    at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1269)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:418)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:300)
    at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:233)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:190)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:196)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:162)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:262)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:323)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at WLClientApplet.init(WLClientApplet.java:53)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    The Applet works well in non-secure mode(using t3 instead of t3s).
    The same code works as an Application(secure). Here i have to include the directory
    containing the file "license.bea" in the classpath. But in case of Applet, including
    the license file in the jar file doesn't help
    Regards
    Raees

    Hi,
    The issue is that to make SSL work we need to specify the bea.home property mentioning
    the license_file_directory. How can this be achieved in case of Applet where the
    license.bea file is not present in the client.
    Regards
    Raees
    "kirann" <[email protected]> wrote:
    client license issues were resolve in 70sp2 i believe.
    "Raees Kader" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I want my Applet to make a secure connection to an EJB deployed onthe
    server(Weblogic
    Server 7.0). But i get the following exception..
    java.lang.RuntimeException: Missing license file for: WebLogic Platform7.0
    at weblogic.security.utils.SSLSetup.getLicenseLevel(SSLSetup.java:135)
    at weblogic.security.utils.SSLSetup.getWrapperClass(SSLSetup.java:187)
    atweblogic.security.utils.SSLContextWrapper.getInstance(SSLContextWrapper.java
    :24)
    at weblogic.security.utils.SSLSetup.getSSLContext(SSLSetup.java:381)
    at weblogic.rjvm.t3.T3SJVMConnection.newSocket(T3SJVMConnection.java:95)
    atweblogic.rjvm.t3.T3JVMConnection.newSocketWithRetry(T3JVMConnection.java:358
    at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:239)
    atweblogic.rjvm.t3.T3SJVMConnection.createConnection(T3SJVMConnection.java:83)
    at weblogic.rjvm.Protocol.createConnection(Protocol.java:231)
    atweblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.jav
    a:1269)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:418)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:300)
    atweblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:233)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:190)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:196)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:162)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:262)
    atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:323)
    atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:221)
    atweblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java:149)
    atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at WLClientApplet.init(WLClientApplet.java:53)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    The Applet works well in non-secure mode(using t3 instead of t3s).
    The same code works as an Application(secure). Here i have to includethe
    directory
    containing the file "license.bea" in the classpath. But in case ofApplet,
    including
    the license file in the jar file doesn't help
    Regards
    Raees

  • Using the Portal Single Sign-On for java applet clients

    Hi
    We have a task to build a java applet working within a portlet and comunicating to some session EJB(wrapped BC4J) running on the OC4J. The applet is presumably connecting to server via RMI. This connection should be restricted to some groups of portal users.
    When a user is entering the applet he is supposed to be already logged into the Portal.
    There is a lot of information on building custom secure portlets using only a pure HTML(same as JSP) client whith the help of the Portal Single Sign-On.
    But, is it possible to use the Single Sign-On for establishing a secure RMI connection from applet to OC4J without entering a password in the applet once more?
    Yuriy

    Perhaps you can write a small JSP page or PLSQL
    web procedure that will grab user name from
    the SSO Server (via SSOSDK/mod_osso)
    and invoke the applet with encrypted user name.
    The applet will receive the encrypted username
    and decrypt it to get the clear user name.
    This help to get Single Sign-On.
    To make sure that environment is secure, encrypted
    user name parameter should have random salt,
    user name, and time stamp to prevent replay attack.
    Applet must make sure that the encrypted users name
    time stamp set by the JSP/PLSQL page has value
    within a reasonable time limit like 5 minutes

Maybe you are looking for

  • When is Apple going to fix the problem with slow Time Machine backups with Mavericks?

    I have been with Apple tech support and they got my Time Machine working by doing a spotlight re-indexing and a safe boot.  This worked for about three days and I am back to very slow backups.  It is impossible for Time Machine to back up every hour

  • Auto-remember window positions switching from laptop to external screens

    Does anybody know of any utilities available that will automatically remember my app window positions when switching from laptop to external screens?

  • Zero Record Data Load Problem

    Hi, Please give your suggestion for following problem. we are loading data from ETL (Flat File - Data Stage) into SAP BW 3.1. data may contain Zero records. When we try to push the data into BW. At ETL side, it is showing successful data transfer. At

  • WLS 8.1 with Oracle 8.1.5.7

    Hi, I am using WLS with Oracle (connexion Pool). The JDBC driver is configured with the thin client of Oracle. The connexion are very low even if a low number of users are connected to the system. Is there any recommandations please. Thanks, Elie

  • [SOLVED] How to create uncompressed packages

    Is there a way to convince makepkg to create uncompressed packages. I often tweak an official package or build from one the AUR and it takes a lot of time to compress the package that will be immediately uncompressed for installation. I would like so