Extremely difficult to debug, about EJB, JSP

These codes are in a JSP page, an EJB will be looked up:
addcd.jsp
<%!
   private CDAdder cdadder = null;
   public void jspInit() {
      try {
         InitialContext ic = new InitialContext();
         Object objRef = ic.lookup("CDAdderBean");
        CDAdderHome home = (CDAdderHome)PortableRemoteObject.narrow(objRef, CDAdderHome.class);
         cdadder = home.create();
      } catch (RemoteException ex) {
            System.out.println("Remote Exception:"+ ex.getMessage());
      } catch (CreateException ex) {
            System.out.println("Create Exception:"+ ex.getMessage());
      } catch (NamingException ex) {
            System.out.println("Unable to lookup home: " + ex.getMessage());
   public void jspDestroy() {   
         cdadder = null;
%>
<%
HttpSession httpsession=request.getSession();
httpsession.setAttribute("cdadder",cdadder); //i want to add this object to the session so that i could retrieve it and use its methods in other JSP pages.
%>
<form method="post" action="addtrack.jsp">
<input type=text name="TitleOfTrack">
<input type=text name="DurationOfTrack">
<input type="submit">
</form>
......................................addtrack.jsp
<%
CDAdder cdadder=(CDAdder)request.getSession().getAttribute("cdadder");// get back the object in the session
String TitleOfTrack=request.getParameter("TitleOfTrack");
String DurationOfTrack=request.getParameter("TitleOfTrack");
cdadder.addTrack(new Track(TitleOfTrack,DurationOfTrack) ); //add the Track object into the arraylist using the addTrack(Track track) method in the CDAdderBean
response.sendRedirect(addcd.jsp); //redirect back to the addcd.jsp page
%>CDAdderBean.java
public class CDAdderBean implements SessionBean {
     // data item to hold a reference to a passed Session context     private SessionContext ctx;
     private ArrayList tracks=new ArrayList();   << This arraylist holds the Track objects
     public void addTrack(Track track) throws RemoteException{
          tracks.add(track); //one method for adding tracks to the arraylist
     public void removeTrack(int index) throws RemoteException{
          tracks.remove(index); //another method for removing a track from the arraylist
     public ArrayList getListOfTracksAL() throws RemoteException{
return tracks;
...............................Each time the user enters the required fields(title,duration) to add a track, these parameters will be passed to the addtrack.jsp, and the addtrack.jsp will retrieve the cdadder object from the session and use its addTrack method to add the track to the arraylist. And when it finishes, it will redirect back to the addcd.jsp. I got some other codes in the addcd.jsp(I did not show it as it will look very messy), anyway, the codes includes a call to the getListOfTracksAL() method which will return an arraylist of Track objects.
my problem is that, EVERY TIME i started the sun application server, and go to the addcd.jsp, then the FIRST TIME I entered all the required fields and click submit button . I expected the parameters would be passed to the addtrack.jsp and it would add the track to the arraylist for me and then returned to addcd.jsp and the addcd.jsp would display the track that I just tried to add.
but it didn't.
I am sure that it DID add the track to the arraylist because i tried to print the size of the arraylist after the addTrack method was invoked.
the most strange thing was that the addcd.jsp would display the tracks correctly after the FIRST TIME of adding a track.
Please take a look at this link if you have time:
http://222.166.192.130:8080/E-Music/login.jsp
username:aaaaaa
password:aaaaaa
choose the role as "Admin"
Add new music recording
note: processor.jsp in this web server is the addtrack.jsp I was referring to.
Many thanks to you all.

ya
i tried to add some println statements and noticed that:
the first time i tried to add a track, the addTrack method was really invoked and the size of the arraylist became 1
but when it returns to the addcd.jsp page the arraylist became empty
but the most strange thing was that, it worked correctly AFTER the first time.
thank you very much for your advice.

Similar Messages

  • How to debug with EJB+Servlet+J2ME at the same time?

    I am setting up an environment to compile Sun's Smart Ticket J2ME application. However, it run with application exception in the servlet or EJB. I tried to debug. But if I debug the servlet with Embedded AS in JDeveloper, I cannot debug the EJB since the EJB cannot deployed to the embedded AS. (EJB and Servlet must be co-existed in the same AS, at least using same JNDI)
    So is there any good approach to debug?
    email: [email protected]

    Hi Marvin,
    If the EJB cannot be deployed to the embedded AS, then you should probably use remote debugging to debug the servlet and EJB in the stand-alone AS.
    Look in the Help for topics about remote debugging the OC4J application server. (I'd give you the exact topic title, but I'm at home for the holidays and I don't have the latest JDev on this machine.)
    The Help topic describes it in more details, but the basic steps are as follows:
    1. Launch the AS in debug mode by inserting some debugging options on the command line used to start up the AS.
    If you are using OJVM, then the debugging options are
    -XXdebug,port4000,detached
    If you are using another JVM (for example HotSpot), then the debugging options are
    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=4000,suspend=n
    2. Set your project for remote debugging by checking the Remote Debugging checkbox on the Debugging - Remote panel of the Project Settings dialog. Also you should select the "Attach to OJVM" radio button if you are using OJVM or the "Attach to JPDA" radio button if you are using another JVM (for example HotSpot).
    3. Click the debug button in JDev and enter the host and port where the AS is running (leave host blank if the AS is on the same machine as J[i]Long postings are being truncated to ~1 kB at this time.

  • For the last year, I have to refresh my browser to load certain normal pages...IE opens them, but not Firefox. I also have extreme difficulties loading video from sites including YouTube, Yahoo, etc. I open them in IE just fine. I update all the time.

    For the last year, I have to refresh my browser to load certain normal pages...IE opens them, but not Firefox. I also have extreme difficulties loading video from sites including YouTube, Yahoo, etc. I open them in IE just fine. I update all the time.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"<br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    *Java Plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • JDeveloper 10g does not export .ear, it complains about a JSP

    There is a project on J2EE.
    JDeveloper 10g rejects to export .ear, .war и .jar (EJB jar), it complains about a JSP page, it writes the follwing:
    Error(3,48): FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    Error(4,14): Attribute 'xmlns:xsi' used but not declared.
    Error(5,23): Attribute 'xsi:schemaLocation' used but not declared.
    Error(6,12): Attribute 'version' used but not declared.
    Error(8,15): Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
    Error(8,15): Element 'description' used but not declared.
    That is it complains about descriptors, but I the descriptors must be OK.
    How can I get it working to export .war and .ear successfully?
    May be I should switch off some checks?

    There is a project on J2EE.
    JDeveloper 10g rejects to export .ear, .war и .jar (EJB jar), it complains about a JSP page, it writes the follwing:
    Error(3,48): FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    Error(4,14): Attribute 'xmlns:xsi' used but not declared.
    Error(5,23): Attribute 'xsi:schemaLocation' used but not declared.
    Error(6,12): Attribute 'version' used but not declared.
    Error(8,15): Invalid element 'description' in content of 'taglib', expected elements '[tlibversion]'.
    Error(8,15): Element 'description' used but not declared.
    That is it complains about descriptors, but I the descriptors must be OK.
    How can I get it working to export .war and .ear successfully?
    May be I should switch off some checks?

  • Remove Default EJB/JSP Apps.

    Hi,
    I am wondering rather there are steps to remove the Default EJB/JSP Apps deployed in default installation.
    I only need to run servelt and web caches.
    Thanks,
    Stephen

    Weblogic 5.1 uses an architecture that is very unique. Consider it the
    exception, not the rule. You can NOT support a single deployment binary
    with WL 5.1 and other servers.
    The Weblogic 6.0 architecture is much closer to the others, and
    significantly better than the reference implementation's architecture. In
    6.0 you should be able to make a single app (EAR) that deploys to other
    servers as well.
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "martin" <[email protected]> wrote in message
    news:3a6f070e$[email protected]..
    Hi,
    I have written an application that has EJBs, and JSPs that invoke the
    EJBs. It works on WebLogic 5.1.
    I want to package this application up in such a way that it can be
    deployed on any kind of J2EE application server.
    Using JBoss, I discovered that the JSPs by default do not have access to
    the interfaces supplied in the EJBs. i.e. I have to make copies of the
    EJB's home and remote interfaces, and put them where the JSP files can
    find them.
    This messing about was not neccessary with WebLogic. WebLogic knew to look
    in the EJB JAR files.
    So my question : For compatibility, should I create multiple copies of my
    EJB's interfaces, or is WebLogic's developer-friendly behaviour the
    correct one?
    Thanks, Martin.

  • EJB+JSP versus PHP

    What is the advantage of using EJB+JSP for a web ticket selling application instead of using PHP?
    Can Java support more customer hits compare to PHP?
    Is EJB+JSP better than PHP? Why?

    I know both PHP and Java. PHP is a more rapid development tool than Java. Once you know it, it is just easier to make simple pages out of it vs Java. In some ways PHP is easier to develop in and in some ways it is harder.
    There is no real IDE for PHP. There are some tools for real time syntax checking (Komodo) and debugging, but they are not as mature as the pick of current Java IDE's.
    In reverse, there is never a need to restart a server when updating a php file unlike Java. This is not a problem with JSP's, but when you change servlets the server will unload all classes from memory and reload. This is a major pain if you are working on a production server.
    I have created a game clan site with many functions using PHP and an order processing section of someones web site. It is fine for smaller projects and is very fast to develop in, however PHP does not scale as well as Java. A large enterprise system is better suited to using Java.
    Also, PHP is a loosely typed language. This has many nuances that are different from a strongly typed language like java. OOP is definately not as powerful in PHP, as there is no private, protected and public typing of methods and fields. You can make classes and even extend classes, but it is poorly implimented IMO. I did all my PHP OOP style, but did not use any inheritance. The limitations of OOP principles is probably the most restrictive aspect of PHP that I can see.

  • Ias support for EJB, JSP/servlets,JDBC, connection pooling, XML, SOAP, load balancing etc

    Please let me know where I can find more information regarding iPlanet usage/deployment/configuring/tuning etc for support of technologies - like EJB, JSP/servlets, JDBC, connection pooling, XML, load balancing, JDBC & Transactions
    (I have already read the 'Getting Started with the iPlanet Application Server' part five and six - http://developer.iplanet.com/appserver/testdrive/partfive.jsp and partsix.jsp)(I am using the ias testdrive version).

    Hi,
    It's difficult to explain unless the J2EE architecture is understood. Also, explaining things like load balancing, Transactions, tuning, are bit vague and could blow the disk space of this site.
    To get started, the best way is to test the sample applications and the best part is you don't require internet connection to follow each steps. Install iWS and iAS, open browser, type in http://hostname:port/ias-samples/index.html. You can find links to the sample applications bundled. Please follow the steps given on deploying the application. This will enable you to a higher level.
    Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Not a question but a complaint.  The new ITunes software doesn't support the IPhone.  It is extremely difficult to find your IPhone, what applications are on the phone and to re-sync new and updated applications.  It is focused on selling and not support.

    The new ITunes software for Windows, ITunes vers. 11.0.1.12, is extemely clumsy for managing my IPhone 4.  The help material is designed for the older version so is of no use.  The interface is extremely difficult to use except for buying music or video.  I'm trying to managing updating applications and syncing with my IPhone but there I can't find a drop-down menu or anything on help that tells me how to get to the IPhone window so I can initiate a re-sync on my IPhone.  This is very frustrating because Apple is supposed to make things "intuitive" and have "good" help.  Well, it's NOT intuitive and there is NO HELP.  You need to fix this.  I mean a terrible map application and now this terrible interface.  Nothing but downhill since Jobs left us.  Just remember, we all bolted from Microsoft because of this sort of crap and we can all bolt to Android if you keep up this trend.

    Ctrl + B to show the Top Menu
    View > Show Sidebar
    View > Show Staus Bar
    Deactivate Search Entire Library to speed things up.
    This should make managing your iPhone the same as it was before.

  • I find the current version of Firefox extremely difficult to use. Can I use a lower level version of Firefox??

    I find it extremely difficult using the current version of Firefox. Navigating through open pages is cumbersome and at times, closing tabs is not possible. I have to close Firefox and restart. I would like to download an older version of Firefox. Is this possible?? If not, I will go elsewhere.
    Regards,
    Jerry

    How are you trying to close tabs when that happens?
    Does it work if you middle click a tab?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    If you want to restore the old appearance then you can right click the orange Firefox button to open the toolbar context menu or use (F10) View > Toolbars.
    * Click the Menu Bar entry and place a check-mark to make the Menu Bar visible all the time.
    * Click "Tabs on Top" to remove the check mark and place the Tab Bar at its original position just above the browser window.
    * https://support.mozilla.com/kb/why-are-tabs-top
    You can use this extension to get the Status Bar back:
    * Status-4-Evar: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/
    More tips here:
    * http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6/
    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • Know about EJB.

    Hi,
    I dont have any idea about EJB and also how the EJB is differ from java beans.
    Thanks in advance.

    Romain - I think the answer to your question is that the information
    identifying the user is passed into the initial context parameters. Weblogic
    uses this to propagate the security context from the servlet container to
    the ejb container.
    cheers,
    Markus
    "romain" <[email protected]> wrote in message
    news:3b0e8b23$[email protected]..
    >
    Hi
    perhaps it is a dummy question but I didn't find any explicit answer.
    I'd like to know how the ejb can know if a user belongs to a role.
    For example if I want to access my ejb with a servlet, and this servlet isprotected
    (access allowed only for group customer)
    and in my bean's deployment descriptor I have protected one method withthe security
    role customer)
    What I am wondering is when the user is authenticated in the servlet as acustomer
    and then try to access the method how the ejb knows that this user is inthe group
    customer??
    Is this information included in the http session or in the initialcontextcreated
    in the servlet or somewhere else??
    thanks for your help
    romain

  • HOW TO: Debug a remote JSP

    <h1>HOW TO: Debug a remote JSP</h1>
    <strong>Note: </strong>The process of debugging a remote JSP on an Apache/Jserv
    installation involves a couple extra steps that were not covered in the JDeveloper
    3.2 documentation. </p>
    <strong>Introduction</strong></p>
    You use JDeveloper to debug JavaServer Pages (JSP) deployed and running on
    a server that includes a JSP container, such as Apache Jserv. Your JSP container
    will need to be configured to enable remote JSP debugging using JDeveloper.</p>
    JDeveloper allows you to use one of two protocols for JSP debugging - the
    Oracle Java Virtual Machine (OJVM) debugging protocol or the Sun Java Platform
    Debugging Architecture (JPDA). Before you start your remote debugging session,
    you will have to choose which method to use. If you use the OJVM protocol, your
    debugging session will run more quickly and you will have some additional features
    to assist you. You can only use OJVM on a Windows NT system. If your server
    is running UNIX or another operating system, you <strong>must</strong> use the
    &quot;classic&quot; JVM.</p>
    <strong>Setting up your project for remote JSP debugging</strong></p>
    Once you have created a JSP project, you need to set your project options
    so that remote debugging is enabled: </p>
    <ol>
    From the <strong><u>P</u>roject</strong> menu, select <strong><u>P</u>roject
    Properties</strong>. </p>
    </li>
    Click the <strong>Run/Debug</strong> tab.</p>
    </li>
    From <strong><u>D</u>ebug Files As:</strong> dropdown list, select <strong>Remote
    Debugging</strong>. </p>
    </li>
    Click <strong>OK</strong>. </p>
    </li>
    </ol>
    <strong>Configuring the Remote Server</strong></p>
    The following options must be changed on the host running the Apache/Jserv
    server. These instructions assume the server is running Windows NT: </p>
    <strong>Changes to jserv.properties</strong></p>
    These options control which Java Virtual Machine is used and how it is loaded.
    </p>
    <ol>
    For <em>The Java Virtual Machine interpreter</em> parameter <tt>wrapper.bin</tt>:
    </p>
    </li>
    <ul>
    [*]Comment out any existing entries by putting a <tt>#</tt> at the beginning
    of the line.
    <blockquote>
    <pre>#wrapper.bin=C:\java1.1.8\bin\java.exe</pre>
    </blockquote>
    </li>
    [*]Add a new entry with the full path of the <tt>java.exe</tt> that you want
    to use. To use the JDeveloper 1.3 OJVM, put
    <blockquote>
    <pre>wrapper.bin=C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin\java.exe</pre>
    </blockquote>
    </li>
    </ul>
    For the <em>Arguments passed to Java interpreter</em> parameter <tt>wrapper.bin.parameters</tt>:
    The value you put for this parameter depends on which Debugging Protocol
    you will choose in the <strong>Remote Debugging Dialog</strong> in JDeveloper
    when you start debugging.</p>
    </li>
    <ul>
    [*] If you want to use the JDeveloper 3.2 OJVM, put </li>
    <blockquote>
    <pre>wrapper.bin.parameters=-ferrari -XXdebugondemandquietport4000</pre>
    </blockquote>
    [*]If you want to use Java Platform Debugging Architecture, put
    <blockquote>
    <pre>wrapper.bin.parameters=-classic -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Xdebug -Xnoagent -Djava.compiler=NONE</pre>
    </blockquote>
    The <tt>4000</tt> parameter defines the port number which the JDeveloper
    debugger will use to communicate with the server. You can specify a different
    port number, but it must match the port which you will enter in the <strong>Remote
    Debugging Dialog</strong> in JDeveloper when you start debugging. </p>
    </li>
    </ul>
    [*] For the <em>PATH environment value passed to the JVM</em> parameter <tt>wrapper.path</tt>
    enter the location of <tt>jdwp.dll</tt>, which is part of the <em>Java Platform
    Debugging Architecture</em>.
    This parameter is only necessary if you will choose the <em>Java Platform
    Debugging Architecture</em> debugging protocol:</p>
    <blockquote>
    <pre>wrapper.path=C:\jpda\bin</pre>
    </blockquote>
    </li>
    For the <em>CLASSPATH environment value passed to the JVM</em> parameter
    <tt>wrapper.classpath</tt>: </p>
    <ul>
    Keep the location of <tt>ApacheJServ.jar</tt>. If it is not already
    there, add it. </p>
    <blockquote>
    <pre>wrapper.classpath=C:\Program Files\Apache\JServ\ApacheJServ.jar</pre>
    </blockquote>
    </li>
    Comment out the location of <tt>jsdk.jar</tt>. </p>
    <blockquote>
    <pre>#wrapper.classpath=C:\jsdk2.0\lib\jsdk.jar</pre>
    </blockquote>
    </li>
    [*]Add the location of <tt>servlet.jar</tt> from JDeveloper 3.2.
    <blockquote>
    <pre>wrapper.classpath=C:\Program Files\Oracle\JDeveloper 3.2\lib\servlet.jar</pre>
    </blockquote>
    </li>
    [*] Add the locations of <code>jdeveloper.zip</code> and <code>ojsp.jar</code>
    from JDeveloper.
    <blockquote>
    <pre>
    wrapper.classpath=C:\Program Files\Oracle\JDeveloper 3.2\lib\jdeveloper.zip
    wrapper.classpath=C:\Program Files\Oracle\JDeveloper 3.2\lib\ojsp.jar
    </pre>
    </blockquote>
    </ul>
    </ol>
    <strong>Changes to jserv.conf</strong></p>
    <ol>
    For the <em>ApJServAction</em> parameter: </p>
    <ul>
    [*] Comment out any existing <tt>ApJServAction .jsp</tt> entries by putting
    a <tt>#</tt> at the beginning of the line. </li>
    <blockquote>
    <pre>
    #ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet
    </pre>
    </blockquote>
    [*]Add a new <tt>ApJServAction .jsp</tt> entry like this.
    <blockquote>
    <pre>
    ApJServAction .jsp /servlets/oracle.jsp.JspServlet
    </pre>
    </blockquote>
    </li>
    </ul>
    </li>
    </ol>
    <strong>Changes to zone.properties</strong></p>
    <ol>
    In the <em>Servlet Init Parameters</em> section: </p>
    </li>
    <ul>
    Add the following lines. </p>
    <pre>
    servlet.oracle.jsp.JspServlet.initArgs=emit_debuginfo=true
    servlet.oracle.jsp.JspServlet.initArgs=jspcompiler=oracle.jdeveloper.jsp.JspOjcCompiler
    servlet.oracle.jsp.JspServlet.initArgs=classpath=C:\Program Files\Oracle\JDeveloper 3.2\java1.3\jre\lib\rt.jar
    </pre>
    </li>
    </ul>
    </ol>
    <strong>Copying the JSP to the Apache/Jserv Server</strong></p>
    Once you have restarted the server with the modified parameters, you need to
    copy your JSP to the server's HTML root directory. For most Apache installations
    this is <tt>C:\Program Files\Apache\htdocs</tt>. </p>
    You also need to make sure the JSP is in your HTML directory in the JDeveloper
    tree, typically <tt>C:\Program Files\Oracle\JDeveloper 3.2\myHTML</tt>. The
    reason for this is JDeveloper uses the folder name as its package name.</p>
    <strong>Debugging a JSP</strong></p>
    Debugging a JSP is very similar to debugging any other Java program.</p>
    <ol>
    From the <strong><u>R</u>un</strong> menu, select <strong><u>D</u>ebug
    "<em>filename</em>.jsp"</strong>. </p>
    Start the JSP running (for example, start your web browser and open a
    connection to the JSP). </p>
    Debug as normal. </p>
    </ol>
    If you are using the JDeveloper OJVM debugging protocol, you will be able
    to disconnect from the JSP container. This allows you to stop debugging, but
    leave the JSP container running. In addition, you will be able to use two extra
    debugging functions that are not available using the JDPA protocol - <strong>Run
    to End of Method</strong> and <strong>Set Next Statement</strong>.</p>
    If you using JPDA, you must use <strong>Stop</strong> to end your debugging.
    Using this method will also stop the JSP container.</p>
    <blockquote>
    <strong></strong></p>
    </blockquote>
    null

    Hi,
    It again same as you do in your local server...You can monitor the BPEL process flow in the em console and debug..if its not sufficient....u can also monitor the logs located at
    <SOA_Home>\user_projects\domains\domain1\servers\soa_server1\logs to debug.

  • About EJB 3.0 ?

    i don't know anything about EJB (nither EJB 3.0 nor any previous version )
    i want to learn EJB 3.0, but the final version of 3.0 EJB 3.0 has not been release.
    i have heard that in EJB 3.0 all the old concepts have been changed.
    a) will it be a good idea to start learning the latest version (version prior to 3.0)
    and to get familiar with EJB and then later upgrade ?
    or
    b) wait for the EJB 3.0 and start learning EJB 3.0 only when its final version comes
    please give me a helpful suggestion

    This is a late feedback on your question but now JSR220: EJB 3.0 now is in its "Proposed Final Draft" stage.
    http://java.sun.com/products/ejb/docs.html
    I feel that starting afresh with EJB 3.0 is not a bad idea because there are some major changes in the way EJBs will be developed in future.
    Knowing EJB 2.x is always a plus and you would certainly appreciate the new incarnation for its simplicity.
    Hope this helps.
    Cheers,
    -_.

  • Debugging Tool for JSP

    Is there any debugging tool for JSP, which point out the line number where the error is. currently I am using notepad for JSP coding. It takes too much time for error finding.
    Usman

    You can use WebSphere Studio Application developer, which would probably be over kill if you are just doing JSPs because it does so much more. You may want to look at its open source verison eclipse at eclipse.org.
    Good Luck,
    J.Clancey

  • A question about EJB timeouts

    Good day!
    I encountered an interesting situation about EJB timer service.
    1) For example, I created an implementing TimerObject Stateless Session Bean.
    2) In ejbSetSessionContext method I created an timer to invoke ejbTimeout on my EJB every 15 seconds.
    3) Ok. Container invokes this ejbTimeout every 15 sec. But what happens is previous ejbTimeout didn't returned because it is waiting for some connection for example. Would container invoke ejbTimeout while processing previous ejbTimeout on this one Stateless EJB?
    I looked in EJB 2.1 spec. but didn't find corresponding answer.

    Hi russiandroopy,
    This isn't specifically mentioned in the spec because the design center of the Timer Service was not fine-grained events. The spec suggests that typical timeouts would be on the order of minutes or hours, which is typically much longer than the duration of the handling time within a timeout method or business method. In SUN's implementation we do not attempt to deliver a subsequent periodic timeout until the previous timeout completes successfully.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I find it extremely difficult to read books on my ipad 2 while sitting in the sun at the pool or the beach. Any suggestions?

    I find it extremely difficult to read books on my ipad 2 while sitting in the sun at the pool or the beach. Any suggestions?

    If you put a towel over your head and ipad then it will block out the sun, and the ipad is easily visable. Just being difficult, but yeah that is one of thous little ipad short cummings that apple doesn't pitch in the nice cool commercials. For me, I have to essentually turn the brightness up fully for best results, still isn't perfect.

Maybe you are looking for

  • How to write a start routine in the trasnformations ?

    Hi Experts, I am working on BI 7, As I want to write a start routine in transformations of 0FIGL_O02 DSO, to allow the GL accounts with cost center data. Already there is a delete statement please find. *DELETE SOURCE_PACKAGE where BAL_FLAG = 'X'. I

  • BAPI for Posting Incoming Payments thru F-28

    Hi, we are trying to post the incoming payment thru standard BAPI (BAPI_ACC_DOCUMENT_POST) but unable to do so. the error message are coming in Object type and object key fields in header data. kindly help me, and if possible pls sent me  sample inpu

  • Dimension declaration. Why do we need it?

    Hey, Oracle data warehouse gurus. It should be an easy question for you. Why do we need to declare dimension on the top of the dimension table (CREATE DIMENTION dimension_name ...)? It seems to me that many functions such as rollup, cube and the like

  • How do I add an other language in spellcheck?

         I want to add an other language to be recognized by spellcheck, specifically Greek.

  • Cannot use Buzzword in FIREFOX 3.0.1

    Cannot sign in or enter any characters. Flashplayer installed. Soon as I start typing, type error popup occurs. I also use Safari on the same computer, and no problems. Javascript is enabled