JSP & multiuser environment

What is the best way to ensure that 2 people won't have the same
record open simutaneously? (we use connection pooling, so you
cannot put a lock on the row).
We are experimenting with using application variables that gets
set to the rowid (or key of the row). If that application
variable exists, then the record is open. The problem is when a
session expires, the variable hangs around and produces
incorrect messages when that same record is opened.
I'd like to know if there is a better way of coding this...
Thanks.

Its bad because global variabels will be used and changed by different users at same time.
This will lead to variuos problem like user1 setting the variabel, user2 seting it , user1 using it with the value user2 set.

Similar Messages

  • JDeveloper installation on WindowsXP Multiuser environment

    Hello,
    I've got a problem installing JDEveloper 10.1.3.3.0 on a WindowsXP multiuser environment.
    I downloaded and extracted the archive into the C:\Programme directory (where it belongs) as admin user and I can start it without problems as long as I'm logged in as admin (despite the fact that a JDK 1.5 is already installed).
    But when I try to start JDeveloper with a normal user account (without admin rights) from there I only get the splash screen progressing a little bit and nothing else happening afterwards.
    So JDeveloper does not start for me within the account I want to use it with!
    How can I manage to start JDeveloper for normal users on that WindowsXP system?
    Does anybody have any hints on this?
    Many thanks in advance!
    Best Regards

    It is recommended to unzip JDeveloper in a directory
    without spaces. Windows installs all programs into
    C:\Program Files, this one has a space in between. So
    make sure you unzip into C:\oracle\jdeveloper or
    something like that. Also make sure as admin grant
    full permits to windows users, read, write and
    execute.It is, I installed it into C:\Programme\JDeveloper.
    Do you mean I'll have to give these rights for normal users to the JDeveloper directory!?
    This is completely contradictory to the idea behind the restricted accounts in Windows!
    Best Regards

  • About Document IDS in multiuser environment

    I am developing an online application using oracle 8.0.5 , it is a multiuser environment , what is the best method to code about generating the number of documents from multiple places , how we can lock the number (document number e.g. Purchase Order) generated for one to another , please tell advice me the best & feasible approach to handle the tie of a mnumber from different sites and handeling of cancelation of any generated number from one person and alloting it to other users
    thanks

    Its bad because global variabels will be used and changed by different users at same time.
    This will lead to variuos problem like user1 setting the variabel, user2 seting it , user1 using it with the value user2 set.

  • JSP Global Variable in MultiUser Environment???

    Hi,
    I heard that my Boss, taking about the declaration of the Global variable in Jsp will create a problem in the Multi-User Environment.
    Is it true?? If so ,What is the actual problem? It occupies more memory when compared to the Local variable??
    Isn't it a bad option to declare unless u want it badly??
    I am not able to find a suitable link for this..
    Pls. do respond for this....
    Thanks,
    JavaCrazyLover

    Its bad because global variabels will be used and changed by different users at same time.
    This will lead to variuos problem like user1 setting the variabel, user2 seting it , user1 using it with the value user2 set.

  • When is it appropriate to use a servlet in a JSP/JSF environment?

    I have inherited a fairly old JSP-based application. I know that I need to update its technologies, in particular the use of AJAX so that I don't need to keep refreshing the page each time I want more data from the server. The problem is that I don't know a great deal about other technologies. There seem to be so many conflicting opinions about the way to go regarding servlets and JSP and JSF (and possibly JavaBeans). I am probably going to start using JSF and AJAX. I mention this to give you some background info. My real question is: when is best/appropriate to use a servlet? From what I have seen I do not want to use a servlet for generating HTML output - that seem just so last decade! But do they still have a good use over more modern technologies? Also, when is it appropriate to use JavaBeans? Are JavaBeans a thing of the past (or just plain inappropriate) for web applications?
    Regards,

    I suggest going to the bookstore and looking for a book on JSF and reading it cover to cover. It may tell you where servlets come into the picture (if at all). I suggest paying attention to MVC design that it discusses, and working through the examples before working on your project (assuming you have the time). Then creating a simple project and refactor it over and over to meet MVC.
    For your project, I suggest just doing ONE JSF page (and its underlying database access) and refactor it over and over again (MVC) before doing the other JSF pages. This way, you dont have to refactor 34 JSF pages to correct the same mistake appearing in all the pages (saves a LOT of time).
    I don't know enough about AJAX to really comment on it. However, I would ask myself if refreshing the JSF page is really enough of a concern for your end-users to make it worth while to use AJAX on this project.

  • Using sequence in a multiuser environment

    We plan to use table wise sequences to generate incremental ID's for each Oracle table. Is this an issue in a multi user environment ? SOmebody said this could have contention issues and slow down performance. We expect this application to have in excess of 300 users on the LAN .
    ANy inputs appreciated.

    Hi!
    This should not pose a big issue, if you have 300 users. Even if they modify a lot of tables - each table having their own sequence - the cache of the sequence will be refreshed when the last number is used. Choose a cache size for each sequence that will be refreshed for example once a day, and there shold not be a big performance problem.
    cu
    Andreas

  • Cloning EBS from multiuser environment to single user enviroment

    Hi Hussein Sawwan,
    I am creating a new clone for my EBS R12.13 Production system to be used as a test system.
    My Production system is multiuser (meaning there is a user that owns the database tier and another user that owns the application tier).
    I want my test server to have only a single user (oracle) that will own both tiers. How can I make it possible?
    Should I just give all the rights on the copied files (db and apps) on the target server to the single oracle user ?

    Should I just give all the rights on the copied files (db and apps) on the target server to the single oracle user ?
    Correct, you need to change the ownership of the db/apps tier node files from the OS level to oracle user then run postclone on the database/application tier node as oracle user.
    Remember, when one OS user you will need to source the correct env file each time you want to maintain a tier (i.e. source db env file for the database tier tasks/activities and source the apps env file for the application tier tasks/activities).
    Thanks,
    Hussein

  • How can iIntegrate SQL server reporting with JSP/JBoss environment

    I am using Jboss 4.2.0 i want to integrate SQL server repoting service through JSP code. Any Articles/ tutorial available ?

    I'm using the dtexec.exe tool  from SqlServer to run the dtsconfigfile like this:
    "C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\dtexec.exe"  /F "ETLConfig.dtsx" /CONFIGFILE "ConnectionStrings.dtsConfig" /REP V /CONSOLELOG > log.txt
    in that way you can track how it went
    Oh, and yes, the connection eventually occur. And that's weird because it happens randomly. I don't think
    its "expected", and if it is, of course it's not decent.

  • Multiuser environment

    HI Gentlemen,
    I have installed an Oracle 8i Personal Enterprise Edition. Up to now I was alone as developer and user; I really do not know if another user could log in to my Forms application through the Web or is 8i Personal a strict single-user environment?
    Thank you in advance, kind regards from
    Miklos HERBOLY

    If you have Oracle Personal in one machine and you have a web application on it or in another server you can create several users in the database and give the posibility to each one to log in in the database without any problem. You are confusing the concept about how Oracle Personal is licensed.
    Another option is that you can create a table with users formed by you and your application log in through those users.
    Joel Pérez

  • Need help in multiuser environment

    My project is in java and it is based on the concept of thin client.
    I have a Server program running on one computer and a client program runs on the other.
    In my project the event keyboard/mouse processing is done on the server and these events are generated on the client. The server sends down images to the client at regular intervals a. When an event is generated e.g. when we click on a word doc icon then event is fired on the server and that application opens on the server and the images of the application are sent to the client. So the images are not stored on the client.
    Now my problem come when I want to handle multiple users .
    I need a way to handle multiple users. How do i create sessions for multiple users and how do i make use of virtual desktop to handle the images of diiferent applications that different users will be acessing simultaneously.
    I also need a way to make all this work faster.Thanks.

    I need a way to handle multiple users. How do i create sessions for multiple users and how do i make use of virtual desktop to handle the images of diiferent applications that different users will be acessing simultaneously.Yeah well then you need to DEVELOP a way. You really think that just by explaining the basics of your problem people will be able to help you? Sit down and think about your problem. Write down the requirements. Put some effort into it and if you really can't figure it out, report your findings to us so we can help you with that. Don't bluntly ask for help and give us nothing to help you with.
    I also need a way to make all this work fasterAgain, this is totally up to you. If you develop your application properly, it will be as fast as it is going to get.

  • RPD: Multiuser Environment Problems

    Hi All,
    We are planning to use MUD in OBIEE -Rpd development.
    I am wondering is there any know issues /Common Mistakes I have to watch out for/Aviod ?
    How will MUD repository will get impact when we integrate with LDAP servers for external Authentication ?Any thing I have to watch ?
    Apprecaite your participation..
    Thanks
    SS

    LDAP Authentication is no way related to MUD of RPD. We can do what ever we want!
    Instruct the developers to discuss before working on the same colums/tables and make them clear about the process of checking in/out
    there are two types of merge with older RPD.....try to follow the essential method
    Try to protect the oridinalXXXX RPD as sometimes it works with Null password.

  • Mozilla Maintenance in Multiuser Environment

    In FF 12 it does not look like you have to be an administrator to change the update options.
    If two users have logged onto a computer and one has configured FF to auto update and other configures it to never update what happens?

    Firefox is only installed once on a machine (usually), so if it is updated for one user, it will be updated for all users on that computer. Now you can install Firefox in different directories (example, program files/firefox 12 and program files/firefox 3.6) if a certain users needs to have a specific version (not recommended). But, for most cases, when one user updates firefox, all users will update Firefox.

  • Using a single source project in a multiuser shared storage environment

    I wanted to get some opinions on wether or not some adobe experts feel there would be any negative issues or problems with this type of workflow.
    having several cs5 machines all on a shared fibre san system. all machines access the same projects and source materials and have their own internal drive containing the media cache and database. Then creating a single standard project with a sequence and bins and a few normally used files in it.
    Then every time someone wants to start a new project they would load this "workflow" project in and then save it out to a different drive with the new project name and start editing from there.
    I am concerned that not creating a new project every time that there might be something going on in the background with metadata or media cache or something strange that could cause any problems with copying the same project every time?
    thanks!

    Thanks, I missed a little bit of clarification there. we do not use macs, all our machines are windows 7. (really wish the forums were seperated for mac and pc)
    also we are not using a networked multiuser environment. there is one standard user account that is the same on every machine and always used.
    the main issue is that each machine has fibrechannel access to the same 36TB raid array. It is divided up into 4 drive letters that all show up the same on each machine.
    we have been working this way for quite awhile already. it works, any machine can load any project and work on it. I am just wondering if it could be causing any of the different strange random problems we see from time to time.
    we are actually in the process of upgrading all our machines from cs4 to cs5.
    on of the main issues we have had so far is cfa files. when you load a project on another machine it makes a new cfa file even though there was one there already and it incremements the file#. some dirs i will look and there will be 12 cfa files for one clip. we set all our machines to save next to original in prefs.
    i think that issue might be resolved in cs5 though. we are still trying to get converted over.
    will there ever be a time we could put the media cache and database on the same shared drive that all machines look at? or is it that way now in cs5? cs5.5?
    we have file-level san sharing setup so all machines can read and write at the same time and read the same files without any conflicts.
    thanks!

  • Convert module sigle user environment to multiuser

    Hello
    Currently module supports single user. Now, we have to make it to support multiple users.
    There are certain problems with current form module if it is used as multi user environment.
    For example, multiple users are running this module at a time and retrieving same value simultaneously in ITEM# field by pressing the ACQUIRENEW# button these items are already exist 1036, 1037, 1038, 1039......eg. if one user run this module and get item# 1036, second user also run this form and get the same item# 1036, third user also run this form and get the same item# 1036 but second should get 1037 and third user should get 1038 at the same time.
    Second user cannot get item# 1037 until first user commit the value the item# 1036 but our client working in multiuser environment where at the same time so many user run this form and first user got 1036 second got 1037 third got 1038 an so on...
    You have to make sure that duplicate product# should not be entered.
    any one can give a sample code please help me this is urgent.
    thanks in advance.
    regards,
    deemy

    If you are putting this into a multiuser environment then:
    "Second user cannot get item# 1037 until first user commit the value the item# 1036 "
    Means you must introduce serialisation so that effectively only a single user can access the process to a acquirenew#
    If this is what you want to achieve then you may have to go back to the old table method of generating sequence values.
    If you have a table solely to manage the new value then when the user asks for a new value you can select from the table for update with nowait this will stop any other user getting a value until your user commits or rolls back their transaction.
    At that point there is a free for all when a new/or the same user can lock the table again.
    This will meet your requirement, but I think you should look at your design, perhaps use a sequence and consider how essential it is to maintain an unbroken sequence of item# (I think there are numerous threads on this site which have talked about maintaining this type of sequence) as this will STOP everyone except one person working with a new value and is not often the intention of a multiuser environment.

  • How to configure multiple dev environment in single IP

    HI,
    I have a WLS running on a Windows NT machine. I want to configure multiple partition/environment
    in that single WLS so that each user will have their own partition/environment to
    play around. Once they are happy with their EJBs then we shall move them to a testing
    environment. Is that possible in WLS??. Can anyone please guide me to a good documentation
    about this one.
    Many Thanks
    Vasan.
    PS: I dont want a clustering technology all i want is that in a single ip i wanna
    multiple development environment.

    Tom,
    looks like you are specifying http protocol in
    sky.framework.ejb.SkySessionBean.getInitialContext method.
    Change it to t3 or, if the JNDI lookup is in the same JVM, don't specify
    PROVIDER_URL. If you have to use http tunneling due to any reason , you have to
    enable HTTP Tunneling in server to which initial context is created. It is
    disabled by default in 60. You can do so via console. Please refer to
    documentation , let me know if you need additional help.
    Viresh Garg
    Principal Developer Relations Engineer
    BEA Systems
    Tom Purcell wrote:
    Kevin,
    You said that with 6.0 the following happens:
    On the second server I get an error when I do
    http://host:secondServerPort/index.html
    Is this the error you get on the Admin Server:
    <Feb 28, 2001 12:42:24 PM EST> <Info> <HTTPTunneling> <Login rejected with
    code: 'Failed', reas
    on: You are trying to use http tunneling
    The server will not let you connect'>
    <Feb 28, 2001 12:42:24 PM EST> <Error> <HTTP> <Problem dispatching servlet
    request
    weblogic.common.T3Exception: You are trying to use http tunneling
    The server will not let you connect
    at weblogic.socket.TunnelLogin.rejectConnection(TunnelLogin.java:87)
    at weblogic.socket.TunnelLogin.service(TunnelLogin.java:59)
    at
    weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:
    467)
    at
    weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:638)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    And on the Managed Server:
    <Feb 28, 2001 12:42:24 PM EST> <Error> <ConnectionManager> <Could not
    connect to: '0S:127.0.0.1
    :[-1,7001,-1,-1,-1,-1,-1]'
    java.net.ProtocolException: Tunneling result unspecified - is the HTTP
    server at host: 'localho
    st' and port: '7001' a WebLogic Server?
    at
    weblogic.rjvm.http.HTTPClientJVMConnection.handleNullResponse(HTTPClientJVMC
    onnectio
    n.java:152)
    at
    weblogic.rjvm.http.HTTPClientJVMConnection.connect(HTTPClientJVMConnection.j
    ava:194)
    at
    weblogic.rjvm.http.HTTPClientJVMConnection.createConnection(HTTPClientJVMCon
    nection.
    java:98)
    at weblogic.rjvm.Protocol.createConnection(Protocol.java:207)
    at
    weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.jav
    a:997)
    at
    weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:364)
    at
    weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:330)
    at
    weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:228)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:188)
    at
    weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:180)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:149)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:207)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFact
    oryDelegate.java:232)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFact
    oryDelegate.java:174)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java
    :123)
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at
    sky.framework.ejb.SkySessionBean.getInitialContext(SkySessionBean.java:112)
    at
    sky.framework.ejb.SkySessionBean.setSessionContext(SkySessionBean.java:94)
    at
    sky.ejb.session.skyreferencesession.SkyReferenceSessionBeanImpl.setSessionCo
    ntext(Sk
    yReferenceSessionBeanImpl.java:87)
    at
    weblogic.ejb20.internal.StatelessEJBHome.createBean(StatelessEJBHome.java:22
    9)
    at
    weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.jav
    a:90)
    at
    weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:7
    5)
    at
    weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:67)
    at
    weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:113)
    at
    weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
    :55)
    at
    sky.ejb.session.skyreferencesession.SkyReferenceSessionBeanEOImpl.setDataSou
    rce(SkyR
    eferenceSessionBeanEOImpl.java:22)
    at
    sky.ejb.session.skyreferencesession.SkyReferenceSessionBeanEOImpl_WLSkel.inv
    oke(SkyR
    eferenceSessionBeanEOImpl_WLSkel.java:161)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :128)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
    at
    weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
    java:103
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
    7)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    Thanks,
    Tom
    <Feb 28, 2001 12:42:24 PM EST> <Info> <ConnectionManager> <Bootstrap unable
    to get a: 'Protocol
    : 'http'' connection to: 'localhost/127.0.0.1' on port: '7001'>
    "Kevin Apte" <[email protected]> wrote in message
    news:[email protected]...
    This advice applies to WL5.1. I have been trying to configure a
    multiinstance Weblogic with no success. I want multiple copies
    of the sample petStore available for test by multiple users.
    I think in 6.0
    You would need to open an admin server
    Open the configuration file for say PetStore.
    Clone the petStore- call it petStore2. .
    Create a copy of the startup script and modify it to start PetStore2.
    After doing this only one config.xml is created for both servers.
    I am able to start the first server and view the petStore application,
    On the second server I get an error when I do
    http://host:secondServerPort/index.html
    How does one create multiple instances in WL6.0 using the console
    or using a XML editor ?
    Jesse E Tilly <[email protected]> wrote:
    [This followup was posted to weblogic.developer.interest.management
    and
    a copy was sent to the cited author.]
    In article <[email protected]>, [email protected]
    says...
    HI,
    I have a WLS running on a Windows NT machine. I wantto configure multiple partition/environment
    in that single WLS so that each user will have theirown partition/environment to
    play around. Once they are happy with their EJBs thenwe shall move them to a testing
    environment. Is that possible in WLS??. Can anyoneplease guide me to a good documentation
    about this one.
    Many Thanks
    Vasan.
    PS: I dont want a clustering technology all i wantis that in a single ip i wanna
    multiple development environment.
    NT isn't a multiuser environment. I will assume that
    you mean some
    Win32 box sitting in a room where people can copy their
    classes/EJBs and
    test their stuff. If this is the case, the setup is easy.
    Create a directory and startup script for every developer.
    Have a
    global properties file in the same directory as the scripts
    so that
    common settings are, well, common. Tell each user to
    modify the various
    parts of the properties files in their directories to
    deploy EJBs and
    register servlets, etc etc.
    In each startup script, you will have to specify the server
    directory
    and the binding port for each person. Pick a port (something
    easy to
    remember and high, like 30000, 30001, etc etc) for each
    person. Why?
    Well, when they connect to the app server, they'll know
    they're hitting
    only their server. Also, TCP/IP won't let more than one
    JVM bind to the
    same port, so if you want simultaneous instances (> 4
    you better have
    one kick ass Win32 box) you have to do this.
    Hope this solves your problem.
    JT
    Senior Developer, HotelTools INC
    [email protected]

