Java customization - getEnvrionmentValue

Hello,
Here is my problem.
I used to work on Stellent 7.1.1 (Site Stduio 7.2) and I had a custom component with a ServiceHandler. In this java code, I retrieved the "IntradocDir" variable by executing the following command :
String s = m_binder.getLocal("IntradocDir");
Now I am working on UCM 10gR3 (with one of the latest release of Site Studio) and the previous command returns : "null".
Does anyone know how to retrieve "IntradocDir" (or another variables from intradoc.cfg) in java ?
I really need this.
Thank you in advance.

Try this:
String IntradocDir = SharedObjects.getEnvironmentValue("IntradocDir");
Generally speaking environmental values are usually available from the binder's getEnvironmentValue method, but different services and filters appear to load different sets of values depending where you are hooking in.
Usually if it's not in the binder, then the SharedObjects object is my next spot to check. That's a static method too, so just add an import for intradoc.shared.SharedObjects.
David

Similar Messages

  • Questions on SAP Biller Direct Java Customization

    Hi,
    I am working on SAP Biller Direct java customizations. Can anyone help me find answers to these questions.
    --  I have created local DC from the Biller direct track in NWDI. I would like to change the User registration page in Biller Direct.
    Can any one let me know the JSP page name for that and where can i find it in the components.
    --- Also all this development do i have to do it in J2EE perspective and checkin my changes?
    Also i would like to know if anyone can send some documents on devlopment part of Biller direct.
    Thanks
    Edited by: Aparna on Aug 20, 2009 12:33 PM

    Hi Aparna,
    I have a couple quick questions about BD development and would really appreciate it if you could provide some advice since we are starting our build soon.
    In my NWDI track, I have component FSCMBD and several other of the required SAP components. I did not create a new product or component, just followed the procedure in this thread: https://forums.sdn.sap.com/thread.jspa?threadID=1331894. Is that the method you recommend?
    I am concerned about doing development directly on the FSCMBD component. How do I prevent my developers from modifying BD source code? Is the idea that they will create independent DCs in NWDS (as you described) and only modify those? I just want to make sure that we are doing development in a way that is supported and will not cause issues when applying SPs or upgrades to FSCMBD.
    I also want to confirm that this "create project" activity is not something that I need to do as an Administrator in the NWDI track; this is something my java developers will need to do in NWDS at the beginning of the build.
    Thanks Aparna!
    - Michelle

  • BO SDK java customization

    Hi experts,
    I am novice to BO SDK java. I want to learn the Java SDK for some customization.
    Please guide me where we can get the sdk jar files and which IDE can be used to modify the jars and .also how it can be used to deploy the changed jar files again to BO server.
    any help will be highly appreciated...
    thanks in advance
    Regards
    Narendra

    At the top of this forum you will see a stickied post titled : [Read Before Posting - Where to find Business Objects Java SDK Resources|Read Before Posting - Where to find Business Objects Java SDK Resources;
    Did you read it before posting?
    The documenation and such is all listed in that post along with samples.

  • Customization of existing bean of VOImpl class

    Hi Team,
    We have a number of requirements, where we are facing a difficulty that we are not able to customize the bean classes or the VORowImpl or VOImpl Classes in fusion apps.
    Requirement is something like, there is a existing logic written in bean, on button click,
    Now we want to extend that logic, but I am not able to find any way to customize the existing bean or any java class, this is giving me less flexibility in fusion which we use to have in OAF.
    Can you please provide some light here, if we are missing something on the side of the java.
    Because in ADF, if java customization is hidden then 80% of the requirement comes from the customer, will not be feasible for us to deliver.
    Which was anyway done in the OAF.
    Please suggest.
    Regards;
    Vipin Kumar
    Accenture India.

    Vipin
    There are two things you mentioned here:
    1. Bean Code
    2. VORowImpl code
    For Bean Code yes there is no way to customize that. You cannot customize java in Fusion Apps. One of the solution would be to raise those requirements through Oracle Support. Product teams might suggest alternate options to customize such functionality via other artifacts where customization is allowed. If that is not possible then it would definitely be raised as an Enhancement Request.
    For VORowImpl a lot of time they are in fact not the right place to hardcode any business logic. Declarative validations, adding transient and non transient attributes etc is already supported. A lot of developers get confused when they dont see VORowImpl not getting changed or unable to customize that manually being a java file. However, all the declarative changes on VOs which affects the VORowImpl are written in .xml.xml files and saved into MDS to be applied at the time of application startup.
    Hope this helps!
    Vik
    http://blogs.oracle.com/fadevrel

  • ENHP5 - Webdynpro Java

    Hi,
    We are currently running on ENHP4 for ESS/MSS applications and planning to upgrade to ENHP5.
    There are lots of customizations that we did for ESS/MSS in webdynpro java. And have implemented for multiple countries.
    Can we use webdynpro java customizations in ENHP5 as well?  What will happen to our existing customizations?
    Thanks
    Kukku

    Hi Sidh,
    After activating the switch, is it not possible to have Personal data in WDJ of EHP4 BPs and My Family member in WDA of EHP 5.
    As per the note 1450179, Deployment Option 3: WD Java-Based ESS on SAP NetWeaver Portal :: WD ABAP-based services offer enhanced features and easier usage, and it is possible to replace individual WD Java applications with new WD ABAP applications.
    From this note, my understanding is we should be able to control/use WDA or WDJ app the way we want, so I think its should be possible to use Personal data in WDJ of EHP4 BPs and My Family member in WDA of EHP 5.
    Let me know if my understanding is not correct. Also in the SAP note didnot mention anything activating the switch, after activating we need to use only WDA app some thing like that. I am bit confused here. Can you please clarify.
    Thank you.
    Regards
    Yugandhar Reddy

  • How to access local connection factory created within Foreign Server in OSB

    Hi All
    I am facing an issue in my config plan. We have a RIB Foreign server with the following local connection factory:
    jms/RibAqJmsXATopicConnectionFactory
    I am using the below in my configuration plan:
    <cus:envValueAssignments>
    <xt:envValueType>Service URI</xt:envValueType>
    <xt:location xsi:nil="true"/>
    <xt:owner>
    <xt:type>ProxyService</xt:type>
    <xt:path>RLTPReturnToWarehouse/ProxyServices/ConsumeRIBRTWMessages</xt:path>
    </xt:owner>
    <xt:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">jms://localhost:7001/jms.RibAqJmsXATopicConnectionFactory/jms.etASNInFromRIBToWH1</xt:value>
    </cus:envValueAssignments>
    and i am getting the below error:
    [java]
    [java] Loading customization File ./dev/OSBCustomizationFile.xml
    [java] Customization applied to the created resources only []
    [java] com.bea.wli.config.customization.EnvValueCustomization@553c13
    [java] Unexpected error: com.bea.wli.sb.transports.TransportException
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "D:\VFUKScripts\DeploymentScripts\osb\import.py", line 200, in ?
    [java] File "D:\VFUKScripts\DeploymentScripts\osb\import.py", line 122, in importToALSBDomain
    [java] com.bea.wli.sb.transports.TransportException: Failed to lookup connection factory jms.RibAqJmsXATopicConnectionFactory
    what am i missing here?

    [java] com.bea.wli.sb.transports.TransportException: Failed to lookup connection factory jms.RibAqJmsXATopicConnectionFactory
    Looks like the JNDI that you created for the ConnectionFactory is not reflected in the server.
    Login to WLS Console> Summary of Servers > server_name > View JNDI Tree
    Browse to the JNDI tree and see if your JNDI is visible there. If it is not then, please restart the server and recheck.
    Once you are able to find it in the JNDI tree, then execute the customization file.
    If you have modified the existing JNDI properties (that have a small exclamatory symbol) then any changes to those are not reflected till all the servers in the cluster are restarted.
    If it still does not work, then recreate a new Connection with a different name and then retry. It should work then.
    Thanks,
    Patrick

  • ESS Business Packages Migration from Ehp3 to Ehp4 with Custom Changes

    Hello All,
    We are using ECC 6.0 With Ehp3 and We have the following versions of ESS and MSS Business Packages Installed.
    SAP_ESS 603 SP4
    SAP_MSS 600 SP15
    We have NWDI server also installed in this and made some Customizations in ESS Webdynpro Java based applications.
    We have freshly installed  a new portal development server with Netweaver 7.0 Ehp1 to cleanup unneccessary stuffs in our existing development portal server and pointed to the upgraded backend ECC 6.0 Ehp4.
    The NWDI also installed freshly in the new server.
    While upgrading,  following Business Packages versions are recommended by SAP.
    SAP_ESS 603 SP6
    MSS 600 SP17
    PCUI_GP 603 Sp 06
    Now in the New portal server every applications works fine as delivered Out of the box and we are missing all the Webdynpro Java customizations which we have made as part of the Ehp3 based ESS Implementation.   
    We are in the process of Creating the New track in the New NW 7.0 Ehp1 server and import the .SCA files.
    My Question is how can we get the automatic migration process, so that the Webdynpro Java Customizations which we have done in the Previous track in Ehp3 with different ESS SP level can be carry forwarded to our New NWDI Server.
    How can we go ahead?. We are thinking of the following options and your suggestions are highly appreciated.
    1. Import the .SCA files related to Ehp4 and do the Webdynpro Java changes manually again in the DCs of Newly created  track    in the New NWDI server.
    2. Is there a way to migrate a Track from One Server to another NWDI server with the Custom changes carry forwarded.
    What are all the possible ways to achieve track migration to the new server with custom changes carry forwarded.   
    Appreciate your valuable inputs in this.
    Thanks and Regards,
    Sekar

    Hi Sekar,
    There is a cook book provided by SAP as attachment of note 872892. you can follow the process to have your custom DC's migrated to new Support pack of ESS/MSS.

  • UCM 10gR3 - handling metadata on check-in action

    Hi,
    I've started on UCM and I've been playing with Java custom components to alter the behavior of some services...I used for guidance the book: "The Definitive Guide to Stellent Content Server Development". I want to alter some metadatas of a document while checking it in - let's say title, author or so...there is an example using a Filter in the book which alters the content id, I want to do something similar but for other metadatas; also I want to add new metadatas to the document being checked in. I want all this to happen automatically and to be controlled via some Java customization - some custom component...
    Is this possible, or which is the best practice for doing such a thing ?
    Thanks,
    Vlad

    You don't need to waste time writing a Java component to do those things. Read further about Profiles & Rules in the Configuration Manager applet.

  • Auto Logoff SAPPHONE

    Experts,
    Has anyone come across the following requirement of Auto Log-off from SAPPHONE.
    Description:  Currently in the Call Center, a problem exists when agents do not logout of SoftPhone properly. When this occurs, Genesys still views the agent as logged in and available to receive calls. This has a negative impact on the call routing system. A system change is required that will automatically logout the agents when any of the following parameters have been met:
    If the agent has been Auto-In 30 minutes without an inbound call, the agent will be automatically logged out of SoftPhone.
    If the agent has been in ACW 30 minutes without changing call states, the agent will be automatically logged out of SoftPhone.
    Queries:
    1. Is this something feasible from ABAP code or some Java customization is required.
    2..How to capture/know the current state of agent (if he is in Auto-In or ACW) and also since how long he has been into that state.
    3. Is there some kind of configuration available in SAPPHONE to achive this requirement.
    4. Are there any EVENTS raised in SAPPHONE.
    Let me know if someone has some kind of technical documentation around this subject.
    Thanks,

    Hello friends,
    we have installed gplus adapter for sap-erp integration. Can some one please let me know how to configure a connection between sap application server and an Adapter.
    We got stuck in creating a SAPphone server on sap. In transaction SM59 while creating a new TCP/ip connection RFC destination, we need to set the RFC destination name and program id .
    what should be the value for program id? Do we need to code a RFC for this ? cos be gave the program id as SPS.PROG as mentioned in the gplus deployment guide, but the connection test failed.
    Can someone please help me in fixing this.
    Just one more, how to obtain SAP RFC SDK binary files? Shd these binary files need to be placed in the gplus working directory? Does the tcp/IP connection failed due to missing binary files?
    Thanks in Advance. please reply me on [email protected]

  • Who's who Infoset : Adding a custom infotype

    Dear Experts,
    I am in need of your valuable input on Who's who.
    Can we include custom infotype (9000) fields to the infoset (by coping into a custom infoset)?
    What is configuration needs to be done on portal side to enable the additional fields.
    I know to add / remove the fields which are already provided ( from infotype 0,1,2,105 and 32)
    Awaiting your response.
    Cheers
    Jay

    Hi,
    Yes you can surely include your custom Infotypes in the Infoset for Who's Who.
    There is no need for doing any Java customization unless you want to have a hyperlink and other kind of things for the additional fields.
    If you want to show some content from the custom infotype and have a hyperlink to take you to some other location or application in that case you need to do the Java changes.
    In all other cases change in the config will suffice.
    In the ECC system go to t.code SPRO
    Navigate to Personnel Management - Employee Self-Service - Service-Specific Settings - Address book - Who's Who - Who's Who (ESS) : Selection and Output - select the country and replace the standard Infoset with your custom infoset.
    Hope this helps.
    Cheers-
    Pramod

  • New ESS implementation, should we wait for EPH5 ?

    Hi All,
    We currently work on ECC 6 EPH 4 and are in a process of implementing ESS. There are number of customizations that have been identified for which we will need have to modify the Java code since currently ESS is all in Java.
    Now since Enhancement Pack 5 which is coming out in June/July will have ABAP as the basic technology for the ESS portal rather than Java.  Does that means that we will need to "throw out" the customizations and redo them in the ABAP version of the portal when the our company upgrades to EPH5? Is it recommended that we hod on any Java customizations and wait for EPH5 to be out?

    Hi,
    The following blog gives a great insight in determining your strategy:
    /people/bernhard.escherich/blog/2011/01/18/ehp-5-ess-the-architects-view
    Credits: Bernhard Escherich
    Hope this helps.
    Donnie

  • Redirecting output in Netbeans?

    After a few years of several languages, I am finding Java to be my home :) I really enjoyed the improvements that Sun has made with NetBeans 6. However, it doesn't output text to the console/command-prompt like it would in JCreator Pro. Even in JCreator Pro, I had to redirect the output and it was much easier given a few settings. For Netbeans, the output goes to an "Output Window." I find writing my ascii game is easier with the command prompt and so JCreator seems ideal if I can't get my preferred IDE set properly for the command prompt. Is there a way to get NetBeans to redirect its output from the Output Window to the command prompt? Thanks.

    I was able to get the "run" button to execute output to the console (command prompt). Doing so was not too difficult. I agreed with Leonardo that posting it here would be helpful for someone else. He was very helpful with our first few attempts on a similar task.
    In your workspace, click on the Files tab. Find build-impl.xml, double-click on the "run" property in the navigator window. It should bring you to something similar below. What I added was the "exec" open and end tags. Just paste this in there and you will be up and going.
    <target name="run" depends="init,compile" description="Run a main class.">
    <j2seproject1:java>
    <customize>
    <arg line="${ application.args}"/>
    </customize>
    </j2seproject1:java>
    <exec executable="cmd">
    <arg value="/k" />
    <arg value="start cmd /k java -classpath "${basedir}\${ build.classes.dir}" ${main.class}" />
    </exec>
    </target>

  • Customize R12 java copncurrent program for RTFCheck Printing through ORACLE

    This is related to R12 check printing using RTF BI publisher.
    In R12 we have the xml file genrerated out of the Java concurrent program.We want to add couple of new fields..For example there is a ALTERNATE SITE NAME required by the customer.I want to know where we should add the additional column.Is there any VIEW or PACKAGE available in the JAVA concurrent program so that we can modify and add required columns?
    Anyone knows the package name or View Name used by ORACLE
    thanks
    prasanna

    Hi Venkatesh,
    I have to customize check print report in r12, but not able to get the data model to customized.
    Please advice me how to customized check print report in r12.
    i tried hard to find the data model but could not get success.... the only thing i am getting is the number of check print templates... which we can associate with payment process profile.
    Please help me out .
    thanks in advance...
    Ratnesh

  • How to customize the Java Concurrent Program(PO Output for Communication)

    Hi,
    How to customize the Java Concurrent Program(PO Output for Communication)
    I need to add the Line level Ship To Address ,Line Notes and Extended Price fields on Java Concurrent Program.
    Please any body help/guide me in this regard.

    Hi,
    Changing Java Conc. program for "PO Output for Communication" is difficult.
    Actually, if you observe closely, "PO Output for Communication" program uses PO<HEADER/LINES..>_XML views.
    So if you could change these views and add your requireed columns to it, you can automatically see your changes in XML data file.
    See if the following link will you to get there.. http://chandramatta.blogspot.com/
    thanks,
    Matt

  • Java code on a customizable jsp

    Greetings
    does anybody know how should i place this code on a template for customizable pages??
    <%!
    String ip=CacheParametrosAplicacion.obtenerInstancia().obtenerDatoParametro("IP_CONTENT_CSS");
    String puerto=CacheParametrosAplicacion.obtenerInstancia().obtenerDatoParametro("PUERTO_CONTENT_CSS");
    String ruta=CacheParametrosAplicacion.obtenerInstancia().obtenerDatoParametro("RUTA_CSS");
    String url = "http://"+ip+":"+puerto+ruta;
    %>
    i am getting this error when loading the created pages
    Error de OracleJSP: oracle.jsp.parse.JavaCodeException: Número de Línea 3, oracle.jsp.parse.JspParseTagDeclaration@76a0fa
    Error: Java code in jsp source files is not allowed in ojsp.next mod
    Edited by: Luis_muxhaxho_betancourth on 3/08/2010 11:11 AM

    Hum, I don´t think you can insert jsp code in an ADF page. Try creating a jsp page with the code you mentioned, then create an adf inline frame in your adf page and point to your jsp page using the src tag. Your jsp gets loaded inside the adf page. Hope this helps.

Maybe you are looking for