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.??
Thanks
hi
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
Similar Messages
-
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 iframe src from java dynammically
Hi,
Iam calling a servlet from jsp and servlet calls the databse query and returns the value,
in my jsp i have ifrme, i want to change the source of iframe from java depends on the result from database , and the result must display on the iframe can any one tell me how to do thisaurelian_cl wrote:
I need to know how to set environment variables from java
I want to set from java for example the environment variable "TestVar" with the value "TestValue"!1) That functionality does not belong in an application. You're trying to set environment variables, which are global across all applications, at either the user level as a whole, or across the entire machine (system level). Or, if you're only trying to set a variable active for the current process, you don't need to do that.
2) Environment variables are not a platform-independent entity, and are thus against the nature of Java.
My gut feel is that you are designing something in a backwards way, so my point is mainly to point that out, not to try to help you solve that particular problem. -
How to set variable to run java and j2ee
how to set variable to run java and j2ee
Please ask a specific and comprehensible question. Consider describing with less vagueness the actual current problem that you are encountering.
-
How to set environment variables using java program
Hi all
I want to set environment variables on windows 98/200/xp system, such as path and classpath using a java program.
How to do this using a java program.
Any body plz helppppppppp.#1 05-02-2003, 07:38 AM
Goodz13 Join Date: Jan 2002, Posts: 985
Location: Halifax, NS, Canada
Reputation:
Java FAQ's and tutorials
Java FAQ's
Path and ClassPath:
PATH
In Windows 9x you would set it up in the autoexec.bat file
ie.
SET PATH=%PATH%;c:\jdk1.4.2\bin\;
where c:\jdk1.4.2\ is the path where you installed Java.
In Windows 2000 and XP
Right click on My Computer->Properties->Advanced Tab->Environment Variables... Button.
If you see a PATH in System Variables, click that and edit it. If you don't, you will need to create a new System variable.
It should look something like this:
%SystemRoot%\system32;%SystemRoot%;c:\jdk1.4.2\bin\;
Any querry email me to [email protected]
Answer by
Rajasekhar Goli
DS UNICS Infotech -
How to set portal context using Java/JPDK api.
Hi,
I am in the process of converting pl/sql based database provider contect portlets to Java based JPDK. I ran into issue where the database provider portlet users were getting context auto matically. Now with Java/JPDK portlets , I am receiving no data found error, since the context is not set. The pl/sql is setting wwctx_private_api.set_context ('portal') to set the context. From Java if we call this api, it is taking a toll on the performance and the portlet times out.
Can any help how to set the context for a web provider using JPDK or any other better solution. Any immediate help is highly appreciated.
Thanks,
Rav.Hi
We are trying to access content views for e.g portal.wwsbr_all_items s, portal.wwsbr_all_content_areas c,portal.wwsbr_all_folders f, from aweb provider portlet. When we do a select on those objects , we are getting java sql exception saying "ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL.WWCTX_SSO", line 1745
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL.WWCTX_SSO", line 1579
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "PORTAL.WWCTX_SSO", line 1834
ORA-06512: at "PORTAL.WWCTX_API", line 199
We need to know how to accesss the above views from a jsp based portlet.
A -
How to set FOCUS on applet (java-plugin)
I wrote applet using Java 1.3.1, using swing clasess.
I use java-plugin, defined in <object ..> and <embed ..> tags as described in documentation,
with MAYSCRIPT parameter and ID and NAME parameters defined.
How to set up focus on this applet through JavaScript?
I have tried:
document.embeds[0].focus()
document.applets.MyApplet.focus()
document.objects.MyApplet.focus()
document.objects[0].focus()
document.MyApplet.focus()
But nothing works in my IE5.x or NC4.7. Applet itself works fine.
Is some special methods need to be defined in JApplet to catch the focus?
Thanks for any advice.I wrote applet using Java 1.3.1, using swing clasess.
I use java-plugin, defined in <object ..> and <embed
..> tags as described in documentation,
with MAYSCRIPT parameter and ID and NAME parameters
defined.
How to set up focus on this applet through
JavaScript?
I have tried:
document.embeds[0].focus()
document.applets.MyApplet.focus()
document.objects.MyApplet.focus()
document.objects[0].focus()
document.MyApplet.focus()
But nothing works in my IE5.x or NC4.7. Applet itself
works fine.
Is some special methods need to be defined in JApplet
to catch the focus?
Thanks for any advice.With IE you should try the following:
<OBJECT id='MyApplet' ...
document.MyApplet.requestFocus();
This worked fine for me, even without specifying additional "MAYSCRIPT" or "scriptable=true" tags. Obviously this construct managed to call the public Java method "requestFocus()" from JavaScript.
Maybe something similar would also work for Netscape. I felt no need to do this when running in Netscape, because the Netscape browser handled focus management without problems.
For IE I tried to workaround a problem mentioned by several people in this forum: The focus will not be regained by an applet when the user switched form IE to another application and then returns back to the browser window which contains the applet.
Unfortunally the following code fragment worked only partially well:
function activated()
if (isIE)
document.MyApplet.requestFocus();
return true;
window.onfocus = activated();
OnFocus is invoked only each second time when the browser window gains back focus.
I'm still looking for a real solution, so I'd appreciate if anybody could come up with one.
Hope this helps a bit
Bernd -
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 applet parameter in java code?
Hi All,
Instead of setting applet parameters in JSP page, Now I have a need to set
applet parameters in java code. But I can't find a method that allow me to do this. There
is only getParameter but seems no setParameter method.
Any help is appreaciated.
Thanks,
ChrisTake a look at set_custom_property:
public static final ID SETTEXT = ID.registerProperty("SETTEXT");
public boolean setProperty(ID pid, Object value)
if (pid == SETTEXT)
String text = value.toString();
and in forms
set_custom_property('beans.bean_item', 1, 'SETTEXT', 'some text');
cheers -
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 a variable in JAVA ?
I am using following code to load a file
properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("FILENAME"))
This works fine but I dont want to hardcode the filename, instead I want to use a menthod which rerutns me the file name to be supplied here.
How can I set this in two steps ?
That is if methodA returns the filename then
I want to do something like unix export
FILENAME=xxxxxxx
& then use FILENAME in quotes in above code so that the value is passed on.
Please help me to do this.
ThanksHow can I set this in two steps ?
That is if methodA returns the filename then
I want to do something like unix export
FILENAME=xxxxxxx
& then use FILENAME in quotes in above code so that
the value is passed on.
Please help me to do this.You probably need at least three seperate objects. One to create references based on supplied requirements, one to manage the loading which uses the first and then perhaps a third which provides the saving and retrieving of the references. This is if you plan to scale-up the application. If you don't want to use environment variables you could also look at using serialisation. -
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 proxy information in JAVA.NIO framework MINA or Netty?
Hi all,
THERE IS NO PROXY SUPPORT VIA JAVA.NIO.
How to use MINA or Netty,other framework support proxy?
Thanks in advance!The forum is focus on questionNo. The forum is provided by Sun and latterly Oracle to talk about core Java programming: in this case the Java networking APIs. Questions about 3rd party products should be directed to the people who supply them. And asking questions in places where the relevant expertise isn't concentrated is not a rational strategy.
I think you really need patience as a professional expert.Expert, yes. Professional? Is somebody paying me to post here?
And don't talk to me about patience. You have already completely exhausted any patience I may ever have had by repeating a question five times after I had already answered it. Judging by the below you are now in the process of repeating that process.
The information is shared by anybody.Correct, including me, and including the information that there are better places to ask than here about 3rd party products.
Besides, I think I submitted right question on right place.Then once again you are proving yourself incompetent, as I have already told you that it isn't the right place. -
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 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
Maybe you are looking for
-
Materialized views are showing up under Tables in SQL developer 2.1.0.63
Please, Is there any setting to not display materialized view objects under the Tables in sql developer 2.1.0.63 ? This was not happening in previous versions. Thanks.
-
How can I make a fence disappear in PS CS6?
Hi, I can select the fence - change the color but how can I make it appear to disappear Thanks, for constructive help... Best, Bee
-
MM COnsigment stock: Unable to issue against reversation
dear all , we are trying to prototype a MM consigment stock process. we have done the following 1. Purchase info record is created as consigment 2. PO is created. while creating the PO, the net price is coming as Zero. 3. Migo was possble with item c
-
During user mode hot backup lots of redo gets generated as the entire block is written when any changes are made to a block which is in hot backup mode.But during Rman hot backup less redo are generated why is this so and whatz the logic invloved? an
-
hi this is bekm, working on sap-isu, and want to shift to real estate, can any one send me the materials regarding to real estate regards