WLS Session...help!!!
Hi,
Do any of you guys/ladies know how to maintain session on Weblogic? Does
Weblogic have Session capability like Microsoft/IIS does? The session that I
am talking about is similar with the Session on Microsoft environment....in
that you can maintain the STATE of your login. You can set Session Timeout
with it, or you don't have to request for new information (obtained from
LDAP) whenever you get back from doing other things as long as you maintain
the session (similar like Microsoft ASP Session object). Please let me know
if you know anything, or you can point me to a right direction. I, and my
colleagues, would really appreciate your help.
Sincerely,
Nico
Of course! It is part of the Servlet 2.2 specification. See
javax.servlet.http.HttpSession. You can obtain a session from a request.
See javax.servlet.http.HttpServletRequest.
Cameron Purdy
"Peter Ephron" <[email protected]> wrote in message
news:397f71c7$[email protected]..
Hi,
Do any of you guys/ladies know how to maintain session on Weblogic? Does
Weblogic have Session capability like Microsoft/IIS does? The session thatI
am talking about is similar with the Session on Microsoftenvironment....in
that you can maintain the STATE of your login. You can set Session Timeout
with it, or you don't have to request for new information (obtained from
LDAP) whenever you get back from doing other things as long as youmaintain
the session (similar like Microsoft ASP Session object). Please let meknow
if you know anything, or you can point me to a right direction. I, and my
colleagues, would really appreciate your help.
Sincerely,
Nico
Similar Messages
-
Hi all,
I've setup an OSB cluster with 2 managed servers.
From WLS console I created successfully the below JMS resources:
1. new file store, name and directory: MyFileStore_m01, target: bnk01osbm01 migratable
2. new file store, name and directory: MyFileStore_m02, target: bnk01osbm02 migratable
3. new jms server, name: MyJMSServer_m01, persistent store: MyFileStore_m01, target: bnk01osbm01 migratable
4. new jms server, name: MyJMSServer_m02, persistent store: MyFileStore_m02, target: bnk01osbm02 migratable
5. new jms module, name: MyJMSSystemModule, targets: cluster bnk01osbcluster + all servers in the cluster
6. new xa conn factory, name: MyXAConnectionFactory, jndi name: MyXAConnectionFactory
(targets as proposed by WLS itself: cluster bnk01osbcluster + all servers in the cluster)
+ XA Connection Factory Enabled: true
7. new Distributed Queue, name: MyDistributedQueue1, jndi name: MyDistributedQueue1, load balancing policy: round-robin
(targets as proposed by WLS itself: cluster bnk01osbcluster + all servers in the cluster)
+ allocate members uniformly: true
and I recorded that into the included recorded_by_wls.py. As said no error has been raised.
Then I removed the above JMS resources and I executed the recorded_by_wls.py from command line getting the error that I reported at the end of the email.
I changed slightly the original py produced by WLS by adding only the below first 5 lines:
print "Starting the script ..."
connect("weblogic", "weblogic", "t3://wasdv1r3n1.dev.b-source.net:7031")
edit()
startEdit()
cd('/')
I included also the recorded_by_wls.py source at the end of the email.
For information I reported also what I saw on WLS console when I created manually my JMS resources.
Do you have an idea why a successfully recorded WLS session fails when executed from a command line ?
Any help will be very appreciate.
Thanks in advance.
Regards
ferp
Error:
java weblogic.WLST recorded_by_wls.py Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Starting the script ...
Connecting to t3://wasdv1r3n1.dev.b-source.net:7031 with userid weblogic ...
Successfully connected to Admin Server 'bnk01osbadm' that belongs to domain 'bnk01osb'.
Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
Location changed to edit tree. This is a writable tree with
DomainMBean as the root. To make changes you will need to start an edit session via startEdit().
For more help, use help(edit)
Starting an edit session ...
Started edit session, please be sure to save and activate your changes once you are done.
Activating all your changes, this may take a while ...
The edit lock associated with this edit session is released once the activation is completed.
Activation completed
Starting an edit session ...
Started edit session, please be sure to save and activate your changes once you are done.
Activating all your changes, this may take a while ...
The edit lock associated with this edit session is released once the activation is completed.
This Exception occurred at Mon Sep 07 15:31:33 CEST 2009.
weblogic.application.ModuleException: ERROR: Unable to add destination MyJMSSystemModule!wlsbJMSServer_auto_2@MyDistributedQueue1 to the back end wlsbJMSServer_auto_2
at weblogic.jms.module.JMSModule.prepareUpdate(JMSModule.java:618)
at weblogic.jms.module.ModuleCoordinator.prepareUpdate(ModuleCoordinator.java:487)
at weblogic.application.internal.flow.DeploymentCallbackFlow$5.next(DeploymentCallbackFlow.java:514)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:280)
at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:679)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.prepareUpdate(BaseDeployment.java:444)
at weblogic.application.internal.SingleModuleDeployment.prepareUpdate(SingleModuleDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.prepareUpdate(DeploymentStateChecker.java:221)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepareUpdate(AppContainerInvoker.java:149)
at weblogic.deploy.internal.targetserver.operations.DynamicUpdateOperation.doPrepare(DynamicUpdateOperation.java:130)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: weblogic.jms.common.JMSException: [JMSExceptions:045050]A destination of name MyJMSSystemModule!wlsbJMSServer_auto_2@MyDistributedQueue1 has a jms-create-destination-identifier of name MyJMSSystemModule!wlsbJMSServer_auto_2@MyDistributedQueue1. However, another destination of name MyJMSSystemModule!wlsbJMSServer_auto_2@MyDistributedQueue1 has the same jms-create-destination-identifier. Two destinations with the same jms-create-destination-identifier cannot be co-located on the JMSServer named wlsbJMSServer_auto_2.
at weblogic.jms.backend.BackEnd.addDestination(BackEnd.java:1527)
at weblogic.jms.backend.BEDestinationRuntimeDelegate.prepare(BEDestinationRuntimeDelegate.java:195)
at weblogic.jms.backend.udd.UDDEntity.prepare(UDDEntity.java:444)
at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1704)
at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1667)
at weblogic.jms.module.JMSModule$EntityState.access$100(JMSModule.java:1608)
at weblogic.jms.module.JMSModule.addEntity(JMSModule.java:936)
at weblogic.jms.module.JMSModule.addEntity(JMSModule.java:841)
at weblogic.jms.module.JMSModule.access$1500(JMSModule.java:87)
at weblogic.jms.module.JMSModule$JMSModuleListener.prepareUpdate(JMSModule.java:1485)
at weblogic.descriptor.internal.DescriptorImpl$Update.prepare(DescriptorImpl.java:481)
at weblogic.descriptor.internal.DescriptorImpl.prepareUpdateDiff(DescriptorImpl.java:195)
at weblogic.descriptor.internal.DescriptorImpl.prepareUpdate(DescriptorImpl.java:174)
at weblogic.jms.module.JMSModule.prepareUpdate(JMSModule.java:614)
Problem invoking WLST - Traceback (innermost last):
File "/products/software/tmp/recorded_by_wls.py", line 92, in ?
File "<iostream>", line 364, in activate
WLSTException: Error occured while performing activate : Error while Activating changes.ERROR: Unable to add destination MyJMSSystemModule!wlsbJMSServer_auto_2@MyDistributedQueue1 to the back end wlsbJMSServer_auto_2 Use dumpStack() to view the full stacktrace
recorded_by_wls.py source
print "Starting the script ..."
connect("weblogic", "weblogic", "t3://wasdv1r3n1.dev.b-source.net:7031")
edit()
startEdit()
cd('/')
cmo.createFileStore('MyFileStore_m01')
cd('/FileStores/MyFileStore_m01')
cmo.setDirectory('MyFileStore_m01')
set('Targets',jarray.array([ObjectName('com.bea:Name=bnk01osbm01 (migratable),Type=MigratableTarget')], ObjectName))
activate()
startEdit()
cd('/')
cmo.createFileStore('MyFileStore_m02')
cd('/FileStores/MyFileStore_m02')
cmo.setDirectory('MyFileStore_m02')
set('Targets',jarray.array([ObjectName('com.bea:Name=bnk01osbm02 (migratable),Type=MigratableTarget')], ObjectName))
activate()
startEdit()
cd('/')
cmo.createJMSServer('MyJMSServer_m01')
cd('/Deployments/MyJMSServer_m01')
cmo.setPersistentStore(getMBean('/FileStores/MyFileStore_m01'))
set('Targets',jarray.array([ObjectName('com.bea:Name=bnk01osbm01 (migratable),Type=MigratableTarget')], ObjectName))
activate()
startEdit()
cd('/')
cmo.createJMSServer('MyJMSServer_m02')
cd('/Deployments/MyJMSServer_m02')
cmo.setPersistentStore(getMBean('/FileStores/MyFileStore_m02'))
set('Targets',jarray.array([ObjectName('com.bea:Name=bnk01osbm02 (migratable),Type=MigratableTarget')], ObjectName))
activate()
startEdit()
cd('/')
cmo.createJMSSystemResource('MyJMSSystemModule')
cd('/SystemResources/MyJMSSystemModule')
set('Targets',jarray.array([ObjectName('com.bea:Name=bnk01osbcluster,Type=Cluster')], ObjectName))
activate()
startEdit()
cd('/JMSSystemResources/MyJMSSystemModule/JMSResource/MyJMSSystemModule')
cmo.createConnectionFactory('MyXAConnectionFactory')
cd('/JMSSystemResources/MyJMSSystemModule/JMSResource/MyJMSSystemModule/ConnectionFactories/MyXAConnectionFactory')
cmo.setJNDIName('MyXAConnectionFactory')
cd('/JMSSystemResources/MyJMSSystemModule/JMSResource/MyJMSSystemModule/ConnectionFactories/MyXAConnectionFactory/SecurityParams/MyXAConnectionFactory')
cmo.setAttachJMSXUserId(false)
cd('/JMSSystemResources/MyJMSSystemModule/JMSResource/MyJMSSystemModule/ConnectionFactories/MyXAConnectionFactory')
cmo.setDefaultTargetingEnabled(true)
activate()
startEdit()
cd('/JMSSystemResources/MyJMSSystemModule/JMSResource/MyJMSSystemModule/ConnectionFactories/MyXAConnectionFactory/TransactionParams/MyXAConnectionFactory')
cmo.setTransactionTimeout(3600)
cmo.setXAConnectionFactoryEnabled(true)
activate()
startEdit()
cd('/JMSSystemResources/MyJMSSystemModule/JMSResource/MyJMSSystemModule')
cmo.createUniformDistributedQueue('MyDistributedQueue1')
cd('/JMSSystemResources/MyJMSSystemModule/JMSResource/MyJMSSystemModule/UniformDistributedQueues/MyDistributedQueue1')
cmo.setJNDIName('MyDistributedQueue1')
cmo.setLoadBalancingPolicy('Round-Robin')
cmo.setDefaultTargetingEnabled(true)
activate()
startEdit()
-- source end --
ON WLS console
Name Type Target
MyFileStore_m01 FileStore bnk01osbm01 (migratable)
MyFileStore_m02 FileStore bnk01osbm02 (migratable)
FileStore_auto_1 FileStore bnk01osbm01
FileStore_auto_2 FileStore bnk01osbm02
WseeFileStore_auto_1 FileStore bnk01osbm01
WseeFileStore_auto_2 FileStore bnk01osbm02
Name Persistent Store Target Current Server
MyJMSServer_m01 MyFileStore_m01 bnk01osbm01 (migratable) bnk01osbm01
MyJMSServer_m02 MyFileStore_m02 bnk01osbm02 (migratable) bnk01osbm02
wlsbJMSServer_auto_1 FileStore_auto_1 bnk01osbm01 bnk01osbm01
wlsbJMSServer_auto_2 FileStore_auto_2 bnk01osbm02 bnk01osbm02
WseeJmsServer_auto_1 Wsee FileStore_auto_1 bnk01osbm01 bnk01osbm01
WseeJmsServer_auto_2 Wsee FileStore_auto_2 bnk01osbm02 bnk01osbm02
Name Type
MyJMSSystemModule System
configwiz-jms System
jmsResources System
WseeJmsModule System
Name Type JNDI Name Subdeployment Targets
MyDistributedQueue1 Uniform Distributed Queue MyDistributedQueue1 Default Targetting bnk01osbcluster
MyXAConnectionFactory Connection Factory MyXAConnectionFactory Default Targetting bnk01osbclusterHi Ferp,
Do you have an idea why a successfully recorded WLS session fails when executed from a command line ?It should not fail. Each and every successfully (activation has been done without reporting an error/conflict) recorded session will execute on other servers successfully until a unique name constraint gets violated.
In your case this violation has happened. Your script is trying to create a distributed destination "MyDistributedQueue1" under module "MyJMSSystemModule", targetted to JMS Server "wlsbJMSServer_auto_2" but a Distributed Queue with same JNDI name already exists there.
Please check.
Regards,
Anuj -
Xfce4-session-helper NOT FOUND
After upgrading xfce4-session the other day,
[PACMAN] upgraded xfce4-session (4.10.0-6 -> 4.10.0-7)
These errors appear in syslog:
Apr 29 13:27:56 arch-top slim[342]: (xfce4-session:397): xfce4-session-WARNING **: Unable to launch "xfce4-settings-helper": Failed to execute child process "xfce4-settings-helper" (No such file or directory)
Apr 29 13:27:56 arch-top slim[342]: (xfce4-session:397): xfce4-session-WARNING **: Unable to launch "xfce4-settings-helper": Failed to execute child process "xfce4-settings-helper" (No such file or directory)
They appear twice, together, like above (on startup).According to http://www.xfce.org/about/tour (one of the first hits for xfce4-session-helper), this helper was merged into a settings daemon in 4.10. Either it's a bug or you have some leftover bits from 4.8.
-
Hi All,
I Queried v$session it showned many inactive session.
SID SERIAL# USERNAME MACHINE STATUS
172 131 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
173 1817 CLOSINGCOST KAVNIYA\KTS-WS-HP-05 INACTIVE
174 487 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
175 1621 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
176 764 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
177 666 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
so that i killed some of the inactive session. After killing of session also the list in v$session is not disappearing.
SID SERIAL# USERNAME MACHINE STATUS
172 131 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 KILLED
173 1817 CLOSINGCOST KAVNIYA\KTS-WS-HP-05 KILLED
174 487 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
175 1621 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
176 764 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 INACTIVE
177 666 CLOSINGCOST KAVNIYA\KTS-WS-HP-02 KILLED
So how to clear killed details from v$session
Please help me out.
Regards,
RajuHi,
Its better if u directly kill inactive session from OS by Kill command
Script for killing the session
select 'kill -9 '||spid from v$process where addr in (select paddr from v$session where username not in ('SYS','SYSTEM') and status<>'ACTIVE')
Thanks
Kuljeet Pal Singh -
Session Help...PLEASE!
I have a "Shopping Cart" that i got from a tutorial. I made
it work for our application but i found a problem. If i add a
product to the cart with a product name of 12345 it will add this
product fine. If i add another product with the same product name
of 12345 it will not add it to the cart and only keep the first
product name added of 12345. Basically the same product name cannot
be added to the cart, every product name has to be unique for it to
be added to the cart, we would like the unique data to be the
receiptNo and not the productName but we cannot figure out how to
do this. Please any help would be great. Thanks a lot! heres the
code to the crtAdd.cfm page:
<!--- This script adds a product to the cart or updates
the quantity if the product is already in the cart--->
<!--- Create Session Variables if they are not already
defined--->
<cfset WasQUpdated = 'No'>
<cfif NOT isdefined('session.CrtProductName')>
<cfset session.CrtProductID="">
<cfset session.CrtreceiptNo="">
<cfset session.CrtProductName = "">
<cfset session.CrttaxYear="">
<cfset session.CrtQuantity = "">
<cfset session.CrtPrice = "">
</cfif>
<cfif isdefined('session.CrtProductName')>
<cfif session.CrtProductName IS "">
<cfset session.CrtProductID="">
<cfset session.CrtreceiptNo="">
<cfset session.CrtProductName = "">
<cfset session.CrttaxYear="">
<cfset session.CrtQuantity = "">
<cfset session.CrtPrice = "">
</cfif>
</cfif>
<!--- Now Look in the cart and see if there are any
duplicate items. If so, then
update the product quantities--->
<cfoutput>
<cfif ISDEFINED ('form.quantity')>
<cfif #form.Quantity# IS ''>
<cfset TheQuantity = '1'>
</cfif>
<cfif NOT #form.Quantity# IS ''>
<cfset TheQuantity = '#form.quantity#'>
</cfif>
</cfif>
<cfif NOT #ListLen(session.CrtProductName, "^")# IS 0>
<cfloop index="LoopCount" FROM="1"
TO="#ListLen(session.CrtProductID, "^")#">
<CFIF #ListGetAt(session.CrtProductName, loopcount, "^")#
IS #form.ProductName#>
<CFSET NewQuantity = #ListGetAt(session.CrtQuantity,
LoopCount, "^")# + #TheQuantity#>
<CFSET SetQauntity = ListSetAt(session.CrtQuantity,
LoopCount, #NewQuantity#, "^")>
<CFSET session.CrtQuantity = #SetQauntity#>
<CFSET WasQUpdated = 'Yes'>
</CFIF>
</cfloop>
</cfif>
</cfoutput>
<cfif #WasQUpdated# IS 'Yes'>
<CFLOCATION URL="paycart.cfm?Action=View">
</cfif>
<cfoutput>
<CFSET NewProdID = ListAppend(#session.CrtProductID#,
#form.ProductID#, "^")>
<CFSET Session.CrtProductID = #NewProdID#>
<CFSET NewreceiptNo = ListAppend(#session.CrtreceiptNo#,
#form.receiptNo#, "^")>
<CFSET Session.CrtreceiptNo = #NewreceiptNo#>
<CFSET NewProductName =
ListAppend(#session.CrtProductName#, #form.ProductName#, "^")>
<CFSET Session.CrtProductName = #NewProductName#>
<CFSET NewtaxYear = ListAppend(#session.CrttaxYear#,
#form.taxYear#, "^")>
<CFSET Session.CrttaxYear = #NewtaxYear#>
<CFSET NewQuantity = ListAppend(#session.CrtQuantity#,
#TheQuantity#, "^")>
<CFSET Session.CrtQuantity = #NewQuantity#>
<CFSET NewPrice = ListAppend(#session.CrtPrice#,
#form.Price#, "^")>
<CFSET Session.CrtPrice = #NewPrice#>
</cfoutput>
<CFLOCATION URL="paycart.cfm?action=View">> Basically the same product name cannot be added to the
cart, every
> product name has to be unique for it to be added to the
cart, we would
> like the unique data to be the receiptNo and not the
productName but
> we cannot figure out how to do this.
Make the add-to-cart process a function called, perhaps,
addToCart(). Use precisely the logic that works for
productName, but let your function add
receiptNo instead. -
i have close firefox and tried to log on again i get a box saying firefox is already running, i must close this session before i can log on again confused i don't see the program running in the task manager confused again says i must restart computer in order to log on again. i close firefox by accident seems like this could be resolved easier. vs. restarting computer confused help shows something like firefox exe. confused
Try to run the Firefox program once as Administrator (right-click: Run as Administrator).
If that doesn't solve the problem then remove the Firefox program folder to do a clean reinstall.
* Uninstall your current Firefox version.
* Do not remove personal data when you uninstall the current version.
Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
* It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox. -
Runtime error when creating Sessions - help
Hi ,
I tried creating a session under Collaboration ->MySessions
I get the following runtime error at the end:
<b>
An exception occurred while processing a request for :
iView :
pcd:portal_content/specialist/Collaboration/com.sap.netweaver.coll.CollaborationRoomCreation/com.sap.netweaver.coll.RoomCreation/com.sap.netweaver.coll.AdminOwnedRooms/com.sap.netweaver.coll.AdminMyOwnRooms
Component Name :
com.sap.netweaver.coll.appl.ui.room.DelegatedAdministration
The exception was logged. Inform your system administrator..
Exception id: 07:05_14/09/05_0004_4971750
See the details for the exception ID in the log file</b>
Pls help to solve this problem.
Thanks in advance.The most possible reason is if your site collection is reached the maximum site quota limit,then there is chance to get the run time error while creating a new group.
In this case,you will get the error while creating/updating the group or while adding the new user/uploading any content.
Also Ensure the group name is not having any special/unsupported characters.
Feel free to share the error screenshot/entry in the ULS logs.
Please remember to click 'Mark as Answer' on the answer if it helps you
Best Regards,
Pavan Kumar Sapara
s p kumar -
Multi-part form problem (array & session help needed)
I have a multi-part form that consists of 3 pages(forms) which each save data to the session. When the final form is complete, I insert the session variables to the DB via a FINISH button.
I now want to take another step. Page 2 of this multi-part form allows users to add "items". Presently, they can add only 1 item, and move the page 3 by hitting a next button. I would like to add a "Add another item" button that goes to the page 2 form again, allowing more items to be entered. I believe I need an array/table to do this, but don't know how I might do this in the session.
Is it possible to create an array in the session? If so, how? If not, how might I approach this?
I am trying to avoid inserting to the database (a remote db) until after a "preview" page following the form.
Any ideas? Thx in advance.Hi,
This forum thread may help you:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50623
Thanks,
Creator Team. -
When a user logs out the following servlet is called. The problem is that when the back button is hit they can get back in without signing in again. User authentication is done with a bean with Session scope. Does the invalidate() not destroy the bean as well?
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
public class LogOutServlet extends HttpServlet
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
HttpSession hs;
hs=request.getSession();
hs.invalidate();
response.sendRedirect("../index.jsp");
help me OB1, you're my only hope.
Thanks
C.Well, you don't clear the cache, you prevent pages from being cached.
Look at this thread: http://forum.java.sun.com/thread.jsp?forum=45&thread=562372 which states clearly how to do it. Note, you would have to add the response.setHeaders on top of every page that you don't want cached. -
URGENT http session HELP PLEASE
Hello all.
i work in http session...after i redirect in https(login.jsp for example)
in JavaBean for Login.jsp try get connection with all object or JavaBeans from last http session ...but i cannot do it.
Where my problem ?
How i can have access across sessions?
Help me please.i don't understand your meaning exactly,but i think what you mean is maybe to make a bean accessible across the session?is that right?if yes,you can set the scope attribute to session,such as:
<jsp:useBean id="..." scope="session" class="...."/> -
OK trying to create a simple database system to log help desk issues. Created basic jsp pages to allow a user to register and login in. However I am having problems keeping track of the user when they are logged in i.e when a user logs in successfully and they are directed to the main page how can I allow the user to see that they are logged in e.g Currently logged in (theOvermind). I was told that sessions could be used. Can anyone help me with this issue.
Thanks in advancewhen the user's credentials are valid then you may have to use:
session.setAttribute("username",username);The username of the user will be stored on a session variable until the web page expires its session.
Session timeout can be configure on the web.xml
In case you need to get the value of the username. you will have to use this:
String username = session.getAttribute("username").toString();if you get NullPointerException, then the user session maybe expired or user has not logged yet.. You will do the rest of the codings. -
Processes in v$process which do not exist in v$session(help)!!
Hi, all.
The database is 2 node RAC database (10.2.0.2.0)
on 32 bit windows 2003 EE SP1.
Our database is suffering "CKPT hang" from time to time.
I checked v$process and v$session on both node by the following sql.
select addr,pid,spid,username, program
from v$process
where addr not in (select paddr from v$session)
ADDR PID SPID USERNAME PROGRAM
56E2 1 PSEUDO
56E2 18 3984 SYSTEM ORACLE.EXE (D000)
56E2 19 4020 SYSTEM ORACLE.EXE (S000)
56E2 27 3176 SYSTEM ORACLE.EXE (PZ99)
56E3 39 2296 SYSTEM ORACLE.EXE (PZ97)
●select * from v$px_process
SERVER_NAME STATUS PID SPID SID SERIAL#
PZ97 AVAILABLE 39 2296
PZ99 AVAILABLE 27 3176
●select * from V$PX_SESSION
--> no rows
●select slave_name,status from v$pq_slave
SLAVE_NAME STATUS
PZ97 IDLE
PZ99 IDLE
I found the above processes which do not exist in v$session.
Is this normal??
Thanks and Regards.
Message was edited by:
user507290Hi,
>>I can see incomplete checkpoint message in alert log files.
This message indicates that Oracle wants to reuse a redo log file, but the current checkpoint position is still in that log. In this case, Oracle must wait until the checkpoint position passes that log. In fact, the "checkpoint not complete" messages are generated because the logs are switching so fast that the checkpoint associated with the log switch isn't terminated. Oracle stops processing until the checkpoint completes successfully.
In this case, normally you need to increase the size of the redo logs or add more redo log groups. Take a look on http://www.dbazine.com/oracle/or-articles/foot2
Now, as you said that the current redo size is 2 GB, how frequently redo log switch's occurs in the database ? See the SQL's below:
Log Switching Distribution
select to_char(first_time,'DD/MM/YYYY') day,
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'00',1,0)),'999') "00",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'01',1,0)),'999') "01",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'02',1,0)),'999') "02",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'03',1,0)),'999') "03",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'04',1,0)),'999') "04",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'05',1,0)),'999') "05",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'06',1,0)),'999') "06",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'07',1,0)),'999') "07",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'08',1,0)),'999') "08",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'09',1,0)),'999') "09",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'10',1,0)),'999') "10",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'11',1,0)),'999') "11",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'12',1,0)),'999') "12",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'13',1,0)),'999') "13",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'14',1,0)),'999') "14",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'15',1,0)),'999') "15",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'16',1,0)),'999') "16",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'17',1,0)),'999') "17",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'18',1,0)),'999') "18",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'19',1,0)),'999') "19",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'20',1,0)),'999') "20",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'21',1,0)),'999') "21",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'22',1,0)),'999') "22",
to_char(sum(decode(substr(to_char(first_time,'HH24'),1,2),'23',1,0)),'999') "23",
sum(1) "TOTAL_IN_DAY"
from v$log_history
group by to_char(first_time,'DD/MM/YYYY')
order by to_date(day);
Average Switch Time
select to_char(first_time,'DD/MM/YYYY HH24')||':00:00' "Time",
count(*) "Nbswitch",
trunc(60/count(*),1) "Average switch time(minutes)",
count(*)*rsize "EstimateSize"
from v$log_history, (select sum(bytes/1024/1024)/count(*) rsize from v$log)
group by to_char(first_time,'DD/MM/YYYY HH24'),rsize
order by to_date(to_char(first_time,'DD/MM/YYYY HH24'), 'DD/MM/YYYY
HH24')desc;In addition, If you have access on Oracle Metalink, see the Note:147468.1 about Checkpoint Tuning and Troubleshooting Guide.
Cheers -
I am in need of some serious help. I've got Weblogic (WLS_11gR1_1035) installed on my linux RHEL 5 server. Then I installed Oracle fusion middleware web tier utilities 11g (11.1.1.2) and patch set 4.
Anyways I'm trying to set up my environment and there is no /etc/oratab or /local/bin/oraenv files....
Also when I run the startWeblogic.sh script it appears that it is running although I'm not 100% sure if it is actually up... any help woudl be appreciated. Thanks.I am in need of some serious help. I've got Weblogic (WLS_11gR1_1035) installed on my linux RHEL 5 server. Then I installed Oracle fusion middleware web tier utilities 11g (11.1.1.2) and patch set 4.
Anyways I'm trying to set up my environment and there is no /etc/oratab or /local/bin/oraenv files....
Also when I run the startWeblogic.sh script it appears that it is running although I'm not 100% sure if it is actually up... any help woudl be appreciated. Thanks. -
Im new to using sessions.
I have read that u can check if a user already has an assoiated session, by doing
'request.getSession(true);'
which will create a session if there already isnt one.
Well what if there is one, and i want to kill it, and start a new one?Ok, what i really need is some info on sessions themselves. The book i have isnt very good for it (well not to me).
I dont think i understand them properly.
Q1. Do sessions exist before they have been manually created?
Q2. When is a session created?
This is the first time i have dealt with sessions before, so am clueless. If anyone can offer me some advice, or point me towards a VERY good guide about seessions, i would be very greatful.
Thankyou -
Help about W2K Apache plug-in for WLS
Hi,everybody.
I want to use the W2K apache http server for redirect the dynamic request to
WLS. But i don't have the corresponding plug-in. Who can help me? or Who can
give me some hint about this?
Thanks in advance.
BR
Steven ZhaoHi Steven,
as far as I know there is no Apache Plugin for Windows Platform. Your
choice is either Unix->Apache or Windows->IIS. I think there is a
Netscape Plugin as well, but I don't know for which platforms.
Daniel
-----Original Message-----
From: Steven Zhao [mailto:[email protected]]
Posted At: Friday, October 20, 2000 6:02 AM
Posted To: management
Conversation: Help about W2K Apache plug-in for WLS
Subject: Help about W2K Apache plug-in for WLS
Hi,everybody.
I want to use the W2K apache http server for redirect the dynamic
request to
WLS. But i don't have the corresponding plug-in. Who can help me? or Who
can
give me some hint about this?
Thanks in advance.
BR
Steven Zhao
Maybe you are looking for
-
Cannot connect ATV 2.0 (factory restore) to wifi (tried all secure modes)
Restored ATV to v2.0. ATV sees the wireless network but cannot connect. Have attempted all types of encryption settings: 1. WPA2-PSK: AES, TKIP and mixed mode 2. WPA-PSK 3. WEP 128bit, hex and ascii. Using Buffalo Airstation WZR-HP-G300NH, firmware 1
-
Ipod 4 wifi loads but does not check
So at my school we have a public wifi and i know it works because some my friends use it but when i click on the wifi it keeps on loading but it never checks. My friend with an iphone has the same thing happening to her. Any way to solve it? Thnx
-
LOG US1= Login, Wrong Password
Hi all, While trying to connect to PI system from ECC system using HTTP RFC SAPISU, I am getting user name password prompt. However, I have already maintained correct user name and password in RFC destination. I also tried to login with this user nam
-
I see "imac-54f9d5" under the "Shared" heading in my finder. I am not connected to any printers or other Mac devices. Is it possible that someone is remotely accessing my system? How can I figure out what this is?
-
i have a problem when i sign in my skype i couldn't get in i dont know why