The best way to implement business logic to a .JSP ?

Hi experts,
I want to implement some business logic to a .JSP file wich is in my modified
<b>com.xxxNew.portal.usermanagement.admin.pa</b>r file!
For examle creating different roles for useres by registration dependently what they inseret in the registration.jsp!
What is the best way to do this? I have tried out to create a stateless session bean for this. Is this the right way?
Can someone give me information how can I access this bean from my JSP (.par file) and how can I upload it to the portal?

Hi,
Here is the document about Calling J2EE Applications from Portal Applications:
http://help.sap.com/saphelp_nw70/helpdata/en/42/9ddf20bb211d72e10000000a1553f6/frameset.htm
So in your JSP do the lookup of your EJB.
I do not think using EJB at this level is really good, as you do not deal with DB, security and transactions in your code.
http://www.jguru.com/faq/view.jsp?EID=126400
Why not just use a portal component like JSPDynpage for this purpose?
Greetings,
Praveen Gudapati

Similar Messages

  • Where is the best place to implement business logic in ADF application?

    I am using jdeveloper 11g R2 , JSF Facelet
    Where is the best place to implement business logic in ADF application?
    I mean something like service layer in Spring
    Appreciate your comments
    Regards
    Mohsen

    Depends on what your logic does and what data it deals with, but in general business logic is in the ADF BC layer.
    Some goes into entity objects - for things like attribute or row validation.
    Some goes into view objects - for things like calculation.
    Some goes into AM - for things like service methods for UI clients.

  • What is the best way to create business documents in CRM

    Hi All,
    What is the best way to create business documents like contract, sales order, debit memo etc in CRM ? Unlike R3 we can't use our good old BDC with recording. Moreover for most of them although there are Business Object but no BAPI to creation so what is the way ? I found in SDN there are two MAGIC Function module CRMXIF_ORDER_SAVE. Do I need to that alawys ?
    Is it nees to via IDoc and cannot be done just by calling from ABAP program ? The input parameter of the FM is a complex deep structure.
    Please help.

    Ashim,
    Try looking at the program:
    CRM_TEST_ORDER_MAINTAIN
    I think that should help you figure out the parameters.
    Good luck,
    Stephen

  • What is the best way to implement a cluster-wide object ID generator?

    What is the best way to implement a cluster-wide object ID generator?

    What is the best way to implement a cluster-wide
    object ID generator?Always use 3 because it is prime.
    Alternatively more information about the system and the needs of the system might prompt alternative ideas some of which are likely to be better than others for your particular implementation and system constraints.

  • What is the best way to implement Carousel i.e. web part in a site page on office 365 site?

    We can implement the Carousel web part in many ways like content By Query Web Part , jquery (nivo) plugin or content search web part etc. But among these which one is the best way to implement to get best performance of the page?
    Thanks

    content search web part always provides best performance because it uses the search. only consideration you need to take is, it does not display the changes immediately and you need to wait for the incremental crawl to happen.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • What is the best way to implement writable many-to-many relations

    As everyone knows, the many-to-many associations provided by BC4J are quite good to read many-to-many associations, but they are not able to write such associations.
    There are other solutions using composite associations or cascading-delete foreign keys, but as I was tought now, they are also quite problematic. See thread Internal error: Entity.afterRollback.status_dead   -- What does this mean? for more details.
    So I ask you: What is the best way to implement writable many to many associations? Do you really have to manage them "by hand"?
    Thanks for your ideas
    Frank

    I'd appreciate any hint
    Thanks

  • What is the best way to implement Spiceworks and get started?

    Yes this is the most basic question of all, how do you use it?I did search for some articles but there are tutorials that are 6 years old, or maybe a year or two old. I want to make sure I'm up to date on best practice.I've got a network of 8 PCs and 6 laptops or so as well as phones and tablets (if SW cares).I've got this community user which I created long ago when I first tried to test SW.My question is, what is the best way to get SW going? I mean, do I create a new user that is specific to the company? Is the community user different from the SW admin user? I want to separate my community user (which is me personally) from any local business/network implementation of SW.Do I need a server to run this or is something run on each workstation? Does each computer need something done to it so SW can work right?Basically I just need to...
    This topic first appeared in the Spiceworks Community

    In Settings tap on Reset at the bottom then tap on Erase all Content and Settings. This returns it to the condition of being "new."

  • Best way to structure Business Logic

    Hi Experts,
    I am using Web Dynpro for my front-end and application services for the back-end. Which of these is the recommended way to structure the layout of my business logic:
    1) Keep everything in the 'src' folder of the CAF ejbmodule. Structure through the use of packages.
    2) Create an external Java DC, keep all code in there and call the code from the application services. Structure code through both packages and the use of multiple DCs.
    3) Create a child Java DC in the CAF ejbmodule project, keep the code there. Structure code through both packages and the use of multiple DCs.
    4) Some other way which I do not know of???
    I think that (2) is the best way to to this, but I'm not sure and I also don't know how to make the code in the Java DC accessible from the CAF in 7.1. In 7.0 one was required to assemble the Java DC into a J2EE Server Library project and then create the required dependencies. How does this work in 7.1?
    Thanks,
    JP

    Hi JP,
    > When you refer to "regular reference stuff" I take it
    > you mean the application/library references in your
    > 'application-j2ee-engine.xml' file?
    Correct.
    > Is there an easy way to discover which
    > application/library to reference, for example, if I
    > wanted to make use of 'com.sap.security.api.IUser'?
    >
    > It was always very difficult to find the correct DC
    > containing the required classes in 7.0 (usually one
    > had to use a JAR class finder). Is there an easier
    > way in 7.1?
    Hmm, I guess it would be a rather tough task to have a mapping between all classes (or even packages) and DCs. However it should be fairly intuitive to infer the DC from the class / package name. If still in doubt, you can search for its usage on help.sap.com - most probably you'll find the DC name as well therein.
    > Finally, how about Web Dynpro classes (like
    > com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser
    > ): I'm not sure if it will ever be necessary, but can
    > they be accessed from Java DCs?
    According to the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/javadocs">NW public javadocs</a>, the classes in the com.sap.tc.webdynpro.* packages are "Services in the Web Dynpro runtime environment that can be called by custom coding in Web Dynpro applications", so they're not intended for general use in any type of app.
    HTH!
    -- Vladimir

  • What's the best way to (re)install Logic Studio? Need Help.

    I bought Logic Studio a few months ago and installed it on my new MacBook Pro 2.4Ghz with 2G Ram, 160G hard drive @ 7200 rpm. Being new to Logic, at install, I just put all 40+ gigs of content on the computer. After a while I considered putting the Apple Loops (roughly 12gigs) onto an external hard drive to save space on my computer, just to see if it would work, then consider moving more content over later. After doing this the Logic application couldn't find the Apple Loops, and I couldn't find a way to help it see the new path, so my Apple Loops were essentially rendered useless (since I had already deleted them from the computer). So I stopped right there, and haven't done anything else. Just worked with Logic without using Loops, which I have to say is still an incredible program.
    What also seemed strange was this: In moving the Apple Loops, the available disk space on the computer didn't seem to change much. It went down a few gigs, but not the 12 or so I was expecting. Not sure why that is. It seems like Logic and all the content is actually taking up around 50 gigs or so on my computer (and the Apple Loops are supposedly gone or not available). What is that about?
    Feeling like I had really fouled things up, I called Apple Care. They said that the content of Logic is stored in many places in the computer's libraries and system folders, but it was really confusing trying to locate all of it, because the info they sent was from Logic 7 and older versions of GarageBand. I guess Logic 8 is too new for them to have anything on it. There is no uninstall for Logic Studio. But they strongly recommended that I perform an Erase and Install, and then re-install all my software including Logic, and then assign the hard drive I wanted the content in. That would open up a lot of the computer's hard drive space, they said. It seemed like an extreme measure to take for such a small blunder, and I haven't tried it yet, but will if it's the best option.
    If I do this, is running Logic content (i.e. Loops, Impulse Responses, Jam Packs, etc.) from an external hard drive (and the one I have to use is 5400rpm--is that too slow or am I getting too picky?) the best way to go, or should I have all Logic material coming from the same machine? How do I get some of my hard drive space back?
    Ugh.
    Has anyone out there experienced this too? Is there anything documented about where the content is stored for Logic Studio? Is Erase and Install really the best thing to do in this situation?
    So many questions...
    Thanks.

    Hey Blue,
    Let me see if I can help you a bit.
    Logic Studio has 28+ gb of loops. Almost 23 for STP and 6 for the Jam Packs, etc. They should be located in /Library/Audio/Apple Loops/Apple (that's the default install loc.). Copy them to an external drive and then delete them from your main drive. Go to /Library/Audio/Apple Loops Indexes and delete those text files. Now go to /Library/Preferences/Soundtrack Pro and delete those text files, too (more Loop Indexes).
    Now open Logic Pro and it will say 'No Apple Loops found'. Click 'OK' and then open your Loop Browser. Drag all the Jam Pack folders, STP folder, etc. that you want to use onto the Loop Browser. Logic will ask you if you want to 'Copy to Loops Folder' or 'Current Location'. Choose 'Current Location'. Logic will now index the loop folders.
    NOTE: You can change the names of the folders to suit your liking. For example: I added the 2, 3, 4, 5 after the Jam Pack names to make it look smoother on the popup menu and changed iLife Sound Effects to Sound Effects - iLife and Apple Loops for STP to STP. Now the Jam Packs 1-5 come up first on the popup menu and the FX stay at the bottom. I likee!!
    Now, if you like you can take your EXS Factory Samples and Ultrabeat Samples, 3.35 & .889 gb respectively, and copy them to an external drive. I have mine in the same place as my Jam Packs, etc. You can find these files in /Library/Application Support/Logic. Toss out the originals and put ALIASES from the external drive back into the /Lib/App Sup/Logic folder.
    Also, if you open STP and click the Search tab in the right pane you will see a button that says 'Setup' next to it. Click that and you can use the checkboxes in the window to activate/deactivate any of the loop folders available.
    A clean install is the best IMO if you have a little time because a) you DO NOT have to install GB at all (that saves the .aif file size - Logic Studio uses .caf files at half the size of the originals) b) Logic Studio will install the extra GB or Logic 7 content if you need it at it's reduced size. It will basically get rid of all the old clutter that you do not need. Only install what JP's you want and move the bigger stuff to an external.
    Rock up Logic and it should all be in place. That procedure saved me 32.5 gb on my main drive.
    NOTE #2: You have another 12 gb (if you installed all Jam Packs) that reside in the /Library/Application Support/GarageBand/Instrument Library/Sampler. These are the Jam Pack Instruments & Sampler files for World, Symphony, etc. They cannot be moved from the startup HD (as far as I can tell). So keep that in mind if you don't want a certain JP.
    Hope that helps,
    Dave

  • What is the best way to implement default values stored in a DB table?

    [JHeadstart 10.1.3 build 78]
    [JDeveloper 10.1.3 SU4]
    We are struggling on how to best implement default values that are stored in a DB table. What we have is a database table with (CODE_TYPE, TABLE_NAME, COLUMN_NAME, DEFAULT_VALUE) as columns. This way the application administrator can administer default values himself/herself. Now we need to find the best way to set these table supplied default values in new rows. Globally we are aware of two ways:
    - override create() method on VO
    - probably create a View Object on top of the database table with default values (we are capable of transposing the table and return exactly one row with a column for each default value) and use JHeadstarts item property 'Default Value'.
    We prefer the latter, since this is more declarative, however we struggle with the EL expression needed to indicate the default value.
    If we have a VO named "DefaultValues" with a SELECT on a view on top of our database table (transposed) returning exactly one row, let us say:
    SELECT orglanguage, orgtype, orgstatus [...]
    FROM v_default_values
    --> returning exactly one row
    and we want an EL expression on an item that needs the value from orglanguage. What will the EL expression be? Something like:
    #{data.DefaultValuesPageDef.currentrow.orglanguage.inputValue}? We tried several things but they do not work. A static default value works, but every EL expression so far does not. We know that using "data" can be dangerous, but thought JHeadstart takes care of preparing the other Page Definitions, so it might be possible when you use JHeadstart.
    Or is overriding the create() method the preferred way? Or do we have to look at a Managed Bean for our default values that we refer to from EL (let us say MyAppDefaultValuesBean) and in that case: how do you associate a Managed Bean with a VO?
    Any help would be appreciated. Apart from these default values, things are going rather well in this first J2EE/JHS project for us!
    Toine

    Steven,
    Thanks for the reply. Unfortunately whatever we try, we cannot get it to work. We started looking at the second option (since we do need default values also in table lay-out new rows). We created a DefaultValues ViewObject, added it to the Application Module, added an EL expressiona to the Default Display Value property (replacing your ending ")" with a "}" offcourse ;-)), ran the JAG so that a page definition was generated for DefaultValues and we managed to get it prepared when loading for example the Organisation's jspx page. However no default value appears in a new row (not in Form, not in Table layout).
    I then created a quick application on top of the HR schema, added a DefaultValues ViewObject using one calculated attribute (set Salary fixed to 1000), added the EL expression to the Salary Default Display Value property in the Employees Group, made sure the DefaultValuesPageDef is prepared by adding it to the parameter section and I see it getting prepared. I also see a managed Bean is created in the Employees-bean.xml.
    In the Embedded OC4J log we see:
    16:01:01 DEBUG (JhsPageLifecycle) -executing onCreate
    16:01:01 DEBUG (JhsPageLifecycle) -CreateEmployeesDefaultValues bean found, applying default values to new row
    2006-08-02 16:01:01.825 WARNING [ADFc] Warning: No Method onCreateEmployees and no actionBinding CreateEmployees found.
    Is it this warning we should be worried about? Since no default value is created.
    The managed bean (Employees-beans.xml) looks like:
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>CreateEmployeesDefaultValues</managed-bean-name>
    <managed-bean-class>oracle.jheadstart.controller.jsf.bean.DefaultValuesBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>iteratorBinding</property-name>
    <value>#{bindings.EmployeesIterator}</value>
    </managed-property>
    <managed-property>
    <property-name>defaultValues</property-name>
    <map-entries>
    <map-entry>
    <key>Salary</key>
    <value>#{data.DefaultValuesPageDef.DefaultValuesIterator.currentRow.Salary}</value>
    </map-entry>
    </map-entries>
    </managed-property>
    <managed-property>
    <property-name>actionResult</property-name>
    <value>CreateEmployees</value>
    </managed-property>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>searchEmployees</managed-bean-name>
    <managed-bean-class>oracle.jheadstart.controller.jsf.bean.JhsSearchBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{data.EmployeesPageDef}</value>
    </managed-property>
    <managed-property>
    <property-name>searchBinding</property-name>
    <value>#{data.EmployeesPageDef.advancedSearchEmployees}</value>
    </managed-property>
    <managed-property>
    <property-name>searchAttribute</property-name>
    <value>EmployeeId</value>
    </managed-property>
    <managed-property>
    <property-name>dataCollection</property-name>
    <value>EmployeesView1</value>
    </managed-property>
    <managed-property>
    <property-name>autoquery</property-name>
    <value>true</value>
    </managed-property>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>EmployeesCollectionModel</managed-bean-name>
    <managed-bean-class>oracle.jheadstart.controller.jsf.bean.JhsCollectionModel</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>jhsPageLifecycle</property-name>
    <value>#{jhsPageLifecycle}</value>
    </managed-property>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    <managed-property>
    <property-name>rangeBinding</property-name>
    <value>#{bindings.EmployeesTable}</value>
    </managed-property>
    <managed-property>
    <property-name>defaultValues</property-name>
    <value>#{CreateEmployeesDefaultValues.defaultValues}</value>
    </managed-property>
    </managed-bean>
    </faces-config>
    This is the DefaultValues.xml:
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <ViewObject
    Name="DefaultValues"
    BindingStyle="OracleName"
    CustomQuery="true"
    ComponentClass="hr.model.DefaultValuesImpl"
    UseGlueCode="false" >
    <DesignTime>
    <Attr Name="_version" Value="10.1.3.36.73" />
    <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess" />
    </DesignTime>
    <ViewAttribute
    Name="Salary"
    IsUpdateable="false"
    IsPersistent="false"
    Precision="255"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="SALARY"
    Expression="1000"
    SQLType="VARCHAR" >
    </ViewAttribute>
    </ViewObject>
    The PageDef for Defaultvalues is like:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.36.73" id="DefaultValuesPageDef"
    Package="hr.view.pagedefs" EnableTokenValidation="false">
    <parameters/>
    <executables>
    <iterator id="DefaultValuesIterator"
    Binds="AppModuleDataControl.DefaultValues1"
    DataControl="AppModuleDataControl" RangeSize="10"/>
    </executables>
    <bindings>
    <attributeValues id="DefaultValuesSalary"
    IterBinding="DefaultValuesIterator">
    <AttrNames>
    <Item Value="Salary"/>
    </AttrNames>
    </attributeValues>
    <table id="DefaultValuesTable" IterBinding="DefaultValuesIterator">
    <AttrNames>
    <Item Value="Salary"/>
    </AttrNames>
    </table>
    <action id="FirstDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="12"/>
    <action id="PreviousDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="11"/>
    <action id="NextDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="10"/>
    <action id="LastDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="13"/>
    <methodAction RequiresUpdateModel="true" Action="999"
    id="advancedSearchDefaultValues"
    IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl"
    InstanceName="AppModuleDataControl.dataProvider"
    MethodName="advancedSearch"
    ReturnName="AppModuleDataControl.methodResults.AppModuleDataControl_dataProvider_advancedSearch_result"
    IsViewObjectMethod="false">
    <NamedData NDName="viewObjectUsage"
    NDValue="#{searchDefaultValues.dataCollection}"
    NDType="java.lang.String"/>
    <NamedData NDName="arguments" NDValue="#{searchDefaultValues.arguments}"
    NDType="java.util.ArrayList"/>
    <NamedData NDName="allConditionsMet"
    NDValue="#{searchDefaultValues.allConditionsMet}"
    NDType="java.lang.Boolean"/>
    </methodAction>
    <action id="setCurrentRowWithKeyDefaultValues"
    IterBinding="DefaultValuesIterator"
    InstanceName="AppModuleDataControl.DefaultValues1"
    DataControl="AppModuleDataControl" RequiresUpdateModel="false"
    Action="96">
    <NamedData NDName="rowKeyStr" NDValue="#{row.rowKeyStr}"
    NDType="java.lang.String"/>
    </action>
    <action id="CreateDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="40"/>
    <action id="DeleteDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="false"
    Action="30"/>
    <action id="Commit" RequiresUpdateModel="true" Action="100"
    DataControl="AppModuleDataControl"/>
    <action id="Rollback" RequiresUpdateModel="false" Action="101"
    DataControl="AppModuleDataControl"/>
    </bindings>
    </pageDefinition>
    We do not understand what is wrong and why the default values do not get created in the new rows (and it is taking us far too much time). Any chance the EL expression is still wrong? It is a shame that any syntax errors in EL expressions are not visible in some logfile. It looks like when EL expressions are wrong, they are ignored instead of raising an error...
    Toine

  • The best way to implement graphics for a monopoly game

    Hello,
    I am implementing the graphics for a simple Monopoly game. I am currently creating a subclass of Canvas for drawing the board but when I repaint the canvas multiple times, you can clearly see the canvas repaint (a white area quickly flashs up and disappears).
    What would be the best way to do the pieces moving? I thought of using the Graphic Layers Framework but I couldn't install it correctly and I would have to install it on every machine I run the game on.
    Thanks very much,
    Gary

    Without trying to patronise, I assume you are using Double Buffering?
    If not, that is what you need to do - draw the board offscreen, and once all the drawing operations have been completed, display this (fully drawn) image.
    Pete.

  • What is the best way to implement a scheduled task?

    Dear kind sirs...
    let us say I have a JSF application, and it is working perfectly fine...
    I need the method like
    void DoProcessing()
    *// processing code here*
    to execute everyday at 7AM...
    so what is the best way to do it? I need this to be part of the JSF application... not in a different process... and I want the method to execute at that exact time every day.
    and what are the main steps to do that?
    best regards

    Dear Mr. Chris...
    the reason I am asking about this is because we are required to provide reports for a number of customers by email every day... each report requires retrieving values from a DB.
    I made a test few hours ago about making a thread sleeps and check the time when it wakes up, it works, no problem about that...
    I placed a thread in the servlet context and started it... and it kept working for about an hour writing in the log every 5 seconds... so I guess the idea works...
    but do you think that this way of implementing the scheduler is ok? for I have not done it before and I don't know the cons of such a method.
    thanks for any advice or comment.
    best regards

  • What is the best way to include an xml file in JSP?

    I have a jsp page that I need to include an xml file. The xml file
              uses an xsl to render the file. What is the best way to include the
              xml file and still maintain the structure of the style sheet?
              Thanks
              Jennifer
              

              The best way is using the tag lib. If you cannot, but you can use JAXP, you can
              try
              javax.xml.transform.Transformer.transform(Source xmlSource,
              Result outputTarget)
              throws TransformerException
              You construct the transformer with you xsl, use you xml file or DOM to form xmlSource,
              and use JSPWriter "out" to form outputTarget (StreamResult). But if your JSP page
              generates the xml itself, tag lib is the only way.
              [email protected] (Jennifer) wrote:
              >[email protected] (Jennifer) wrote in message news:<[email protected]>...
              >> I have a jsp page that I need to include an xml file. The xml file
              >> uses an xsl to render the file. What is the best way to include the
              >> xml file and still maintain the structure of the style sheet?
              >>
              >> Thanks
              >>
              >> Jennifer
              >
              >Or is there a way to parse the xml file with the jsp page to display
              >the information. I cannot use the Java Standard Tag Libraries as the
              >version of iplanet we are running does not support the JSTL
              >
              >Thanks
              >
              >Jennifer
              

  • What's the best way to use business objet?

    Hi all,
    Anybody can explain what's the more efficient way to retrieve data from the database by using business objects?
    I would like to load business partners information, but I'm using SBob object and recordset and it is very slow...
    If anybody have a sample code to show me..
    Thanks

    Hey,
    Business Objects are best for templating and maintaining data integerty... I only use it for adding, updating, and deletions of BP's... As for retrieval, I believe, please someone correct me on this, but the Business object maintains a semi-connected state that allows for browsing through the data... So fliping and storing each BP could be slow as well... I am assuming that the only way to speed it up would be going direct to SQL or by using DI Server... Again, I am not confident on this so it would be best if someone could provide a second on this... Thanks
    Jeremy Adam

  • What is the best way to optimize database resources in a JSP centered webap

    hi, i am kindda i am new to jsp. so i make database connections on evry page.Assuming i am working on an app where there could be 300 concurrent users, what is the best approach for me to take?
    thanks
    obinna

    java_everywhere wrote:
    hi, i am kindda i am new to jsp. so i make database connections on evry page.JSP shouldn't have anything to do with database access. In any case, you shouldn't be connecting on every page either. You should be recycling connections via a pool.
    Assuming i am working on an app where there could be 300 concurrent users, what is the best approach for me to take?You will have to decide for yourself because we don't know what your app does, how much hardware you have, network latency, etc.

Maybe you are looking for