Find product name and version using JNDI
Is there any consistent way to find the directory servers product name and version using JNDI. Our software is being used with iPlanet 5.1 and SunOne Directory Server and I need to distinguish between them. Currently I use some code (see below) to look for an object under o=Netscape root branch. But the object I am looking for is apparently (so my sys admin tells me) created as part of the administration server install.
public static String[] getNetscapeFamilyDirectoryServerDetails(String ldapHost, int ldapPort, String principalDN, String principalPassword) throws NamingException {
try {
NamingEnumeration result = performLdapQuery("ldap://" + ldapHost + ":" + ldapPort,"o=NetscapeRoot?nsproductname,nsproductversion?sub?(&(objectclass=nsApplication)(cn~=Directory))",principalDN,principalPassword);
if (result.hasMore()) {
SearchResult sr = (SearchResult)result.next();
Attribute attribute = sr.getAttributes().get("nsproductname");
String productName = (String)attribute.get();
attribute = sr.getAttributes().get("nsproductversion");
String productVersion = (String)attribute.get();
return new String[]{productName,productVersion};
catch (Exception e) {
if (e instanceof NamingException) {
throw (NamingException)e;
return null;
}
SELECT 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';
Similar Messages
-
How to find Mobile device OS name and version using Flex?
is there anyway to get device information like OS name and version using flex 4.5.1 or 4.6 SDK. i am developing a project in Flex which needs to identify the end user mobile platform like Android, iOS.. and its version like Android means 2.1,2.2,etc..
Anyone can help me on this?I don't know that there is a proprietary driver. In fact, I'm sure there isn't because I never installed one. I figured there was some code file somewhere that dealt with keyboards. Yes, I have dealt with the developer, they say to tell Apple there is a problem. I have been putting it off and waiting to update since 10.6.3, so the problem is getting a little old. Do I even know there is a problem? I'm not sure what this means. I do know that when I update my operating system past 10.6.2 my keyboard no longer works, and I have to use a stock Apple keyboard to run a time machine reinstall. Why else would I be going through this?
-
Determining the browser name and version using an applet
hi all,
can we determine the version and the name of the browser using an applet. If it can be done then plz can anyone tell me how to do it.
ThanxHello trogan,
>>How do I access the class name and method of an exception within my program? Pretty basic stufff I know, but can't seem to do so.
Since you post your question to this forum, I assume that the exception is thrown by your .NET application, in .NET, as far as I know, an exception is represented by a Type in actual, since it is a type and I assume that you catch the exception as :
try
catch(exceptionobject e)
//process excetion
we can use
reflection to get all information from the instance “e”of the exception.
For your second question, it seems to be related the usage of Visual Studio, I suggest that you could post it to
Visual Studio forum.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Get Application Server Name and Version
Hello All,
Is it possible to get the Application Server Name and Version using Java?
To simplify my question, if I am running Weblogic, the jsp page should tell me that I am running Weblogic Version <number> or IBM WebSphere Version <number>.
ThanksI get an error when I put this line in my jsp page:
out.println(" Server Info: " +getServletContext().getServerInfo());
Is there something I am missing?
symbol : method getServletContext ()
location: class jsp_servlet._jsp._mu.__showmxversion
out.println(" Server Info: " +getServletContext().getServerInfo()); //[ /jsp/mu/showMXVersion.jsp; Line: 16] -
All,
Applogize for posting non-oracle questions.
1.How to find out the host name and version of the OS on Linux and Solaris OS.
2. How to find out the free space on Solaris in terms of GBs.
ThanksFor question 1 on any UNIX system you should be able to use the uname command like in uname -n or uname -a
For question 2 do you mean memory or disk when you ask about free space?
Look up sar and df and du.
HTH -- Mark D Powell -- -
Procedure on Product Group and Versioning in MD61
Hi,
Can anybody send me a step-by-step procedure on how to execute the product group and versioning function in MD61at ching_pb @ yahoo com?
Tnx.
RegardsDear Ching,
Are you working in an SAP version ECC 5.0 or 6.0?Then follow these steps.
1.Create a material using material type PROD in MM01.
2.Assign the materials to the product group in MC86.
3.Create a plan for this product group in MC81 for an inactive version.
4.Disaggregate the plan or create a production plan in MC76 for the same inactive version.
5.Transfer the requirement's to demand management in MC76 from inactive version to active version 00.
Check and revert back.
Regards
Mangalraj.S -
How to find the columns and tables used in a stored procedure?
Hi,
Can someone suggest how to find the columns and tables used within a stored procedure?
Thanks
VBKFor example:
SQL> create or replace
2 procedure p1
3 is
4 cnt number;
5 begin
6 select count(*) into cnt from emp;
7 end;
8 /
Procedure created.
SQL> select referenced_owner,
2 referenced_name
3 from dba_dependencies
4 where owner = 'SCOTT'
5 and name = 'P1'
6 and referenced_type = 'TABLE'
7 /
REFERENCED_OWNER REFERENCED_NAME
SCOTT EMP
SQL> SY. -
Table names to find Program names and Table names
Hi All,
I want to find Program names and Tables names where Transaction codes are not been created.
If TCodes are created I can find from TSTC.
But programs and tables which does not have tcodes.
How can I find them?Hi Praveen Kumar
You know the program name go to se38 and find out if u know table name go to se11 and find out .if you want to see both where there are used in which program go to se80 it would be easy.
How to trace in se80 . select programe and down give programe name you will gte it. -
Operating system name and version
HI, I was wondering where SCCM gets the value for "system resource - Operating system and version" from.
I have created a limiting collection for servers based on "%windows server%" query and a limiting collection based on "%windows workstation%" for workstations.
Now I noticed that there is also a value "Windows 7 Entreprise 6.1" for system-resource - Operating system name and version.
Therefore I would like to know where this information comes from as I can no longer be sure tat every device is covered by using "%windows server%" and "%windows workstation%"WMI: Win32_OperatingSystem or from AD (don't have a console next to me right now to look that up)
Torsten Meringer | http://www.mssccmfaq.de -
Hi,
I built an InDesign Extension using Flash Builder 4 and CS Extension Builder libraries.
Extension works good, I just want to change its name and version as I see it in the Extension Manager CS5 (under Extension column I see: "com.example.exampleExt"...).
How can I do?
I tried editing the manifest.xml file but it didn't work.
Thanks.Yes. That's the easiest way.
FWIW, My script here makes it easy to restore prefs:
http://in-tools.com/wordpress/indesign/scripts/preference-manager-script
Harbs -
In which table can I find the name and surname for a username ?
Hello,
I search the table with the master data of users. Specially I search the table where I can find the
name, surname for a user.
In which table can I find the name and surname for a username ?
Thanx in AdvanceHello everybody,
thank you for the helpful informations.
thank you very much
with kind regards
cetoman -
Recently I have been getting this error message when I try to record an audio track in Logic... "File with specified name and version number already exists. Result code = -48." WHAT IS THE PROBLEM?????? It's making me furious!
Hi
As the message says, there is a file at the recording directory that has the same name:
http://support.apple.com/kb/ht1618
Try changing the name of the track (this sets the filename in later versions of Logic 9
CCT -
My phone was stolen, I have moved it in lost mode,but I can see that whoever has it,is changing phone name and can use it until I activate lost mode again.Can I do it permanently? How can I cancel ICloud back for the stolen phone, as I cannot delete the stolen phone backup (says that backup is being in use) and this is keeping memory occupied in the Cloud and I cannot back-up the other devices.
http://support.apple.com/kb/ht2526
-
Import Product Price and Condition using LSMW IDoc method
Hi Friends,
I am working on the Product Import to CRM from flat file using LSMW IDoc method using the "CRMXIF_PRODUCT_MATERIAL_SAVE" message type.
I am able to import the entire product with its required details except the Price and its conditions.
Can anyone please let me know which structure or with message type to be used to import the Product Price and condition using the IDoc method.
Please pass on your valuable comments.
Thanking you,
NaveenHi Naveen.
I am doing the same thing but only the product gets created and the details like short text, unit etc. do not get populated. The idoc gets processed successfuly. Can you share the fields that are required to be mapped or are mandatory. -
How to find out internet explorer version ,using a java program?
How to find out internet explorer version ,using a java program?
Browser version from java?....you must be referring it from some web application....rite?
You can read the User-Agent header using request.getUserAgent() or request.getHeader("User-Agent") in your jsp or servlet.
for more details pls refer:
http://www.jguru.com/jguru/faq/view.jsp?EID=12253
Maybe you are looking for
-
For Movie sound tracks, how to Make sound? Auto Normalize is dangerous
I'm not sure how to do this. But i'm making an animation movie. i lay sounds(Mp3's etc i downloaded from websiteis) in about 3 different Normal audio tracks. I add sounds ettects(GB rain, etc) too and also later on i will add a music track. The probl
-
Photo not maintaining alignment in preview! HELP!
I'm tyring to make a portfolio website for film. I have several thumbnails which I've laid out pretty precisley. It looks great in design mode but when I preview it the picture farthest to the right goes way over to one side (I've attached a screenca
-
How do I get my songs to music library and apps to show in Itunes
Yesterday I had to do a complete fresh install of iTune 10.3.1.55 on my windows 7 64bit machine. Previsouly to performing the fresh install I had my complete music library and iphone apps located on my network storage device drive as follows: Netgea
-
Mac OS X 10.5.8 - can i update to a 10.6.8 or later version, or do i need to purchase an upgrade?
-
Reinstalled snow leopard again, but still no free space? HELP!
Hi all, im still very new to all this so hope someone can explain it in simple terms for me! My macbook only has 20GB left and is chock full and running quite slow, so I went into mac store recently and the very helpful guys told me to do the followi