Getting WLS host url and port number
Hello Experts,
I need to forward an authenticated request to JAAS LoginModule. How can I get wls host name and port numbe in the LoginModule?
Thank you in advance,
Thanks for reading my post
Hi friends.
I have used the last post, but it is not working.
Mat be the API had changed.
What class or interface could give me this data in web dynpro component?
Too, I'm using the SAP NetWeaver Developer Studio
Version: 2.0.16
Build id: 200602130353
Thank you.
Manuel Loayza
Living La Vida JAVA
Edited by: Manuel Loayza Gahona on Jul 23, 2008 6:54 PM
Similar Messages
-
How to get the Host name and port number
Hi all,
I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
Regards,
VinothHi Kanagaraja,
My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
Thanks for your reply.
-Vinoth -
Getting host name and port number from application
Does anyone know how I would be able to get the host name
and port number from an application launched by java webstart ?
This is the host and port of the URL that this application is launched from.A couple of suggestions:
-The note is about 6.40. Doesn't fit for your server
-Don't!
-Reinstall!
Regards,
Benny -
Getting host name and port number from an application
Does anyone know how I would be able to get the host name
and port number from an application launched by java webstart ?
This is the host and port of the URL that this application is launched from.A couple of suggestions:
-The note is about 6.40. Doesn't fit for your server
-Don't!
-Reinstall!
Regards,
Benny -
Replacing Host Name and Port number throughout Environments
So I am currently working on a project that have several classes using simple JDBC code. I'm switching all of it to use JNDI instead of what is currently being used. I'm using Weblogic and the plan is to have the code run in a cluster.
Here is a code Snippet of some of the code.
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,
"t3://hostname:port");
My problem lies in the the "t3://hostname:port" String. I don't want to hardcode that since I know its bad code practice but my question is what is the best way to replace that with the Host Name and Port number as I move environments. Should I have a Class with a Static Variable and just reference that through the other classes or should I put it in some Property file and read the value from there? Any insight into this would be greatly appreciated.
Thank you.would it be something like this?
Properties properties = new Properties();
try {
properties.load(new FileInputStream("src/jndi.properties"));
String url = properties.getProperty("url");
System.out.println(url );
} catch (IOException e) {
} -
Change portal URL and port number
Hello experts,
We are on EP 7.0 which is running on Solaris 5.10 and Oracle 10g.
Portal url is "http://hostname:50200/irj".
But we want to users to logon portal using "http://intranet" link.
How can we forwards portal default url to a different URL and port such as "http://intranet".
Steps should be followed in Visual Admin& Config Tool or in the Solaris system , in the network part?The link pointed to how to change the default page of the Java engine to launch the portal. The example redirects to /irj/portal/anonymous - you just want to make it /irj/portal...
Setting up SAP Web Dispatcher is covered in SDN quite well - search for SAP Web Dispatcher in the search aree on the right. Basically it takes about 5 minutes to setup.
Cheers -
Getting current portal url and port no
Dear all,
Please let me know how to get the current portal hostname and port no . We are accessing the port thru <b>virtual hostname</b> and not by physical server name. We are using EP 7.0 SP10 . I need this virtual hostname and port no to build the url to access the images stored in server from Web Dynpro. I have created http alias for the images folder in the server. I need to build the url like <http>://<hostname>:<port>/<image alias name>/***.jpg to access the images from server.
Pls also share any other suggestions to access the images from the sever thru web dynpro
Thanks in Advance.
Regards
VasudevanHi friends.
I have used the last post, but it is not working.
Mat be the API had changed.
What class or interface could give me this data in web dynpro component?
Too, I'm using the SAP NetWeaver Developer Studio
Version: 2.0.16
Build id: 200602130353
Thank you.
Manuel Loayza
Living La Vida JAVA
Edited by: Manuel Loayza Gahona on Jul 23, 2008 6:54 PM -
Getting the IP address and port number and placing it in a window
Hi Everyone,
I have written the code which gives the system time in a window. But I need also to have the Internet address and the port number of the client in the window. the TimeserverRF considers incoming DatagramPackets as a request for the current time, if the client wishes to receive the current time from TimeserverRF, it has only has to send a DatagramPacket to TimeserverRF.
I am not sure how to do this writing DatagramPackets .
I have the TimeClient class application. Timeclient should send the Internet address and the port on which it is running.
Do You have any ideas.
// the code for system time.
import javax.swing.*;
public class Window1 {
public static void main(String[] args) {
JFrame win = new JFrame("TimeServer running on port 9999");
JTextArea tA = new JTextArea(1, 30);
win.getContentPane().add(tA);
win.pack();
win.setVisible(true);
String s1; // initialise variables
TimeData t1; // TimeData object initalise to t1 variable
t1 = new TimeData(System.currentTimeMillis()); // start of loop body
s1 = t1.toTimeString(); // system time held sring s1
tA.append("Sent "); tA.append(s1); // Prints statement and time in Frame
}Study this networking tutorial and then, if you have a specific question, create a new post with it.
http://java.sun.com/docs/books/tutorial/networking/index.html -
Find host name and port number using query
Hi,
How do find the system_name, host_name and port no
using sql query or data dictionary.
plzSELECT i.instance_name, i.host_name, f.release_name RELEASE, i.version, k.patch_level FROM
v$instance i, fnd_product_groups f, fnd_product_installations k WHERE
UPPER(SUBSTR(i.instance_name, 1, 4)) = UPPER(SUBSTR(f.applications_system_name, 1, 4)) AND
k.application_id = '200'; -
SDK : how to get the server adress and port ?
Almost everything is in the title, I'm look for code to get the server URL and port where the ME is running ;o)
There should be some standard API I guess.
Thanks
RegardsHi,
In the code that I write I usually have access to the HTTP Request Object.
String serverName = request.getServerName();
String serverPort = request.getServerPort();
Then I just do a compare on the returned value to see if I am on our Test or Production server.
if(request.getServerName().indexOf("prodservername") >= 0)
// PRODUCTION CODE HERE
else
// TEST CODE HERE
Hope this helps,
Mike -
hello colleagues,
In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
Error,
Connect Diagnostics Agent
The table does not contain any data
Agent availables in all SLD
SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
ThanksOK, then pls follow below steps;
- Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
- Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
- If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
Let me know the results.
Regards,
Vivek -
Application server name and port number
Hi
Is it possible to get the application server name(ip) and port number at runtime. Becuase i want to open an html file which is in the application server, when a button is pressed by using web.show_document ();
Can anyone guide me please.
Thanks in advance
geethuapplication server name and port number
-
Given raw IP and port number,create a scoket.
Dear All,
Given a raw IP number 126.124.35.41 and port number 1950,how to create a socket? I am going to use
Socket s = new Socket(InetAddress address, int port)
I know the key is to use raw IP to create a InetAddress. But how?
Thanks a lot.
KevinBy the way, if you like to get InetAddress, you can do it by
InetAddress address= InetAddress.getByName("126.124.35.41"); -
Configuring server name and port number through action links - obiee11g
Is it possible to configure host name and port when using action links ?
Say some session variables hold these values. Is there any way to use these values ?
Thanks
SMAny pointers ?
-
How to get Host name and port inside UDF
Hi,
I want to access the Host and port in UDF to pass it to a link http://host:port/AdapterFramework/ChannelAdminServlet?party=&service=&channel=*&action=status dynamically.
How can I acieve it?
ManishaHi
With this code. I am getting error:
try
java.net.InetAddress addr = java.net.InetAddress.getLocalHost();
String host = addr.getCanonicalHostName();
catch (UnknownHostException e){}
if (ProcessMode.equals("P"))
try{
String xyz="/AdapterFramework/ChannelAdminServlet?party=&service=&channel="Name"&action=stop";
URL server = new URL("http", host, 8XXX, xyz);
tring userPassword =Userid + ":" + Password;
String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());
URLConnection uc=server.openConnection();
uc.setRequestProperty ("Authorization", "Basic " + encoding);
BufferedReader br = new BufferedReader(new InputStreamReader(uc.getInputStream()));
while ((inputLine = br.readLine()) != null)
output+=inputLine;
br.close();
catch (Exception e){}
ERROR:
cannot resolve symbol
symbol : variable host location: class com.sap.xi.tf._MM_CommunicationChannel_Stop
_ URL server = new URL("http", host, 8xxx, xyz);
^ 1 error
Any other way to get host and port?
Manisha
Maybe you are looking for
-
I have written a routine that loads a Hex file, checks for record marker,length,address etc then loads the data into a table on front panel. However, my routine only loads single record hex files. I need to be able to load multiple record files, I ne
-
Intermittent iPhoto sync problem
I've had an iPhone 4 for the past 4 months. Recently (around when I upgraded to iLife 2011), iPhoto sometimes does not "see" my iPhone. I'll plug it in, iTunes will open and start to sync, but iPhoto just sits there and the iPhone doesn't pop up in t
-
i made music purchases in indian store from 6months and now i see all my music purchases are removed from my purchases and i am not able to find them any more except few recent purchases.. i invested lot of money now i see all are lost.. what can i d
-
Is it possible to change the database instance host ??!!
Hello, Quick question, I finished the installation of XI 3.0 with all patches. But the system is running low, very low on resources even though it has 2GB of RAM. I was wondering if it is possible to migrate the <SAPID> database and then re-configu
-
DEV- QAS : Obligatory transport target for business system not found
Hi guys! I have read all the other threads about this subject, but since I still have no success, I´m feeling obligated to ask you for a help (deadline approaching fast!) I´m trying to transport a Communication Channel, from DEV environment to QAS. I