How to get the domain name from the System
I need to get the domain name from the system in JDK 1.1.8
Any Ideas?
InetAddress.getLocalHost().getHostName() will get you the name of the computer the code is executed on. If that isn't the "domain name" then perhaps you could give more detail about what "domain" you are trying to find the name of.
Similar Messages
-
How to get ther servlet name from the Httprequest / servletContext
Hi,
How can I get the servlet name from the Http Request / Servlet conext?
ArthikI have a requirement to call the business logic either in local server / external server.
Local / External server
The original / main request is made to the server from the client and from the server if the main request requires some resource (second request from server side) available in the external server then I need to make a URL connection. If the requested resource is the local resource then I need to by-pass the HTTP call. So I need to verify the server name , port with the originally requested server.Then I need to check if the request servelt is available in local or not.
Can you please help me. -
How do I get IE to drop the domain name from authentication responses
All,
I have a number of internal www servers that run various non MS operating systems which are not tied to the windows domain in any way. They are secure www sites and require authentication.
When I connect to one via IE on a domain joined workstation or server (ie 8 & 9) I am unable to authenticate because I can not remove the domain name from the authentication credentials that IE is passing back to the www server. I get an authentication
prompt for user name & password with the domain pre populated.
How the heck to I get IE to NOT pass the domain name as part of the authentication process. I've tried putting .\ in front of the user name but to no avail.
Thanks,
Steve D.As you can see below, when you first attempt the auth it defaults to you domain user account... in this case win\username.
When you select use another account, you get the following with no means to remove the domain name which causes auth failure as this www server isn't a domain member and doesn't use the domain for auth.
How do I get rid of Domain: .... ???
Thanks,
Steve D. -
Domain name from the configuerd mail server
HI,
How to get the domain name from the mail server that i configure using java Mail..
Properties props = new Properties();
props.put("mail.smtp.host", mailServer);
mailServer has my mailServer name like email.something.com
in my application, from address is the one user sets.. if they forgot to set it and tries to send a mail then i need to send that mail with a default address like [email protected] where something.com must be the domain name.. so i juz want to know how to get the domain name.?
hope it is clear. can any of u help me out?There's no well-defined way to do this. The
simplest approach is to offer this as a configuration
option.
A more complicated approach would be to use
the host name of the mail server and look up
that name in DNS and try to find the DNS record
that tells which mail server to use for that host
name, perhaps stripping off elements of the name
until you find something. (And no, I can't explain
to you exactly how to do that.) -
How to get the Users Name from the SSL certificate?
Trying to achieve the following:
Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
Does SSO do this or something else?Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
File scriptFile = File.createTempFile("script", ".js");
FileWriter fw = new FileWriter(scriptFile);
fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
fw.flush();
fw.close();
BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
String uName = br.readLine();
br.close();
scriptFile.delete();
if (scriptFile.exists()) scriptFile.deleteOnExit();
return uName;
} -
Hello Experts,
I follow the flightbooking tutorial to create a Material application to get material list. I can start the agentry server but when I connect to SAP server and get data, I face below issue
Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER
I check the parameters name in SAP Agentry Config panel, all are correct. Why cannt it get the data. Do I have to add anything in javaBE.ini? Please help me. Thank you very much.
My javaBE
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=0
GET_PERSONNEL_INFO=
[SERVICE_LOGON]
ENABLED=true
UID=hngu3
UPASSWORD=xxxxxxx
UPASSWORDENCODED=false
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRTHi Tahir, please help me check the log below
Agentry Runtime Worker Thread###throwExceptionToClient::begin |
Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.material.steplet.MaterialSteplet::throwExceptionToClient::397::MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER |
Agentry Runtime Worker Thread###Exception: 17:15:35 06/17/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER), |
Agentry Runtime Worker Thread###loggedOut::begin |
Agentry Runtime Worker Thread###HNGU3: SESSION END |
Agentry Runtime Worker Thread###BAPI::begin |
Agentry Runtime Worker Thread###create::nulled repository::created new repository |
Agentry Runtime Worker Thread###create::/SYCLO/CORE_MDW_SESSION1_DEL Connection ID: com.sap.mw.jco.JCO$Client@2656ed99 |
Agentry Runtime Worker Thread###create::Function /SYCLO/CORE_MDW_SESSION1_DEL created | -
How to check my job name from the database...
I have written one job scheduler which is as follows :
SQL> ED
Wrote file afiedt.buf
1 DECLARE
2 X NUMBER;
3 JobNumber NUMBER;
4 BEGIN
5 SYS.DBMS_JOB.SUBMIT
6 (
7 job => X
8 ,what => 'scott.SPLITSMS;'
9 ,next_date => SYSDATE+1/1440
10 ,interval => 'SYSDATE+1/1440 '
11 ,no_parse => FALSE
12 );
13 JobNumber := to_char(X);
14* END;
15 /
PL/SQL procedure successfully completed.
Now I want to check whether the job has been really created or not?
so for that I have used the following command line:
SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
ERROR at line 1:
ORA-00942: table or view does not exist
how to check my job name from the database...
what is the command used to check the job_name ????
and how can i ensure that my job scheduler is running properly...???
please help ........my dear friends.....!957029 wrote:
Now I want to check whether the job has been really created or not?
so for that I have used the following command line:
SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
ERROR at line 1:
ORA-00942: table or view does not existYou can use DBA_* views only if the User has been Granted a DBA Privilege.
how to check my job name from the database...
what is the command used to check the job_name ????You can use USER_JOBS view to check. But, is it not that you have just created the Job, so you must be knowing it?
and how can i ensure that my job scheduler is running properly...???If USER_JOBS.FAILURES is Non Zero, that means the Job has encountered a problem that needs to be Investigated. Similarly, the LAST_DATE, LAST_SEC, NEXT_DAY, NEXT_SEC can be used to determine if the Job has been running successfully.
if you are on 11g, you should consider using DBMS_SCHEDULER. -
Getting the domain name of the Client PC using WebUtil
Hi Guys,
Is there a way I can find the domain name of the computer running the forms using webutil.
I use WEBUTIL_CLIENTINFO.GET_HOST_NAME to get the client computer name. I would also need the domain name.
Thanks!
AnandTry this:
message(CLIENT_WIN_API_ENVIRONMENT.GET_ENVIRONMENT_STRING('USERDOMAIN'));I believe if no domain is defined, it will return the host name. Also, this obviously will only work on Windows clients. -
Is possible to get the page name from the _pageid
Is possible to get the page name from the _pageid displayed in the url?
It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
Thanks in advance.You have you execute this query, using both the numbers included in the parameter pageid:
select display_name from portal.wwsbr_all_folders
where caid = :first_number
and id = :second_number -
How to get IDL file name from CORBA IOR string
hi, is it possible to get IDL file name from the IOR string? how?
regardsHi,
I don't think so.
And if it was possible, which interface should be returned if
the referenced object implements more than one?
Regards.
Karl -
How to retrieve the fully qualified domain name from the IP Address?
Hi,
How can i retrieve the commplete host name along with the domain name (something like x.y.com) of a server?
I tried using the InetAddress.getHostName(), getCanonicalHostName(), etc but it retrieves me only the host name (only x in x.y.com)
Is there a way to solve ?
Thanx and Regards
Biju NairgetInetAddress() of Socket Class will return the remote IP address in a InetAddress object.
Use the object with the getCanonicalHostName() of InetAddress class.
I may be wrong though. Cheers! -
How to get the transaction name from the Webdynpro portal in SRM 7.0
Hello Experts,
Would you please let me know the procedure to get the current transaction name from the SRM 7.0 portal.
Is there any similar procedure like in ITS to get the transaction Name/Template Name in "View Source" of the portal. Our primary requirement is to find the root cause(by debugging) from SAP GUI.
Your pointers on this will be very much useful & worth the points.
Thanks & Best Regards,
Vishnu Reddy SangatiHi!
Try this thread:
http://help.sap.com/saphelp_nw04s/helpdata/EN/80/b2dd3a6dac703be10000000a11405a/frameset.htm
brgs Ziggy -
How to get first 10 records from the database using JSP
i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.
Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
Kind regards,
Levi -
How to get a server name through the load balancer
Hi.
I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
Any suggestions?
Thanks.Dear Sikindar;
THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
Appreciating your cooperation.
Best Regards;
Lobna -
ADF BC - How to get validation picked up from the database.
Is there a way the ADF BC can be created so it contains the check constraints from the database?
I assume if it did, it would pre-fill the "validation" branch in the Entity Object Editor.Frank,
Thank you very much for your reply. I've set "valuePassThrough" property of the dropdownlist to true. In the valueChangeListener, my code looks like this.
public void TD_valueChangeListener(ValueChangeEvent valueChangeEvent) {
System.out.println("+++++++++");
System.out.println("TD_valueChangeListener");
Number n = null;
BindingContainer bc = this.getBindings();
if(bc != null){
System.out.println("bc is not null");
//get the selected TD
FacesCtrlListBinding TdIter = (FacesCtrlListBinding)bc.get("LandLegalView1Td");
if(TdIter != null){
System.out.println("TdIter is not null");
if(valueChangeEvent.getNewValue() != null)
try{n = new Number(valueChangeEvent.getNewValue());}
catch(Exception e){
e.getMessage();
System.out.println("selected TD index="+n);
//Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");
Object td = TdIter.getAttribute(n.intValue());
System.out.println("real value of td=" + td);
}else{
System.out.println("TD is null");
}else{
System.out.println("TdIter is null");
My question here is: I tried two ways of getting the real value of the new selected value. One is "Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");". The other is "Object td = TdIter.getAttribute(n.intValue());". None of them give me the new selected value but the old value. Did I do anything wrong?
Regards,
Annie
Maybe you are looking for
-
how to find and replace data in form fields in acrobat xi, its not allowing to do so while trying, asking for adobe livecycle to get installed. please help.
-
Most recent gnome-shell update (3.2.0-2) is eating my cpu alive!
Ever since I updated to the 3.2.0-2 gnome-shell, my cpu sits at around 60% idle. This slows down a lot of things including overlay mode. Is anyone else experiencing this? There was also the kernel update (3.0.6-1), not sure if this would contribute
-
Elements 11 organizer stops working
My elements 11 organizer stops working (not responding message) or is very slow that is when it does'nt blue screen my PC. If I am doing anything else my PC runs fine but as soon as I try to open elements it crashes. I have tried running elements wi
-
South America localization with comma decimal points
Hello All: I am doing a simple division on a formatted search. However it is south america localization and it has the comma as decimal point instead of period. If I just do value 1 / value 2 it give me error message. if I replace , and then cast
-
VPN turns off when the phone is locked
when im on my iphone the vpn stays on but as soon as i lock it it turns vpn off