How to remove a SFSB in web page??

Hi all,
I have a question on when should I call remove() when ejb is involved in web pages.
I have searched the past threads in this forum and someone suggested to use http
binding interface. It is really a great idea. However, I still have two questions.
Q1. when a web session time-outs, it will trigger the http binding event. However,
how do web server know the session is time-out?
a) There is a timer in web server for each session. When a client (browser) make
a request to web server, web server will check if it is time-out or not., i.e.
the time-out is triggered from Client
b) There is a timer in web server and it will periodically check if there are
any time-out session. If yes, invalidate them.
If the answer is b, it perfects. If the answer is a, I have a concerns. If user
suddenly closes the browser, then time-out event will not trigger forever?
Q2) I am using iplanet for web server and WLS 5.1 which implies the app and web
server resides in different JVM. Is the http binding event can still be triggered
from iplanet to WLS ejb?
They make me plainful.
Frank

Comments embedded below
"Frank" <[email protected]> wrote in message
news:[email protected]...
>
Hi all,
I have a question on when should I call remove() when ejb is involved inweb pages.
I have searched the past threads in this forum and someone suggested touse http
binding interface. It is really a great idea. However, I still have twoquestions.
>
Q1. when a web session time-outs, it will trigger the http binding event.However,
how do web server know the session is time-out?
a) There is a timer in web server for each session. When a client(browser) make
a request to web server, web server will check if it is time-out or not.,i.e.
the time-out is triggered from Client
b) There is a timer in web server and it will periodically check if thereare
any time-out session. If yes, invalidate them.
If the answer is b, it perfects. If the answer is a, I have a concerns. Ifuser
suddenly closes the browser, then time-out event will not trigger forever?The session will be timed out if it exceeds it's max timeout value as per
the servlet spec.so you don't have to worry about A)
Q2) I am using iplanet for web server and WLS 5.1 which implies the appand web
server resides in different JVM. Is the http binding event can still betriggered
from iplanet to WLS ejb?This may in fact be a problem with your using HttpSessionBindingListener in
your case. One thing you could do instead is implement an
HttpSessionListener in your WebApp and store a Map of EJB remote references
in the session. Whenever a session is invalidated, timed out, or destroyed
for any reason the container will make a callback to the sessionDestroyed()
method of your HttpSessionListener class. In this method you could simply
iterate through the Map of references you have stored in the session that is
being destroyed and call remove() on each of those references. One thing to
keep in mind though is that both these listener classes were defined in the
Servlet 2.3 specification so if you aren't at least using that then neither
one will be available to you.
>
They make me plainful.What makes you plainful?
Frank
~Peace
rupton

