Question on reentrant beans

Hi all,
If there is a StatelessSessionBean that has two methods in its remote interface
say
method1() and method2(). In the bean implementation consider that method1() calls
method2(),
now my questions are:
     1) Can this scenario be called as re-entrant.
     2) What is the problem of calling a method in the same bean using "this" keyword.
     3) What problems in the transactions will happen in this scenario.
Thanks in advance,
Chandru

Stefan,
You are mixing terminology.
What you are describing is concurrency (although now that I think about
it, if you somehow manage to associate your two threads with the same
transactional context then you'll possibly create a transaction diamond).
I don't think there is a situation at all when Weblogic will allow a
second thread to access the instance while another thread is still in
the middle of an EJB call. Depending on the concurrency strategy for
entity beans you can get parallel access to instances with the same PKs
but it will not be one and the same instance.
For stateless session beans each call can hit a different available
instance since it doesn't matter which one will do the job.
You can get a reentrant call when from inside an EJB (I haven't dealt
with statefull session EJBs but it's probably very similar) business
method call you either call another EJB business method via the
remote/local interfaces (ejbObject) that will hit the same instance (if
you are in the same transaction you already have the access to that
particular instance so there is no concurrency issue).
Then you are reentering the same instance via the remote/local interface
and it is going to be a reentrant call.
If you simply call the method it is a normal Java method call and the
container doesn't get involved and there you can get recursion.
Dejan
Stefan wrote:
Re-entrance is when the executing thread A gets suspended in the
middle of a method call and thread B calls the same method on the very
same object. When thread A gets to continues two things might happen:
1 The method uses only stack variables and A is able to carry on its
work. 2 If the metod have static variables (not for Java) or uses any
memeber variables thread B might have messed things upp for A (this
situation calls for some sort of synchronisation). In situation 1 we
have a re-entrant method.
method1 calling method1 is called recursion.
Fortunattly having more than one thread operating on one object should
not happen with EJBs. It can happen if your EJB uses som static
methods or singeltons.
Regards
/Stefan

Similar Messages

  • Questions about entity bean caching/pooling

    We have a large J2ee app running on weblogic6.1 sp4. We are using entity beans
    with cmp/cmr. We have about 200 EntityBeans and accessed quite heavily. We are
    struggling with what is the right setting of max-beans-in-cache and idle-time-out.
    The current max heap setting is 2GB. With the current setting (default setting
    of max-beans-in-cache to 1000, with a few exceptions to take care of cachefullexceptions)
    we run into extended gc happening after about 4 hours. The memory freed gradually
    reduces with time and lurks around the 30% mark after about 4 hours of run at
    the expected load. In relation to this we had the following questions
    1. What does caching mean?
    a. If a bean with primary key 100 exists in the cache, and the following
    is done what is expected
    i. findByPrimaryKey(100)
    ii. findBySomeOtherKey(xyz)
    which results in loading up bean with primary key 100
    iii. cmr access to bean with
    primary key 100
    Is the instance in the cache reused at all between transactions?
    If there is minimal reuse of the beans in cache, Is it fair to assume that caching
    can only help loading of beans within a transaction. If this is the case, is there
    any driver to increase the max-beans-in-cache other than to avoid CacheFullException?
    In other words, is it wrong to say that max-beans-in-cache should be set to the
    minimum value so as to avoid CacheFullExceptions.
    2. Again what is the driver of setting idle-time-out to a value? ( We currently
    have it at 30 secs) Partly the answer to this question would again go back to
    what amount of reuse is done from cache? Is it right to say that it should be
    set to a very low value? (Why is the default 10 min?)
    3. Can you provide us any documentation that explains how all this works
    in more detail, particularly in relevance to entity beans. We have already read
    the documentation from weblogic as is. Anything to give more explicit detail?
    Any tools that can be of use.
    4. What is the right parameter (from among the things that weblogic console
    throws up) to look at for optimizing?
    Thanks in advance for your help
    Cheers
    Arun

    The behaviour changes according to these descriptor settings: concurrency-strategy,
    db-is-shared and include-updates.
    1. If concurrency-strategy is Database, then the database is used to provide locking
    and db-is-shared is ignored. A bean's ejbLoad() is called once per transaction,
    and the 'cache' is really a per-transaction pool. A findByPrimaryKey() always
    initially hits the db, but can use the cache if called again in the same txn (although
    you'd simply just pass a reference around). A findByAnythingElse() always hits
    the db.
    2. If concurrency-strategy is ReadOnly then the cache is longer-term: ejbLoad()
    is only called when the bean is activated; thereafter, the number of times ejbLoad()
    is called is influenced by the setting of read-timeout-seconds. A findByPrimaryKey()
    can use the cache. A findByAnythingElse() can't.
    3. If concurrency-strategy is Exclusive then db-is-shared influences how many
    times ejbLoad() is called. If db-is-shared is false (i.e. the container has exclusive
    use of the underlying table), then the ejbLoad() behaviour is more like ReadOnly
    (2. above), and the cache is longer-term. If db-is-shared is true, then the ejbLoad()
    behaviour is like Database (1. above).
    Exclusive concurrency reduces ejbLoads(), increases the effectiveness of the cache,
    but can reduce app concurrency as only one instance of an entity bean can exist
    inside the server, and access to it is serialised at the txn level.
    You can't use db-is-shared = false in a cluster. So Exclusive mode is less useful.
    That's when you think long and hard about Tangosol Coherence (http://www.tangosol.com)
    4. If include-updates is true, then the cache is flushed to the db before every
    non-findByPrimaryKey() finder call so the finder (which always hits the db) will
    get the latest bean values. This overrides a true setting of delay-updates-until-end-of-tx.
    The max-beans-in-cache setting refers to the maximum number of active beans (really
    beans that have been returned by a finder in a txn that hasn't committed). This
    wasn't checked in SP2 (we have an app that accidently loads 30,000 beans in a
    txn with a max-beans-in-cache of 3,000. Slow, but it works, showing 3,000 active
    beans, and 27,000 passivated ones...).
    This setting is checked in SP5, but I don't know about SP4. So you do need to
    size appropriately.
    In summary:
    - The cache isn't nearly as useful as you'd like. You get far more db activity
    with entity beans than you'd like (too many ejbLoads()). This is disappointing.
    - findByPrimaryKey() finders can use the cache. How long the cache is kept around
    depends on concurrency-strategy.
    - findByAnythingElse() finders always hit the db.
    WebLogic 8 tidies all this up a bit with a cache-between-transactions setting
    and optimistic locking. But I believe findByAnythingElse() finders still have
    to hit the db - ejbql is never run against the cache, but is always converted
    to SQL and run against the db.
    Hope this is of some help - feel free to email me at simon-dot-spruzen-at-rbos-dot-com
    (you get the idea!)
    simon.

  • Simple Java question about releasing beans from memory

    Hi,
    I use many beans in my app. Is there a way to release them from memory, or destroy the object. I feel that its possibly eating my memory up over time. Most of my beans are in page scope. Some are in session scope. So the page scope ones should kill them at the end of execution of the page and the session ones should delete the object from memory when at the last page of the app where session is no longer needed.
    Someone mentioed System.exit(1); but I have not found any clear documentation that this will free up the memory that it has used.
    Thanks for your time. It is appreciated.

    There is no way to explicitly force the memory to be released. The JVM garbage collection will take care of it when more memory is required. The programmer's responsibility is to ensure that there are no remaining references to the object. System.exit() ends the JVM so you do not want to use that. You can call System.gc() to request that garbage collection runs, but the JVM does not guarantee that it will.

  • Very Basic Question about Entity Beans !!!  Need your help.

    Hi,
    I have the following requirement:-
    ==============================
    There is an application A, whose multiple instances can run
    at the same time. There is some data/variable which is to be
    globally shared (i.e by all the instances). I have thought of using
    Entity Beans and putting that data in a single record in DB.
    Approach A:-
    ~~~~~~~~~~~
    Instance 1 of A (with Entity Bean ) -
    -> Database (only 1 row exist)
    Instance 2 of A (with Entity Bean ) -
    Approach B:-
    ~~~~~~~~~~~
    Instance 1 of A
    -> Entity Bean -> Database (only 1 row exist)
    Instance 2 of A
    My Query is:-
    1) In Approach A, both the instances of Application
    have their own Entity Bean (running in same JVM as them,
    packaged with Application)..Now both the entity bean instances
    represent 1 row on Database...At one time only 1 Entity bean
    will be performing the operation (read/write, other will be
    disallowed).
    2) In Approach B, both the instances of application(or Client) using
    the same Entity Bean - which is representing 1 row of Database
    Which is correct....I have read somewhere instance of Entity Bean
    corresponds to 1 row of database....If that is the case, Approach
    A would be wrong..
    Please help.

    1 Entity bean for 1 row is not true. An entity bean can represent data from multiple tables also. The correct statement is 1Entitybean for 1 resultset.
    So in case 1, u have 2 instances of Application running so it should not be an issue.

  • Basic question about Entity Bean.

    Hi:
    Let's suppose that we have the code like below:
         home = (ProductHome)javax.rmi.PortableRemoteObject.narrow(ctx.lookup("ProductHome"),
    ProductHome.class);
         home.create("mouse");
         home.create("keyboard");
         home.create("monitor");
         home.create("mainboard");
    Q1: Does the weblogic hold the four instances of Product Bean after run those
    code?
    Q2: When do the instances will be backed to pool or be destoryed?
    Q3: Does the weblogic will ready all beans if client execute home.findByALL().
    (findByAll method return all product), that will consume a lot of memory if there
    is a mass of client do that?
    Regards!
    Eric Temel

    "Michael Jouravlev" <[email protected]> wrote in message
    news:[email protected]..
    >
    "Eric Temel" <[email protected]> wrote in message
    news:[email protected]..
    Q3: Does the weblogic will ready all beans if client executehome.findByALL().
    (findByAll method return all product), that will consume a lot of memoryif there
    is a mass of client do that?WL has a setting which allows you to find a bean without loading it.Search
    docs.
    ah, good point. To be redundant, even though the beans are found and not
    loaded (via the finders-load-bean DD setting which I think we're referring
    to),
    the 'found' but unloaded beans will still take up a some room in the entity
    bean cache.
    Something to keep in mind if memory is an issue..
    -thorick

  • Question about java bean

    Hi All,
    can anyone tell me those all clients share the same java bean??

    Generally the answer is: depends :-) What's your context?
    Greetings
    Jeanette
    PS: did you solve your problem with the lost relationship table in 1:* cmp managed EntityBeans with the j2ee RI? Sorry to bother you - but I would like to know a solution if possible

  • JSF Backing bean / JSP interaction questions

    A few questions about JSF beans and JSP page interactions. Bear in mind that I'm new to both JSP and JSF, so a solution that might be obvious to the rest of the world may be new to me.
    1. Can I pass a parameter to the backing bean method from an "action" attribute:
    <h:commandLink action="#{TableData.SortRec}">
    <h:outputText value="#{msgs.selectedHeader}"/>
    </h:commandLink>
    I'd like to call the same method from several controls, but pass it a parameter to determine which field to sort on.
    2) Is there a way for a backing bean method to determine which control invoked it?
    3) Is there a way to access JSF backing bean methods from JSP tags. I'd like to do some conditional page assembly based on a JSF bean property... JSF doesn't appear to have a conditional like JSP's <c:if>, but I could use JSP's if it could access the JSF bean.

    Could you pl tell me how to pass parameter thru CommandButton
    I have the following situation
    1) greetingList.faces which list the Ids & greeting Text
    Id Text
    1 Hello World
    2 Hello World
    2) Pl note Ids are h:commandLink. A click on the Id will render greetingForm.faces with data pertaining to that Id and with Update h:CommandButton
    3) When i click Update button it results in the following error
    javax.faces.FacesException: Error calling action method of component with id greetingForm:_id4
    Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{greetingForm.update}
    Caused by: java.lang.NullPointerException
    So i verified with h:message that Id is passed as Null when click on Update button. I also checked greetingForm.faces has a not null value by printing <h:outputText value="#{greetingForm.message.id}"/>
    So i guess the Id value is overwriteen with null. Also i have defined Id as property in managed bean
    <managed-bean-name>greetingForm</managed-bean-name>
    <managed-bean-class>com.mycompany.GreetingForm</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>id</property-name>
    <value>#{param.id}</value>
    </managed-property>
    Any pointers/suggestions at the earliest on how to pass the value of Id on a click of update button from greetingForm.faces to greetingForm.java will be highly appreciated
    I am willing to upload my war file
    Regards
    Bansi

  • PLZ Help: how to get value of a request scoped Bean/Attribute in JSF ?!!!

    hi,
    I noticed this part of code to retrieve session scoped beans/vars in an ActionListener or other jsf classes, but it does not work for request scoped beans/vars :( what's the problem then ? what shall i do ?
    Type var = (Type)Util.getValueBinding("myBeanInRequest")).getValue(context);
    I have also set that getPhaseId() returns UPDATE_MODEL_VALUES or APPLY_REQUEST_VALUES.
    Any comment or idea ?

    I have declared my Bean in my JSP page not in the
    faces-config.xml. Does this make any problem ? Also I
    have tried the way you told me as well, but still the
    returned attribute is null.
    P.S. My bean is declared in my JSP page this way:
    <jsp:useBean id="newSurveyVar" class="SurveyModel"
    scope="request" />
    This declaration causes the SurveyModel instance to be created in request scope when the page is rendered, but that doesn't help you when the form is submitted -- that is going to happen on the next request (so the request attribute created here goes away). Basically, <jsp:useBean> is not typically going to be useful for request scope attributes (it's ok for session or application scope, though).
    and further I have this jsf code:
    <h:command_button label="Create" commandName="create"
    action="create" >
    <f:action_listener
    r type="CreateNewSurveyActionListener"/>
    </h:command_button>
    and this is my
    CreateNewSurveyActionListener.processAction(ActionEvent
    e) {
    if (actionCommand.equals("create_the_survey")) {
    FacesContext context =
    t = FacesContext.getCurrentInstance();
    SurveyModel survey =
    y =
    (SurveyModel)(Util.getValueBinding("newSurveyVar")).get
    alue(context);
    if (survey==null) // returns true :(((
    And since I've declared my beans here there is nothing
    special declared in my faces-config.xml
    For me again it is really strange why it is not
    working !!!
    Any idea ? Because the event listener is fired in a separate request, so the one you created in the page is gone.
    This is why the managed bean creation facility was created. If your component contains a valueRef that points at the bean name (or you evaluate a ValueBinding as illustrated earlier in the responses to your question), then the bean will get instantiated during the processing of the form submit.
    Craig McClanahan

  • Entity beans storing client callbacks...how?

    Ok, here's my situation. Multiple clients might be modifying the same entity bean so I have implemented client callbacks. A client registers a callback with the bean, and the bean will call it back when someone modifies the beans data.
    Now my question is entity beans can be removed by the container for various reasons, so how can I have the bean save the callback so when the container reloads the bean it reloads the callbacks? How do you store a callback to a database?
    Thanks,
    Jeff Plummer

    Shaft, let's look at it this way.
    How do you register a client as a callback? Anything "sent" to the EntityBean is serialized. That means when the EntityBean receives the information, it is not the same instance as your client class. Ergo, the "callback" method would operate only on the local instance the EntityBean has at the time, not the one on your client side.
    Now, as for the differences of "state." Yes, the EntityBean persists state as represented by the persistence store (e.g. a row in a table in database). However, in order to register an Object as you would for a callback, then the EntityBean must maintain a reference to that Object - which it can't because the only information that an EntityBean can maintain is that of the persistent store. Only static final Objects are allowed (ones that cannot change during the lifetime of an instance of the EntityBean). Even if you managed to circumvent this restriction, then you have to figure out how all of the EntityBeans would have exactly the same Object references for the callback objects.
    The only way to do what you want is to make it a "non-reference" type of relationship. Which means some sort of message-based system. If you use a JMS Topic, you can get a "broadcast" type of notification out to all your clients and, while there is a bit of a performance trade-off, it's a solution that will work.
    Finally, if there's "tons of data," you might want to go back and look at your Use Case(s) and determine if you really should be using EntityBeans anyway. EntityBeans are great stuff - when used in the right situations.

  • JavaBean Models, Command Bean and J2EE Design Pattern

    Hello,
    I have read the available "How To", “Using EJBs in Web Dynpro Applications” where the author mentions that one should use a Command Bean (according to J2EE Design Patterns) so that one can invoke business methods in a Session Bean from our Web Dynpro Application. Well, although, I have read some available articles in the internet about J2EE design patterns, I still have some questions about command beans and its usage in Web Dynpro applications.
    I have developed a WD App which uses EJBs to read data from the DB.
    Let's suppose I only have two tables: BOOKS and AUTHORS.
    Let’s also suppose I have to Entity Beans (one for each table) and a Session Bean with two methods: Book[] getAllBooks() and Author[] getAllAuthors();
    I also have a Command Bean which I imported in my WD App.
    My questions are:
    How should I design my Command Bean?
    Can I have only one Command Bean with two methods each calling one of the methods of the Session Bean?
    Or instead should I design two Command Beans, one for each call?
    In the last case do the methods must be named <b>execute</b> or can I name them whatever I want?
    Furthermore, how should I store the data in my command bean? In instance variables?
    If so, can I use array of a class representing a record in the database table (for instance, classes Book and Author) or do I have to store the data in a generic collection (such as ArrayList for instance)?
    I ask this last question because if I try to store the data in an array when I am importing the Command Bean as a JavaBean model I always get an error.
    One last question: Can the Command Bean execute method directly return the data or should I always store the data in an instance variable an then get it using getter methods?
    I know this questions are more about J2EE Design Patterns and JavaBeans specification than they are about Web Dynpro but I also have doubts about the rules that the command bean must obey in order to accomplish a successful JavaBean model import in WD.
    Some guidance or tips would be highly appreciated.
    King Regards

    I have the same problem.
    Does anyone know the solution?
    Thanks
    Davide

  • Location of a bean

    Hi
    I have a basic question about java beans.
    I have created a bean class.
    I use that bean class in one of my jsp pages, where is the bean object created ? on the server or the client.....
    The reason I ask this question is, I have a database and i get a list of data from the database( required for all users) what i want to figure out is if i can make a vector as a static object in the bean class and populate that vector from the database only once, this way i can save multiple access to the database and also save memory in case this bean is located on the server.
    thanx
    deepak

    I use that bean class in one of my jsp pages, where is the bean object
    created ? on the server or the client.....Take a look at the acronym. JSP: Java server pages.
    With JSP everything java related is on the server. As far as the client is concerned, it just gets back an html page (possibly with javascript in it)
    i get a list of data from the database( required for all users) Sounds like you want to have your bean/list in application scope.
    Application scope relates to the ServletContext attributes.
    Application scope attributes are shared/accessible to all users of a web app.
    // store the data
    List myData = getMyDataFromWhereever();
    ServletContext application = getServletConfig().getServletContext();
    application.setAttribute("myGlobalData", myData);
    // retrieving it
    <jsp:useBean name="myGlobalData" class="java.util.List"/>
    // or
    List myData = (List) application.getAttribute("myGlobalData");Cheers,
    evnafets

  • Java bean + Map Tile Server

    We have Oracle 10g Release 2 And AS + Mapviewer Patch 4.
    Question:
    Is Java bean based API can use map tile server, i. e. to fetch tile from cache of Map Tile Server?
    Why i asking?
    We use function addMapCacheTheme, and mapviewer takes pic from the Map Tile Layer.
    In user guide no ever mention about this functions and about ability of java bean to use Map Tile Server.

    You can find a sample Java Swing application that does just that on my blog here:
    http://oraclemaps.blogspot.com/2008/09/displaying-map-tiles-in-your-java-swing.html
    It contains full source code and can be easily configured to display map tiles from any MapViewer instance.
    thanks

  • Bean exception handling

    Hello,
    I have a question concerning the bean exception handling. If I'd like to use a DB-connection inside a bean, how to handle the SqlException to display a nice error message to the user (perhaps next to the submit-button or redirect to another site).
    Thx
    Stefan

    Thank you for the reply. That works fine but I wanted
    to avoid using Faces-code inside of the bean because
    of portability. Is there a possibility to throw an
    exception inside of a setter and catch it somewhere
    else to generate the FacesMessage there ?There are at least two ways to look at this.
    First, I've found that you often need one or more beans that ties the UI to the backend. For instance, my backend bean may have a method for saving itself to a database, but that method most likely doesn't return a String, as an "action method" must. I also often need a bean to hold UI values that are pure UI artifacts rather than backend values, say a filter criteria for a database search. In this type of bean (I call them "glue beans", others call them "backing bean" or "code behind file") I don't mind having JSF code, so my original suggestion applies to this type of bean rather than to the real backend beans.
    Second, in an application where you can bind the JSF components directly to backend bean properties and methods, you can set up an error handler in the web.xml file that displays a nice error message and logs details about the problem for further analysis.
    Hans Bergsten (EG member)

  • A auik question

    HI
    I'm new to J2EE. I had a question which session bean is faster or which one is better, Stateless or Statefull.I don't know if it might be 2 diff questions.
    plz comment

    The question isn't whether one is faster or better, but which is appropriate
    http://www-106.ibm.com/developerworks/websphere/library/techarticles/0008_brown/0008_brown.html

  • Multiple RowSets in a Web Bean

    Hello and thank you all for all the help earlier. :)
    I have a question concerning Web Beans. Each web bean is initialized through a JSP page. So far I've only been able to use one view object for each web bean. My problem is that I have data that I've picked up from one view object that I wish to insert in another.
    I can't figure out though how to do this. I made it one time using static variables which was a solution I disliked a lot. This problem is appearing over and over again. There must be a simple way to do this...
    I was thinking in the lines of using multiple view objects for a web bean, but I'm not sure if that's even possible. With static variables I could first initialize the web bean with one view object, put my data in the static variables, exit to the JSP page and reentering with a new view object initialized.
    There must be an easier and smarter way for this... ;)
    Any ideas, anyone?
    /Janne
    null

    Yes, it's true that you can only use one view object for each web bean. You can have multiple web beans per JSP, but I'm not sure that solves your problem.
    For example, I have a 'reporting' application with a JSP page that displays some dynamic LOVs and text fields for the user to enter their search criteria. When they submit that JSP form, another JSP is called.
    This second 'processing' JSP includes several web beans. The first is a custom web bean to do some date calculations and set some session parameters, the next is a RowSetNavigator which takes the data from the form fields, does some analysis and builds up a where clause for the report query, the next are more custom beans that print out a dynamic title and some other information to the browser, the last prints the report results itself.
    This allows me to do both data processing and report printing all in one JSP page. But again, I'm not sure this serves your needs.
    Another approach is to create a custom web bean, and initialize the 'second' view object in that web bean. I've included a code sample below:
    Here is the JSP usebean tag. I take a parameter from a form, and pass that to the render method of my custom web bean:
    <jsp:useBean class="wt_bc.staticWalkthruBean" id="swb" scope="request" >
    <%
    // get presentation name parameter
    String p = request.getParameter("p");
    swb.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtinfoView");
    swb.render(p);
    %>
    </jsp:useBean>
    Here is the content of the custom web bean, sorry the formatting doesn't work great in this forum. In this particular example, I am setting a where clause, executing a query and printing the online walkthrough to a static HTML file on the file system (I have a different bean for doing the printing). Obviously you'd have to modify your bean to do the inserts, etc.:
    package wt_bc;
    import java.io.*;
    import oracle.jbo.*;
    import oracle.jdeveloper.html.*;
    public class staticWalkthruBean extends oracle.jdeveloper.html.DataWebBeanImpl {
    public void render(String p) {
    try
    // set up the print bean
    wt_bc.printStaticHTMLBean wtb;
    wtb = new wt_bc.printStaticHTMLBean();
    // print one or all walkthroughs ?
    if (p.equals("all")) {
    int i;
    Row[] rows;
    // use a RowSetNavigator to loop // through each presname in //wtinfoView
    oracle.jbo.html.databeans.RowsetNavigator rsn;
    rsn = (oracle.jbo.html.databeans.RowsetNavigator) new oracle.jbo.html.databeans.RowsetNavigator();
    rsn.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtinfoView");
    rsn.getRowSet().getViewObject().executeQuery();
    rsn.getRowSet().first();
    rows = rsn.getRowSet().getViewObject().getAllRowsInRange();
    //This loop iterates through each //presentation
    for(i = 0 ; i < rows.length; i++)
    // get variable values from the // session
    String pn = rows.getAttribute( 0 ).toString();
    String theclause = "presname = '" + pn + "'";
    // initialize the view object we // will use to print, exeucte the // query and render the pages
    wtb.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView"); wtb.getRowSet().getViewObject().setWhereClause(theclause); wtb.getRowSet().getViewObject().executeQuery();
    wtb.getRowSet().first(); wtb.render(pn);
    }// end for loop
    else {
    // just printing one walkthrough
    String theclause = "presname = '" + p + "'";
    // initialize the view object
    //exeucte the query and render the //pages
    wtb.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView"); wtb.getRowSet().getViewObject().setWhereClause(theclause); wtb.getRowSet().getViewObject().executeQuery();
    wtb.getRowSet().first(); wtb.render(p);
    }// end if p=all
    } catch(Exception ex)
    throw new RuntimeException(ex.getMessage());
    null

Maybe you are looking for

  • What's the best way to determine which row a user clicked on via a link?

    Hello. Probably simple question, but my googleing is failing me. I have a table, with a column that is a command link. How can I determine which row the user clicked on? I need to take that value, and pass it to a different page to bind it for a diff

  • IE displaces caption when href="javascript:openWin('name of file')"

    I have a row of images of varying height, aligned along the bottom by placing them in absolutely placed div boxes.  Below each image (in its nested Div boxes) I have a caption.  When that caption is linked to a plain href all is fine, but when href="

  • %INCREASENO% in OUTPUTNO and ACT_FILE_NO

    Hi experts, When I want to use process chain for Load transactional data from BI Infoprovider there are some variables I cannot understand and could not find any documentation about them. INFO(%TEMPNO1%,%INCREASENO%) INFO(%ACTNO%,%INCREASENO%) TASK(/

  • Please Suggest - new java.text.DecimalFormat Question

    table2.setValueAt( "$"+new java.text.DecimalFormat("#.##").format     ((Double.valueOf(table2.getValueAt(row,1).toString())).doubleValue())*     ((Double.valueOf(table2.getValueAt(row,2).toString())).doubleValue()) row, 3 );Is there a way to force De

  • Problems importing Mails from OSX 10.3.9

    Hi there, today I updated to Mac OSX 10.4 from 10.3 When starting Mail under 10.4 for the first time it imported the mails from the previous Mail-Version (10.3). Unfortunately nearly all the mails that where in the Inbox of the old Mail Version are g