How to test individual servers using session broker
Hi,
We have 6 terminal servers and have recently switched from NLB to Session broker using RR DNS. This method balances our users much better, but has introduced a new issue. After we make a change to the terminal servers (such as applying a patch) We like to
log onto to each one with a user account and ensure everything is working as expected. But now we've found with session broker when we try to log directly onto a server we are redirected to the farm and put on the same server over and over again. We know about
using mstsc /admin to log onto as admin, but this is not the functionality we want to test (are admin accounts can't do things the user account can such as access the internet, and there is a concern that if we are using an admin account it may mask an issue
that the less privileged user accounts might have.
Thanks,
" Doesn't applying a patch to a server change the state and thus introduce risk?" Yes it does, which is why we are testing the server, but we prefer to test the server in the actual state the users will be using the server, plus there is the concern
if a server wasn't added back it it would cause a problem.
"If you are concerned about temporarily changing the load-balancing participation of each server then I recommend you go with "bulk" testing--keep logging on users until you hit all of your RDSH servers." The problem with this approach is that we would be
allowing users to log onto to servers before testing was completed (we do these changes off hours). And since right now we only have one user account to test with what is happening we log onto the first server test it, log off, but then we are repeatably load
balanced onto that server.
"Another idea would be to write a custom plugin for the RD Connection Broker that would change the load balancing logic. For example, when enabled, it would look at an xml file to determine if the user was listed and if yes direct them to a certain
server, otherwise use default load balancing logic."
We might have to look into this idea.
Thanks for your suggestions.
Rich
Similar Messages
-
How to use Session Broker ? (Where to add Session Broker Code)
Hi all,
My requirement is, I have to use two different database session in one Top Link.
I know it can be done using Session Broker, but where actually I need to add that code ? I am using JDeveloper 10.1.2.0.0(Build 1811) as i need to implement this in a BPEL process. Is it possible use Session Broker with this version , if so how to do that ?
Thanks in advance,
Anant.Hello Anant,
Not sure what code you are refering to. Using a SessionBroker is similar to how you would use a regular session, and can be configured using sessions.xml or through java code. If you are using java code, you would do this where ever you first acquire the sessionbroker and login.
Please refer to the docs on what it is and how it is used:
http://download-west.oracle.com/docs/cd/B25221_04/web.1013/b13593/sesun007.htm#CACGDDHE
The docs are for TopLink 10.1.3, and though I think TopLink 10.1.2 (9.0.4.5) is what ships with Jdev 10.1.2, they should still apply.
Best Regards,
Chris -
How to test SOAP request using XML SPY
Hi,
1. I am new to WebServices concept, I have downloaded the wsdl file and now I need to test the SOAP requests using XML Spy. However, when I try to test the SOAP request generated by XML Spy I receive an error "Internal Error: Session is not available. Aborting" , How do I go ahead to generate the session, Is there a way I can provide the Username and password in the XML Spy to generate something like session.
2. The second problem that I am facing is when I import the WSDL in XML Spy and generate the SOAP request, for all the fields xml tags gets populated with "aaaaaaaaaaaa" kind of data through out. Am i doing something wrong ? Is there some step while creating a SOAP request that I am missing becasue of which the gibbrish data is being populated as default ?
Please Help !
Thanks .I got my SOAP Requests tested using SOAP UI .. However I am still looking for ways to test it using XML SPY.
In the SOAP UI Tool just do right click and select Add WS Security Token ..
Thanks :) -
How to get the last used session id for a browser session
In HTMLDB 2.0 it is not possible to start a page with authentication without a SESSION_ID and when you start a public page without a SESSION_ID, then every time a new SESSION_ID is generated when you don't use the SESSION_ID in the URL.
In the same browser session I want to make a URL call to a HTMLDB page without a SESSION_ID and this page has to give back the last used SESSION_ID.
How can I do that?Fred - You could record that session ID in a table. Each time your authenticated application runs, it would update that table with the "latest" session ID, perhaps using an application process. Then when you are formulating the URL to the public page from another application, you'd get the session ID from that table. Or you could use the page sentry component of your app's authentication scheme to send a cookie to the browser on every page view. The cookie would contain the session ID and the other application could access the cookie to complete the URL.
Scott -
How to default bind variable using session variable at run time
Hi All,
I have a requirement where all VO queries (multiple VOs) produce only records that meet a certain value.
For example, I have three tables with 3 VOs and each of them has a one-to-many relationship to another table (let's call it ref table and this table has a field called release). One of the 3 VOs is a parent/master table, and the other two are child tables. I created a VO for master table that linked to the ref table and created a view criteria using the release (use bind variable) field from the ref table. The other child tables have their own VO that has view criteria that also linked to ref table using the release field.
On the UI page, I created a query component and a table from the master table VO. I also dropped the child table VOs in a tabbed panel which partial triggered by the master table. When I ran a query for a 'release' (hint: ref table value), the table for master table was filled the correct records that meet the criteria. Unfortunately, the child tables were not correct due to the query didn't use the bind variable that filter only records for the same 'release' value as the master table.
The question is how do I 'default' or dynamically set the bind variable on the child tables based on the selection criteria from the query component. I am thinking to set a session variable from the query and use it in the bind variable in the child table, but not sure how to do it.
Any suggestion how to do it or better solution to achieve the same effect?Hi,
How about creating a custom AMImpl method, that takes parameters as required, and set the bind variables for all the desired VOs and perform executeQuery on them.
You could expose this as client interface, and then use the method as parameter form.
Check this thread for ex.
Re: Setting Attribute in View Object through Managed Bean
-Arun -
How to test the encryption used in my wireless router?
How can I test my router for weak encryption keys? WEP and WPA..
If you're using WPA-PSK/WPA2-PSK and your PSK is short (<20 letters) and it's a "normal" word (from the dictionary) it's possibe to hack it. WPA2 is a bit more secure but good PSK is important.
This article describes details about hacking WEP/WPA. Unfortunatelly it's not free but maybe you can find a printed version of this magazine in your country in some library or you can just buy the article. -
How to test webdynpro applications using ecatt
Hi All,
Can anyone give me detail explanation of what is ecatt and how it can be used for webdynpro applications.
Thanks in advance,
Aleem.Hi Aleem,
The Extended computer Aided Test tool is known as eCATT. Enable businesses to record and play back applications as automated test scripts.
The Primary aim is the automatic Testing of SAP business processes. Each test generates a detailed log that documents the test process and result.
I have written a wiki page for webdynpro abap testing using ecatt .
<a href="https://wiki.sdn.sap.com/wiki/x/K8Q">ecatt on webdynproabap</a>
Regards
Sathish -
How to test batch jobs using loadrunner??
Hi,
Can anyone pl. tell me how to load test the background jobs in SAP using loadrunner??
Thanks,
Raj.Hi Samir,
http://www.qualtech-int.com.au/filedb/uploads/LRUG.pdf, the following link is not working, i guess we need to have an account to access the site. Please send me the document if you have , to my email id: [email protected],..
Can you give me a quick walk through of LR with SAP, as i have been assigned to a new project and i have never worked on LR with SAP.. please let me know if you can give me a demo on the same..
You can either show it on my machine , as i have SAP R/3 with BI and also LR..
Please let me know if you can walk me through an example..
If not, pls send me any interactive document with screenshots, so as to start with..
Thanks
Vinni,.. -
How to test ABAP mapping used in a Integration Process node
Hi,
anyone can suggest me how to debug an ABAP mapping used into a transformation node belonging to an Integration Process ?
Thanks.
FrancescoHi, Francesco.
I've debugged ABAP Mapping with SXI_MAPPING_TEST transaction.
If you have creted a scenario including your ABAP Mapping, you only hace to put the correct sender/sender interface and receiver/receiver interface. You have to put some XML document as an input.
I wrote in my code the Break-point instruction an debugged the process without problems.
regards,
Francisco -
How to retrieve string array using Session?
Hi, I am having some problem retrieving string arrays through session.
String personalData[] = new String[17];
personalData = (String [])session.getValue("PersonalData");
The coding above isn't working. Advise pls.. ThanksThe getValue() method is deprecated - you should probably be using getAttribute.
What about this code isn't working? Looks ok to me, as long as the "PersonalData" object in the session is a String[] it should work.
Cheers,
evnafets -
I am having the same problem as user "Gabe the animator" in a post sent in 2007.
"my recordset that drives a dynamic table won't filter results based on a session variable. I know session variables are working because I have the session variable echo on the page (dragged-n-dropped my session variable from the Bindings panel to my page), and that works fine. So why can't I filter my recordset with the same session variable???"
here is the code:
<?php require_once('Connections/mockconn.php'); ?>
<?php
session_start();
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
if(!session_id()){
session_start();
$colname_info = "-1";
if (isset($_SESSION['email'])) {
$colname_info = $_SESSION['email'];
mysql_select_db($database_mockconn, $mockconn);
$query_info = sprintf("SELECT name, last_name, email, password FROM registration WHERE email = %s", GetSQLValueString($colname_info, "text"));
$info = mysql_query($query_info, $mockconn) or die(mysql_error());
$row_info = mysql_fetch_assoc($info);
$totalRows_info = mysql_num_rows($info);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>home</title>
</head>
<body>
<div id="info">hello <?php echo $row_info['']; ?></div>
<?php
if (isset($_SESSION['email'])) {
echo 'your email: '.' '. $_SESSION['email'] .' '.'good job';}
?>
</body>
</html>
PLEASE PLEASE HELP.... I have been at this for day's...
how do I get the record set to filter based on the value of the session variableSorry I forgot to mension the error I am getting?
( ! ) Notice: Undefined index: in C:\wamp\www\mock\home.php on line 59
Call Stack
Time
Memory
Function
Location
1
0.0093
389024
{main}( )
..\home.php:0
Why is this error coming up? -
How to test ODI Agent - using command line / scripts ?
We can test ODI scheduler Agent from Topology manager, is there a way to test it using command line options / scripts ?
Go to <ODI_HOME>/oracledi/bin in command prompt and invoke startscen command with teh below parameters.
Edited by: Guru Sankar on Feb 28, 2011 4:19 PM -
How to test servlet using Junit test????
Hello everybody
Does anybody know how to test an servlet class using Junit without using Cactus test . Is it possible to test a servlet using Junit without cactus test.Plz tell me the process how to test a servlet using Junit test .
Regards
srikant1) Do yoiu mean how to "run" your servlet code with sample parameter? This call manual testing with a sample run of you code. You need a web server(eg Tomcat), create a webapp with your servlet then deploy it there in order to run it.
2) httpunit and junit are framework to write test case code that can be automated and repeatable. Plz read their doc.
3) Your sample code me a very wrong way to retrieve and convert servlet parameters.
Get a java toturial and servlet tutorial book and read it over the weekend. You need to get at least the basic. -
Session broker and custom conversion manager
I'm having some problem using session broker and a custom conversion manager. I just moved from using single session to using a session broker in the sessions.xml. I'm using a custom conversion manager as shown in this tech. tips URL
http://www.oracle.com/technology/products/ias/toplink/technical/tips/customconversion/index.html
Here's my conversion manager set up code -
public class JpmiConversionManagerSetup extends SessionEventAdapter
* During the pre-login event the new MyConversionManager must be installed
* @see oracle.toplink.sessions.SessionEventAdapter#preLogin
* @param event
public void preLogin(SessionEvent event) {
ConversionManager cm= new JpmiConversionManager();
ConversionManager.setDefaultManager(cm);
event.getSession().getLogin().getPlatform().setConversionManager(cm);
My session broker manages 2 sessions. In sessions.xml for one session I have the <event-listener-class> entry where I need some conversion, another session I don't have any such entry as I don't need any conversion.
Now when I try to run a named query using session broker the conversion part blows up, throws a ConversionException. Any idea? Do I need to configure the session broker instead of session in the preLogin or anything like that?I think sessions editor is not available in 10.1.3dp4 yet. So I have to write the sessions.xml by hand. But the parser throwing me an error saying that <session-broker> is not allowed in sessions.xml.
SessionLoaderExceptions:
org.xml.sax.SAXParseException: <Line 41, Column 18>: XML-24534: (Error) Element 'session-broker' not expected.
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:415)
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:284)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:302)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:199)
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:111)
at oracle.toplink.platform.xml.xdk.XDKParser.parse(XDKParser.java:160)
at oracle.toplink.platform.xml.xdk.XDKParser.parse(XDKParser.java:190)
at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.loadDocument(XMLSessionConfigLoader.java:191)
at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.loadDocument(XMLSessionConfigLoader.java:151)
at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:88)
at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:364)
at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:331)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
Any idea how to or where to write sessions broker in sessions.xml for 10.1.3dp4??? -
Failover Testing with and with out Broker,flashback.
Hi,
We have a requirement, where we need test the Fail over on production database. Currently we have 11.2.0.3 on Linux as production and same on another machine as Standby. We did not enabled DG Broker and Flashback in any databases. I want below information:
1) How to test failover with out DG Broker and Flashback in any databases?
2) How to enable both DG broker and Flashback and test failover with DG Broker and Flashback?
3) How can i revert back the changes after Failover i.e., i want to see the production as production and standby as standby like earlier.
Thanks a lot in advance.
- RajashekarHello again;
Change parameters as needed for you system
alter system set db_recovery_file_dest_size=20g;
alter system set db_recovery_file_dest=' /u01/app/oracle/fast_recovery_area';
SQL> shutdown immediate
SQL> startup mount
SQL> alter system set db_flashback_retention_target=2880;
System altered.
--flashback to be retained for two days
SQL> alter database flashback on;
Database altered.
SQL> alter database open; ( Not on the Standby side of course )
Test
set linesize 200
SQL> select * from v$flashback_database_log;
Flashback Retention
Days Setting
1 1440
2 2880
3 4320
4 5760
5 7200
6 8640
Best Regards
mseberg
Maybe you are looking for
-
After updating my iPad to iOS 8 all my files in Pages and Numbers are gone!!! Where are they and how do I get them back?
-
Classification Service for ESR
Hello gurus, does anybody know the classification service provided by SAP ES Workplace? WSDL: http://xi.esworkplace.sap.com:50200/ClassificationService/CS?wsdl Endpoint: http://xi.esworkplace.sap.com:50200/ClassificationService/CS?style=document I am
-
On my iMac Intel based machine running OSX 10.8.2 when I download a new application (with all of my security software turned OFF), via Safari 6.02, I receive a message that says (when I try to install it) "Name of Application or Program Here" is dama
-
How to repair the Apple Mobile Device Support
Today I installed iTunes 10.5 on my 64-bit Windows 7 but it did not work well. It crashes everytime I check the backup of my mobile devices. When I conneted my iPhone to my computer, it didn't show in iTunes. Then I checked task manger and noticed th
-
Ongoing problem with flash player and FF..cannot install adobe Flash 11 with FF 16
I have tried everything. I cannot install any Adobe flash product I was using Flash 10 and suddenly it stopped working. this happened before..several times in fact. I delete and re install but this tim it still crashed. so I decided to try Flash 11..