Similar Messages

  • How can I delete an old web page ??

    How can I delete an old web page ?? I have created a web page some time ago and now I want to delete it but i do not know how to do it: can anyone help me ?

    Delete the web page where it is published.
    If it is published to MobileMe, then you need to log into MobileMe and go to your iDisk or mount it on your desktop and then delete it from your Web/sites folder.
    If you have published to a server, then you'll need to download Cyberduck, Filezilla or Transmit - all dedicated ftp programmes to connect with your host/server and then delete your old files from the server.
    It really is not hard.

  • How do i Hyperlink to a web page from a java application?

    How do i Hyperlink to a web page from a java application using internet explorer as my default web browser?

    It's very simple.You can start any Application with the class Runtime. The command is an array consisting of the path of .exe and the file to be open.
    String [] cmd={path of IE+Filename.exe,"URL of your website"}
    try
    Runtime.getRuntime().exec(cmd);
    catch (Exception e)
    System.err.println(e.toString());
    }

  • How do I close the current web page in Safari?

    UPgraded to IOS 8 because a friend said it cured his problems, so I took the plunge.
    BIg mistake.
    THis question concerns Safari.
    how do I close the current web page?

    I just found how to do this on my iPad!  At the top right are two squares overlapping.  Click on that and you will get your page hanging in space.  There is an X on the top (I think) left.  Click on that and TaDa!  Lost of hoops, but glad I found it.

  • How to remove a list from a page ?

    I added a list to a page and then later decided it would be easier to add the list to page 0. Now I can't find how to remove the list from the page.
    Edited by: Rene W. on Oct 6, 2008 1:52 AM

    Ok sorry I understood you wrong then.
    I tried to recontruct your problem and did the following things.
    1. Created a new list in: Home>Application Builder>Application 305>Shared Components>Lists>Create / Edit List
    2. Created a new region on page 2: Home>Application Builder>Application 305>Page 2>Create Region Type: List, Name:"test1"
    3. Created a new region on page 1: Home>Application Builder>Application 305>Page 1>Create Region Type: List, Name: "test2"
    4. Deleted region "test1" on page 2
    5. List and region still survived on page 1. :D
    Tobias

  • How to create progress bar in web page!!!

    Dear,
    I do not know how to create progress bar in web page?
    Please show me the way to solve it.
    Best regards,
    Huy

    God your lucky/lazy
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class ProgressBar extends Applet
      private boolean isStandalone = false;
      private int width;
      private int height;
      private double percentComplete;
      private double fundsTarget;
      private double fundsRaised;
      private Properties values;
      private String propertiesFile;
      private JPanel jPanel1 = new JPanel();
      private JProgressBar PB_FUNDS_PROGRESS = new JProgressBar();
      private GridLayout gridLayout1 = new GridLayout();
      private BorderLayout borderLayout1 = new BorderLayout();
      private JPanel jPanel2 = new JPanel();
      private JLabel jLabel1 = new JLabel();
      private JLabel jLabel2 = new JLabel();
      private JLabel jLabel3 = new JLabel();
      private GridBagLayout gridBagLayout1 = new GridBagLayout();
      private JPanel jPanel3 = new JPanel();
      private JLabel jLabel4 = new JLabel();
      //Construct the applet
      public ProgressBar()
      //Initialize the applet
      public void init()
        try
          jbInit();
        catch(Exception e)
          e.printStackTrace();
      //Component initialization
      private void jbInit()
      throws Exception
        fundsTarget = new Double( 100 ).doubleValue();
        fundsRaised = new Double( 50 ).doubleValue();
        PB_FUNDS_PROGRESS.setBackground(Color.green);
        PB_FUNDS_PROGRESS.setForeground(Color.red);
        this.setLayout(gridLayout1);
        jPanel1.setLayout(borderLayout1);
        jPanel2.setLayout(gridBagLayout1);
        jPanel1.setBackground(Color.white);
        jPanel2.setBackground(Color.white);
        jPanel3.setBackground(Color.white);
        jLabel2.setBackground(Color.white);
        jLabel1.setBackground(Color.white);
        jLabel3.setBackground(Color.white);
        jLabel4.setText(" ");
        jLabel1.setText(" ");
        jLabel2.setText(" ");
        jLabel3.setText(" ");
        this.setBackground(Color.white);
        this.add(jPanel1, null);
        jPanel1.add(PB_FUNDS_PROGRESS,  BorderLayout.CENTER);
        jPanel1.add(jPanel2, BorderLayout.SOUTH);
        jPanel2.add(jLabel2, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 5, 0), 0, 0));
        jPanel2.add(jLabel1, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 150, 5, 5), 0, 0));
        jPanel2.add(jLabel3, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 5, 4, 150), 0, 0));
        jPanel1.add(jPanel3, BorderLayout.NORTH);
        jPanel3.add(jLabel4, null);
        propertiesFile = this.getCodeBase().getFile().replaceAll("%20", " ")+"funds.properties";
        System.out.println("Properties file at " + propertiesFile);
        values = new Properties();
        try
          values.load(new FileInputStream(propertiesFile));
          fundsTarget = new Double( values.getProperty("TARGET", "100").toString() ).doubleValue();
          fundsRaised = new Double( values.getProperty("RAISED", "50").toString() ).doubleValue();
          System.out.println("target: " + fundsTarget + " raised: " + fundsRaised);
        catch (IOException ioe)
          System.err.println(ioe.getMessage());
        percentComplete = (fundsRaised/fundsTarget)*100;
        System.out.println(percentComplete);
      //Start the applet
      public void start()
        PB_FUNDS_PROGRESS.setMaximum(new Double(fundsTarget).intValue());
        PB_FUNDS_PROGRESS.setMinimum(0);
        repaint();
      //Stop the applet
      public void stop()
      public void paint(Graphics g)
        Graphics2D g2 = (Graphics2D)g;
        PB_FUNDS_PROGRESS.setValue(new Double(fundsRaised).intValue());
        String percent = Double.toString(percentComplete).substring(0, 4);
        jLabel4.setText("Currently At " + percent + "%");
        jLabel1.setText("100%");
        jLabel2.setText("50%");
        jLabel3.setText("0%");
      //Destroy the applet
      public void destroy()
      public String getAppletInfo()
        return "Funds progress applet by A really nice person";
    }

  • How to remove block from trusted web site. I did the obvious by pasting the web address in the allow content area. What are the other ways

    I am a cityville game player on facebook and for some reason today I am unable to send out blasted on the game when if fact this was never a problem. Finally I went to internet explorer and the same problem happen, but internet explorer let me know that the content was blocked. All I had to do was unblock it and that was easy and know I can blast out. However trying to remove the block from fire fox is a issue. I went into to tools and removed every block and it still want work right. Therefore, how to remove block from trusted web site. I did the obvious by pasting the web address in the allow content area under tools options. What are the other ways

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is about ASP.NET website programming, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT1349 How do I get rid of web pages I'm through viewing?

    How do I get rid of web pages I'm through viewing?

    Not sure exactly what you mean but while you are using Safari, just tap the X on the left side of the tab to close a it. Only the active tab shows the X. You have to tap on a tab to make it active or the foremost window.
    If you want to clear the history - Settings>Safari>Clear History.
    These are instructions for Safari in iOS 5. What version are you running?

  • How can I make photos on web page enlarge with mouse-over?

    How can I make photos on web page enlarge with mouse-over?

    There's a couple of recent topics which mention MagicZoom and JQZoom...
    https://discussions.apple.com/message/17438064#17438064
    https://discussions.apple.com/message/17440847#17440847
    A very simple method is shown here...
    https://discussions.apple.com/message/17440847#17440847

  • How to temporary block list of web pages?

    Hi While working I need access to web pages (I am developing web applications) but same time often I got distracted and spend my time reading interesting articles on web instead doing my job. I was using LeechBlock addon for Firefox, but now I migrated to chrome. So my question is:
    Is there simple way how to temporary block list of web pages for all browsers?
    It is OK to block http/https access only, but no problem to block all traffic from/to this sites. I need to by able to easily start/stop this block.

    No. Each domain has (or has not) its own IP address. The IP address of a parent domain has no influence on the IP address of subdomains.
    If you want to be able to use willcard, the best way is probably to base the filtering on HTTP level traffic.
    That is directly in the client (firefox/chrome extensions)
    Or, using an http proxy (squid).
    Or, may be, using iptables with rules that match the URL.
    eg
    sudo iptables -A OUTPUT -p tcp --dport 80 -m string --string "google.com" --algo kmp -j DROP
    will block outgoing traffic matching "google.com". You can of course tune better rules.
    sudo iptables -F OUTPUT will flush all rules.
    You can then add many "iptables -A OUTPUT" lines in a script, and associate a key shortcut to this script...
    Well, an extension to the browser is probably preferable. I give this solution only for the fun

  • How can a customer edit a web page that I have made?

    How can a customer edit a web page that I have made?  The customer should edit the text or pictures by himself. Is this possible? 

    First you can search in this forum "in browser editing".
    Second you may be interested in this video:
    http://tv.adobe.com/de/watch/designtools-in-der-creative-cloud/bearbeitung-im-browser-in-a dobe-muse/

  • How do I remove content from my web page without deleting it?

    Hi,
    I previously created a webpage using iWeb on the domain name that came with dot.mac (now Mobile Me). I want to remove it from the online page without deleting it (I may want to use the content later). I've used other software at work (Morello) and there you would "archive" it. Can anyone please advise how I do it on my Mac?
    Thanks v much,
    Tony

    Tony:
    You can cause an entire page to not show in the site by using the Inspector/Page/Page pane to remove its link in the navbar. That would preserve that page until you decide to reintroduce it into the site.
    As for part of a page, the only way I could think of doing that is duplicating the page and remove the duplicate from the navbar. Then edit the original page to remove the content you want gone.
    OT

  • Removing links in a web page created using web page composer

    Hi there,
    I am creating web pages using Web page composer. I would like to remove the links Send Feedback, E-mail, Print, Add to Favorites, RSS. How can i achieve this?
    Your comments are highly appreciated.
    Regards,
    Ponraj M

    To configure the functions of the page header you will have to wait for SP14.
    I guess to change the header for an SP13 you have to modify the pageheader.jsp. The page is part of the com.sap.nw.wpc.runtime.PageHeaderComponent.
    Please note that this modification is not supported by SAP!

  • How to remove infopath ribbon using Master Page?

    Hi All,
    I would like to remove infopath ribbon using Master Page, using f12 removed like "<div id="s4-ribbonrow"
    class="s4-pr s4-ribbonrowhidetitle" style="display:none">". But how to perform in original master page? Thanks in advance!

    Hi,
    Based on your description, my understanding is that you want to remove InfoPath ribbon using Master Page.
    using F12 to find the <div id=”RibbonWrapper”> section:
    Navigate to :C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\ FormServer.aspx. Add the following CSS into <head runat="server"></head>section:<style type="text/css">
    #RibbonWrapper
    display: none !important;
    </style>
    Best Regards,Lisa Chen
    Lisa Chen
    TechNet Community Support

  • How to center Text Box on Web Page? -- Web dev with Word 2013

    I'm trying to assist a user who wants to use Word 2013 for simple web page development.
    There are many tools but they want to use Word 2013.
    Actually have it working by saving the Word 2013 files as web pages... like index.htm, about.htm, etc.
    The problem is when we use the "Insert" tab in Word to create a "Text Box" or a "Shape" ...
    And align it centered on the page... it looks fine in Word but when we open it with a web browser the "Text Box" or "shape" are no longeer centered.
    We thought we had it fixed by making the "Text Box" Layout Options "In Line with Text" but again... looks fine in Word but not in a web browser.
    The question: How can we get a "Text Box" in Word 2013 to appear centered on a web page?
    thanks for any help.

    Hi:
    For webpage design, I would suggest customized form under develop tab on the Ribbon over insert object directly. I tested from my side, using customized form will lock the object position on the
    page.

Maybe you are looking for