How to set properties in other threads
I use a modified batch model to test UUTs in parallel. In the PreBatch I load some parameters from a database and copy these parameters in the fileglobals and stepproperties of the Runstate.Processmodelclient. But when the Mainsequence in the threads is executed, the fileglobals and stepproperties have not the expected values. How can I directly access fileglobals and stepproperties of the "Test Socket Enty Point" -threads from the "Test UUTs"-threads .
LVFan,
> I have already tried this out. This is only working if there are
> testsequence-threads created not yet (running the test the first
> time). If there are alredy testsockets created, changes in
> "Runstate.Processmodelclient.Data" where ignored.
I had a similar problem. As far as I can tell,
'RunState.ProcessModelClient' returns a reference to a copy of the sequence
file that is NOT the run-time version, but some static in-memory copy.
Changes were not reflected in running executions.
I did find 'Execution.GetFileGlobals' returns a Property Object that points
to the FileGlobals in the RUN-TIME copy of the sequence file you specify in
the call. This will allow you to modify run-time copies of the FileGlobals
in the process model or sequenc
e file, depending on which sequence file you
specify. I tried this on both the process model and running client sequence
file and it works (I can twiddle FileGlobals in either case from the
Operator Interface). I have not yet found a way to modify any other
variables in the run-time instances other than the FileGlobals (such as
MainSequence Locals or whatever).
HTH,
Joe
Similar Messages
-
How to set properties of bean?
I am using tomcat apache webserver, I need to set properties of beans using servlet. But it not works.Is there any permission needed? If yes than how it is set? Is there any setting that remove all the security policies?
I will assume this is the same question I just answered to you:
Put the bean on the session after you fill it on your servlet:
request.getSession().setAttribute("attributeName", bean); -
How to set properties in a loop in jsp
I have a problem to set properties for beans in jsp
this is part of my code:
<jsp:useBean id="searchHandler" class="searchHandler.class"
scope="session">
</jsp:useBean>
<%
String[] tempStr={"hello","you","happy"};
for(int i=0; i<tempStr.length; i++)
%>
<jsp:setProperty name="searchHandler" property="beanStr" value="<%= tempStr[i] %>" />
<%
%>
it doesn't work well.
something wrong?Hi,
why do you use the print-tag in your setProperty-Tag.
Try it without <%=tempStr%>.
Try <%tempStr%>
or only tempStr. -
How to set homepage for other people who use my programs?!
I have a website and it is a download site.
I don't want to force my users to come to my web page.so I want to open my web site in second Tab in home page.
what should I do ?It is up to individuals if they want to add your site as a home page, they can do that by using the procedure in the [[how to set the home page]] article. You should not force your site to be a home page.
I am sorry if I have misinterpreted your question, if I have can you give more details of what you want. -
I'm trying to create an import script for RDBMS to import users, but cannot figure out how to set the "PASS_TYPE_RADIUS_TOKEN" to something other than the default of "RADIUS Token Server". We have multiple RADIUS Token Server definitions.
I can create a user with what I need, except external db password is set to "RADIUS Token Server". How do I set it to (for example) something like "RADIUS Token Server - xxxx"
We have more than 1 RADIUS Token Server definition called "RADIUS Token Server - xxxx", "RADIUS Token Server - yyyy".
Thanks!As per my knowledge you have to update 4.2 ACS to
5.1, because when you go for RDBMS synchronization it wont allow you, I have faced problem in past while primary ACS was 4.1 and secondary I have 4.2, I have updated primary ACS to 4.2 and everything is working fine. -
How to set properties in XCM java appllication in NWDS
Hi,
Its Java Application using NWDS
I need to set the properties which can be changed or controlled easily in different servers. I heard XCM is used for this purpose.
I need guidance which config files will be used in XCM folder and how to use them in Java application.
Eg. I need to set email host and port property and its value will keep changing on different severs.
Where should I set it and how to access it.??
Thankshi
check this
http://help.sap.com/bp_bblibrary/600/Documentation/C20_BB_ConfigGuide_EN_GCC.doc
http://www.freebooksclub.net/sap/2011-sap-srm-extended-classic-cookbook-0975305271.html
bvr
Edited by: bvr on Mar 12, 2009 10:19 AM -
How to set properties programmatically and persist
I have several control arrays that I set the properties for programatically from a file (min, max, label, etc.). If there was a way to make these values persist after they are set I would only have to do this once instead of every time the app runs. This would be helpful as there would be one less file to distribute. Suggestions anyone?
In my opinioin you are already using the best option for this kind of tasks, i.e. having a configuration or customization file with which to personalize a general-use program to specific application characteristics.
As an alternative you could consider directly personalizing the UIR file with the appropriate set of properties for the controls, but you will need to distribute and maintain custom UIRs instead of having a universal one.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to set properties for HTTPClient came with WSClient_extends.jar ?
In my web service client application, we need cookie to maintain session between server and client.
I think the server cookie policy is not completely standards compliant since HTTP request to this server through Apache HTTPClient need to setup following:
"http.protocol.single-cookie-header" to be true
cookie policy to be "CookiePolicy.BROWSER_COMPATIBILITY"
My problem is, we are using Oracle WSClient_extends.jar for web service call, WSClient_extends.jar came with it own HTTPClient implemetation.
Are there equlivant properties can be set in Oracle HTTPClient similar to Apache HTTPClient to handle such cookie policy?
ThanksHi,
This is correct; see my blog entry: http://db360.blogspot.com/2007/01/is-your-java-application-failoverproof.html
However, you need to use oracle.jdbc.pool.OracleDataSource and from what i know Websphere does not (yet?) allow bypassing its own connection pool in favor of Oracle driver's embedded conection pool.
Kuassi http://db360.blogspot.com -
How to set background and other elements for each page of gallery?
I guys, I used th DW/FW Web Photo Gallery tool to make this gallery: http://12bar.co.nz/Gallery/index.htm then edited index.htm to make the page look a bit more attractive. However, when you click on any of the images you just get the ugly white background and black text.
Is there a way to make each photo page black background and insert navigational graphics without having to open and edit each one individually?
Thanks in advance for advice.
JoWhy not try using something like Lightbox. When you click on the thumbnail... this uses jquery, but it's very simple to set up:
http://www.lokeshdhakar.com/projects/lightbox2/
and there is this one: Pretty Photo with a few more options:
http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/
and lots more options for photo galleries, slideshows here:
http://www.1stwebdesigner.com/resources/57-free-image-gallery-slideshow-and-ligh tbox-solutions/
Nadia
Adobe® Community Expert : Dreamweaver
Unique CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
http://csstemplates.com.au/
http://twitter.com/nadiap -
How to set buildID.xml and custom.properties in SDK
Hello,
I just completed a new build deployment of SAP ME5.2, because after I deployed the new version, I don't think I have set a
correct version number.Can you someone give me a sample how to set the buildID.xml and custom.properties? I am a new on the SAP ME5.2
The Base version is ME_Base_5.2.5.16.5_netweaver-71_Update.zip and
MEClient_Base_5.2.5.16.5_netweaver-71_Update.zip. the HB customzation
version is ME_xxxxxx_2.0.0.0.x_netweaver-71.
Within the sap note 1484551, you mentioned we need change the
SDKInstallDir/build/buildID.xml file, here is the context of the file:
buildID.xml -
<?xml version="1.0" encoding="UTF-8"?>
<buildID xmlns:xs="http://www.w3.org/2001/XMLSchema">
<customer>XXXXXX</customer>
<revision>1.0.0.0</revision>
<build>1</build>
</buildID>
buildID.xml -
1. how can we change the revision and build?
There is another file BuildToolDir/build/script/custom.properties, here
is the file context:
custom.properties----
This file contains build properties used to configure the build
system.
The name of the software vendor implementing the customizations.
vendor.name=xxxxxxxxx
Vendor build identifier. This value is used to uniquely identify
customizations built by a particular vendor for a particular customer
and base
application version.
This is also used in path locations and in naming certain build
artifacts, like the custom EJB module and the utility classes archive.
vendor.id=xxxxxxxxx
The installation of the J2EE engine installed in the development
environment.
ex. C:/usr/sap/CE1\J00
j2ee.instance.dir=J2EEInstanceDir
The web context path used to access the main web application. This
is used by the build to set the
context-root value in application.xml after an update has been
imported.
web.context.path=
The web context path used to access the production XML interface web
application. This is used by the build to set the
context-root value in application.xml after an update has been
imported.
xml.context.path=
The web context path to access resources from the web extension
application, like images and work instruction HTML files.
web-ext.context.path=web-ext
The target database vendor. Valid values are 'oracle' or 'sqlserver'.db.vendor=ORACLE
The JDBC driver configured for the application server.
db.drivername=VMJDBC
JDBC connection propertes for the WIP (Work In Process) database.
This is the primary application database.
db.wip.driverclassname=
db.wip.driver.url=
db.wip.host=
db.wip.port=
db.wip.sid=
db.wip.user=
db.wip.password=
JDBC connection propertes for the ODS (Open Data Store) database.
This is the offline reporting and archiving database.
db.ods.driverclassname=
db.ods.driver.url=
db.ods.host=
db.ods.port=
db.ods.sid=
db.ods.user=
db.ods.password=
Flag indicating whether to add DPMO NC codes to NC idat files when a
new update is imported. This value is initially
set by the installer according the the user selection.
dpmo.nc.codes=
The default locale used by the production system. The default locale
is the locale used to display locale
specific text and messages when the requested locale is not
available. This property does not need to
be set if the default locale is english.
default.locale=en
Used when running the build from Eclipse to locate the java compiler
used by the WebLogic EJB compiler.
jdk.home=C:/Program Files/Java/jdk1.5.0_20
Compiler debug mode. If set to 'true', debug symbols will be
compiled into the byte code.
compile.debug=true
Keystore alias
security.alias=xxxxx
Keystore password
security.storepass=ChangeIt
Key password
security.keypass=ChangeIt
Keystore type (jks=default,jceks,pkcs12)
security.storetype=jks
Optional source control build identifier that is to be displayed with
standard version information.
scs.build.ID=
Optional extended version information to be displayed with standard
version information.
ext.info=
custom.properties----
2. How can we change this here?
Regards,
Leon Lu
Edited by: Leon Lu on Aug 4, 2011 11:14 AM
Edited by: Leon Lu on Aug 4, 2011 11:21 AMHi,
I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
You can do this in compound layout.
Regards,
Stefan -
How to set proxy authentication using java properties at run time
Hi All,
How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
=> Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
import java.io.*;
import java.net.*;
public class DnldURLWithoutUsingProxy {
public static void main (String[] args) {
URL u;
InputStream is = null;
DataInputStream dis;
String s;
try {
u = new URL("http://www.yahoo.com.au/index.html");
is = u.openStream(); // throws an IOException
dis = new DataInputStream(new BufferedInputStream(is));
BufferedReader br = new BufferedReader(new InputStreamReader(dis));
String strLine;
//Read File Line By Line
while ((strLine = br.readLine()) != null) {
// Print the content on the console
System.out.println (strLine);
//Close the input stream
dis.close();
} catch (MalformedURLException mue) {
System.out.println("Ouch - a MalformedURLException happened.");
mue.printStackTrace();
System.exit(1);
} catch (IOException ioe) {
System.out.println("Oops- an IOException happened.");
ioe.printStackTrace();
System.exit(1);
} finally {
try {
is.close();
} catch (IOException ioe) {
}However, it generated the following message when run behind the firewall:
cd C:\Documents and Settings\abc\DnldURL\build\classes
java -cp . DnldURLWithoutUsingProxy
Oops- an IOException happened.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
I have also tried the command without much luck either:
java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
Oops- an IOException happened.
java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
There is no problem pinging www.yahoo.com from this system.
I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
Java Control Panel - Use browser settings without success.
Thanks,
GeorgeHi All,
How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
=> Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
import java.io.*;
import java.net.*;
public class DnldURLWithoutUsingProxy {
public static void main (String[] args) {
URL u;
InputStream is = null;
DataInputStream dis;
String s;
try {
u = new URL("http://www.yahoo.com.au/index.html");
is = u.openStream(); // throws an IOException
dis = new DataInputStream(new BufferedInputStream(is));
BufferedReader br = new BufferedReader(new InputStreamReader(dis));
String strLine;
//Read File Line By Line
while ((strLine = br.readLine()) != null) {
// Print the content on the console
System.out.println (strLine);
//Close the input stream
dis.close();
} catch (MalformedURLException mue) {
System.out.println("Ouch - a MalformedURLException happened.");
mue.printStackTrace();
System.exit(1);
} catch (IOException ioe) {
System.out.println("Oops- an IOException happened.");
ioe.printStackTrace();
System.exit(1);
} finally {
try {
is.close();
} catch (IOException ioe) {
}However, it generated the following message when run behind the firewall:
cd C:\Documents and Settings\abc\DnldURL\build\classes
java -cp . DnldURLWithoutUsingProxy
Oops- an IOException happened.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
I have also tried the command without much luck either:
java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
Oops- an IOException happened.
java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
There is no problem pinging www.yahoo.com from this system.
I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
Java Control Panel - Use browser settings without success.
Thanks,
George -
How to set MQ message header properties using JMS adapter? (10.1.2)
Hello,
I am trying to send MQ messages from a BPEL process. We are using OAS 10.1.2 and JMS MQ adapter. Could you please let me know how to set the message descriptors like message format, type, report and reply to queue properties and queue open options (in jmsAdapterOutboundHeader).
Regards,
Geratayyaput something like this
<activationAgents>
<activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="PARNERLINKNAME">
<property name="clusterGroupId">SOMEUNIQUEVALUE</property>
<property name="portType">PARTNERLINK_PORTTYPE</property>
</activationAgent>
</activationAgents> -
How to set the lifetime properties of a document
Hi Experts,
Do somebody know how to set the lifetime attributes "valid from" and "valid to" via java of the lifetime properties?
Which java class should I use?
Do somebody have an example for this issue maybe?
Thanks in advanced!
Best Regards,
MarkusHi Markus,
Below is a sample method which i am using for setting expiry date for a KM Doc...
public void setTimeBasedPublish(IResource resource) throws WcmException {
IRepositoryServiceFactory repServiceFactory =
ResourceFactory.getInstance().getServiceFactory();
IRepositoryService repositoryService =
repServiceFactory.getRepositoryService(
resource,
IWcmConst.TIMEBASED_PUBLISH_SERVICE);
ITimebasedPublishServiceManager tpbService =
(ITimebasedPublishServiceManager) repositoryService;
java.util.Date startDate = new java.util.Date();
java.util.Date endDate = new java.util.Date();
endDate.setMinutes(
startDate.getMinutes()
+ Integer
.valueOf(getproperty("LIFETIME_MINUTES_FOR_LATEST_REPORTS"))
.intValue());
endDate.setDate(
startDate.getDate()
+ Integer
.valueOf(getproperty("LIFETIME_DAYS_FOR_LATEST_REPORTS"))
.intValue());
tpbService.saveValidDate(resource, startDate);
tpbService.saveInvalidDate(resource, endDate);
Regards
BP -
How to set ALV properties?
Hi,
I have some difficulties with an ALV grid report.
The program is too difficult for using the alv refresh method then we use the submit method to the program.
Using the submmit method users will lost their layout (filters,...). I found a FM REUSE_ALV_GRID_LAYOUT_INFO_GET which return all the properties of an ALV.
All this informations are sent in memory using export to memory. The informations are well returned.
I create the event END_OF_LIST in which I call the FM REUSE_ALV_GRID_LAYOUT_INFO_SET after importing the ALV properties. But no change on the ALV have been done... (no filter...)
Must i use an other event or an other FM?
Help!
Thanks.
END_OF_LIST:
CLEAR : ws_layout,
wt_fieldcat,
wt_sort,
wt_filter,
ws_grid_scroll,
ws_variant,
wt_marked_columns,
wt_filtered_entries,
wt_fieldcat_backend,
ws_print.
REFRESH : wt_fieldcat,
wt_sort,
wt_filter,
wt_marked_columns,
wt_filtered_entries,
wt_fieldcat_backend.
IMPORT ws_layout = ws_layout FROM MEMORY ID 'ZLAYOUT'.
CHECK sy-subrc EQ 0.
IMPORT wt_fieldcat = wt_fieldcat FROM MEMORY ID 'ZFIELDCAT'.
FROM MEMORY ID 'ZFILTERED_ENTRIES'.
IMPORT wt_fieldcat_backend = wt_fieldcat_backend
FROM MEMORY ID 'ZFIELDCAT_BACKEND'.
CLEAR gs_layout.
gs_layout = ws_layout.
CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_SET'
EXPORTING
is_layout = gs_layout
it_fieldcat = wt_fieldcat
it_sort = wt_sort
it_filter = wt_filter
is_grid_scroll = ws_grid_scroll
is_print = ws_print.Hi,
the post you indicates to me is the good way to refresh an ALV but this not my case. We can not use the good way that is the problem.
The way you put me in is not so wrong!
I try to use an event with a sy-ucomm and refresh the ALV with the rs_selfield-refresh = 'X' and its worksssssssss.
The the question now how to refresh an ALV by this way:
EVENT sy-ucomm.
form f_command_alv using fip_ucomm
fip_selfield type kkblo_selfield.
case fip_ucomm.
when 'ZREFRESH'.
perform f_refresh.
when 'TEST'.
perform f_set_alv using rs_selfield.
endcase.
EVENT ENDOF_LIST:_
form end_of_list.
PERFORM f_set_alv.
endform. "end_of_list
The difficulty is how to set rs_selfield-refresh to X in the second case or another way to refresh!
David31
Edited by: David31 on Apr 3, 2009 11:33 AM -
If I want to use java ORB to visit Visibroker ORB , how to set the Properties for init ?? can you help me ?
thanks !System.setProperty("org.omg.CORBA.ORBClass","com.inprise.vbroker.orb.ORB");
System.setProperty("org.omg.CORBA.ORBSingletonClass","com.inprise.vbroker.orb.ORB");You can get some examples here:
http://maris.site.lv/ejb.html
best regards,
Maris Orbidans
Maybe you are looking for
-
How do I back up my iphone5 to my ICloud account, whqen iI have forgot my restrictions password. My restrictions pass code has my icloud a account greyed out? Can i backup to a wd external harddrive, or try to backup to a new mini-mac, I just purchas
-
BPM Exception Branch: Condition?
Hi everybody, sometime our JAVA-stack makes some problems: SYSTEM FAILURE" during JCO-Call. In this cases some mappings fail and the BPM processes the exception branch. So we got the idea to put a wait step (e.g. 5 minutes) in the exception branch an
-
Hi All, Pls go through below scenario. My output type access sequence is as mentioned below. Sales Org / Bill Type / Customer group (Email - ZC) Sales Org / Bill Type / Customer group (Email - BP) Sales Org / Bill Type (Print) Routined 901 & 903 are
-
Ajax Testing issue with e-Tester
I'm new to using Empirix and we are using it to work with a new site that uses Ajax. I have recorded the script fine but there is an issue with the Link that needs to be clicked on that it will either always change or the index will change. I've trie
-
Unable to Deploy Content Portlet Ear in Oracle AS with Webcenter 10g
Hi! I am trying to deploy the oracle Content Portlet and use its wsdl url in my jdeveloper. But after following the initialization steps in the cps-installation guide, i tried deploying it in the Application server. When i click "deploy" the initial