Maybe you are looking for

  • Anyone know how to write to a RAW file format?

    Hello, Been trying to find out if there is any way to write a RAW format file from an array containing pixel values? Do I just use a file writer and save as *.raw? Also, what information must I include beyond the pixel values? Thanks!

  • RFC TO HTTP receiver scenario.Adding file name to HTTP receiver

    Hi All, Scenario is ZBAPI  ->XI-> HTTP conncetivity to EXternal Partners . ZBAPI sends the Partner data informtaion to XI .  I need to create a Partnerdata xml in XI and pass it to HTTP Connectivity (Certificates ) to External Partners Connectivity i

  • Protecting my script from spanners ???

    Protecting my script from spammers ???? I am a newbie.  I am using DW CS5.  I have a members register form and a database for the users set up.  I use the DW service behavior of “recordset” and “insert record” to add the new users from the form to th

  • Updated to 10.5.8, Safari 4.0.3 now has problems?

    Certain (most) websites I visit now load oddly. Some get a horizontal white bar across them in various places that disappears when content around it is selected. Also, most websites that I visit load completely, but the progress spinner in the right

  • I can't install MSI Geforce 5700 on XP Pro

    HY! Can someone help me. I have a Hercules Geforce 2 installed von XP. I removed the drivers  an shut the pc down. I pluged in the new MSI 5700 card and started the pc and installed the drivers on the MSI CD. But after rebooting, the driver isn´t ins