OracleXADataSource Custom Wrapper Class Problem

Hi,
I am creating a custom wrapper class and overidding getPhysicalConnection() to get the Connection Pool object and I expect the object will be released to the pool.But I see as many as 100 Con Objects are heldup in active state in the connection pool. Is it possible to test if the Con Object is released back to the pool ?
I am using AS 10.1.3.1.. and below is the impl code.
Thanks
Prabu
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import oracle.jdbc.xa.client.OracleXADataSource;
* A datastore that wraps an oracle datastore, setting various parameters
* that can't be set with standard configuration.
public class OracleProxyDataSource extends OracleXADataSource {
public OracleProxyDataSource() throws SQLException {
super();
System.setProperty("oracle.jdbc.V8Compatible", "true");
setDataSourceName(OracleProxyDataSource.class.getName());
setDescription(getDescription() + "-proxy");
public java.lang.String getPassword() {
return super.getPassword();
protected Connection getPhysicalConnection(String url,
String username,
String password)
throws java.sql.SQLException
Properties prop = new Properties();
Connection con;
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
prop.put("user", username);
prop.put("password", password);
try {
con = DriverManager.getConnection(url, prop);
} catch (RuntimeException e) {
e.printStackTrace();
throw e;
} catch (SQLException e) {
e.printStackTrace();
throw e;
// Set the standard date format.
Statement stmt = null;
try {
stmt = con.createStatement();
stmt.executeUpdate("SELECT * from DUAL");
} catch (SQLException e) {
e.printStackTrace();
throw e;
} catch (RuntimeException e) {
e.printStackTrace();
throw e;
} finally {
stmt.close();
return con;
}

Inside callback handlers ythe class members go out of scope.
There are several ways to solve that. One is using a local variable
that holds a reference to the current object.
function ping () : Void {
var thisObj:ping_server=this;
and access class members:
thisObj.serverstatus = "pingServer_lv.onLoad =
online";

Similar Messages

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • What is the proper way to code a "wrapper" class?

    Basically I want to replace an existing Action with a custom Action, but I want the custom Action to be able to invoke the existing Action.
    The following code works fine. I can create a custom Action using the existing action and the text on the button "paste-from-clipboard" is taken from the existing Action. So everything works great as long as the existing Action extends from AbstractAction.
    However the Action interface does not support the getKeys() method which I used to copy the key/value information from the existing action to the wrapped action. So if you try to create a button from some class that strictly implements the Action interface the key/value data in the wrapped Action will be empy and no text will appear on the button.
    So as the solution I thought I would need to override all the methods in the wrapped Action class to invoke the methods from the originalAction object. That is why all the commented code in the class is there. But then the protected methods cause a problem as the class won't compile.
    Do I just not worry about overriding those two methods? Is this a general rule when creating wrapper classes, you ignore the protected methods?
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class WrappedAction extends AbstractAction
         private Action originalAction;
         public WrappedAction(JComponent component, KeyStroke keyStroke)
              Object key = getKeyForActionMap(component, keyStroke);
              if (key == null)
                   String message = "no input mapping for KeyStroke: " + keyStroke;
                   throw new IllegalArgumentException(message);
              originalAction = component.getActionMap().get(key);
              if (originalAction == null)
                   String message = "no Action for action key: " + key;
                   throw new IllegalArgumentException(message);
              //  Replace the existing Action with this class
              component.getActionMap().put(key, this);
              //  Copy key/value pairs to
              if (originalAction instanceof AbstractAction)
                   AbstractAction action = (AbstractAction)originalAction;
                   Object[] actionKeys = action.getKeys();
                   for (int i = 0; i < actionKeys.length; i++)
                        String actionKey = actionKeys.toString();
                        putValue(actionKey, action.getValue(actionKey));
         private Object getKeyForActionMap(JComponent component, KeyStroke keyStroke)
              for (int i = 0; i < 3; i++)
              InputMap inputMap = component.getInputMap(i);
              if (inputMap != null)
                        Object key = inputMap.get(keyStroke);
                        if (key != null)
                             return key;
              return null;
         public void invokeOriginalAction(ActionEvent e)
              originalAction.actionPerformed(e);
         public void actionPerformed(ActionEvent e)
              System.out.println("custom code here");
              invokeOriginalAction(e);
         public void addPropertyChangeListener(PropertyChangeListener listener)
              originalAction.addPropertyChangeListener(listener);
         protected Object clone()
              originalAction.clone();
         protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
              originalAction.firePropertyChange(propertyName, oldValue, newValue);
         public Object[] getKeys()
              return originalAction.getKeys();
         public PropertyChangeListener[] getPropertyChangeListeners()
              return originalAction.getPropertyChangeListeners();
         public Object getValue(String key)
              return originalAction.getValue(key);
         public boolean isEnabled()
              return originalAction.isEnabled();
         public void putValue(String key, Object newValue)
              originalAction.putValue(key, newValue);
         public void removePropertyChangeListener(PropertyChangeListener listener)
              originalAction.removePropertyChangeListener(listener);
         public void setEnabled(boolean newValue)
              originalAction.setEnabled(newValue);
         public static void main(String[] args)
              JTextArea textArea = new JTextArea(5, 30);
              JFrame frame = new JFrame("Wrapped Action");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add(new JScrollPane(textArea), BorderLayout.NORTH);
              frame.add(new JButton(new WrappedAction(textArea, KeyStroke.getKeyStroke("control V"))));
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible( true );

    I can't get the PropertyChangeListener to fire with any source. Here is my test code. Note I am able to add the PropertyChangeListener to the "Paste Action", but I get no output when I add it to the WrappedAction. I must be missing something basic.
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    public class WrappedAction3 implements Action, PropertyChangeListener
         private Action originalAction;
         private SwingPropertyChangeSupport changeSupport;
          *  Replace the default Action for the given KeyStroke with a custom Action
         public WrappedAction3(JComponent component, KeyStroke keyStroke)
              Object actionKey = getKeyForActionMap(component, keyStroke);
              if (actionKey == null)
                   String message = "no input mapping for KeyStroke: " + keyStroke;
                   throw new IllegalArgumentException(message);
              originalAction = component.getActionMap().get(actionKey);
              if (originalAction == null)
                   String message = "no Action for action key: " + actionKey;
                   throw new IllegalArgumentException(message);
              //  Replace the existing Action with this class
              component.getActionMap().put(actionKey, this);
              changeSupport = new SwingPropertyChangeSupport(this);
            originalAction.addPropertyChangeListener(this);
            addPropertyChangeListener(this);
          *  Search the 3 InputMaps to find the KeyStroke binding
         private Object getKeyForActionMap(JComponent component, KeyStroke keyStroke)
              for (int i = 0; i < 3; i++)
                  InputMap inputMap = component.getInputMap(i);
                  if (inputMap != null)
                        Object key = inputMap.get(keyStroke);
                        if (key != null)
                             return key;
              return null;
         public void invokeOriginalAction(ActionEvent e)
              originalAction.actionPerformed(e);
         public void actionPerformed(ActionEvent e)
              System.out.println("actionPerformed");
    //  Delegate the Action interface methods to the original Action
         public Object getValue(String key)
              return originalAction.getValue(key);
         public boolean isEnabled()
              return originalAction.isEnabled();
         public void putValue(String key, Object newValue)
              originalAction.putValue(key, newValue);
         public void setEnabled(boolean newValue)
              originalAction.setEnabled(newValue);
         public void xxxaddPropertyChangeListener(PropertyChangeListener listener)
              originalAction.addPropertyChangeListener(listener);
         public void xxxremovePropertyChangeListener(PropertyChangeListener listener)
              originalAction.removePropertyChangeListener(listener);
         public void addPropertyChangeListener(PropertyChangeListener listener)
            changeSupport.addPropertyChangeListener(listener);
        public void removePropertyChangeListener(PropertyChangeListener listener)
            changeSupport.removePropertyChangeListener(listener);
         public void propertyChange(PropertyChangeEvent evt)
             changeSupport.firePropertyChange(evt.getPropertyName(), evt.getOldValue(), evt.getNewValue());
         public static void main(String[] args)
              JTable table = new JTable(15, 5);
              WrappedAction3 action = new WrappedAction3(table, KeyStroke.getKeyStroke("TAB"));
              action.addPropertyChangeListener( new PropertyChangeListener()
                   public void propertyChange(PropertyChangeEvent e)
                        System.out.println(e.getSource().getClass());
              action.putValue(Action.NAME, "name changed");
              Action paste = new DefaultEditorKit.PasteAction();
              paste.addPropertyChangeListener( new PropertyChangeListener()
                   public void propertyChange(PropertyChangeEvent e)
                        System.out.println(e.getSource().getClass());
              paste.putValue(Action.NAME, "name changed");
    }

  • Custom Java class called from RTF template generates error

    We are running a report in BI Publisher and the report calls a custom developed Java class that is used to bind PDFs together and sent the result to another application.
    On the RTF template we have some XSLT that reads the input XML and sets a variable which is then passed to the Java class. We are however getting the following error when the report is called simultaneously 2 or more times:
    XML-22044: (Error) Extension function error: Error invoking 'JavaClassName': 'java.lang.Error: Cannot interweave overlay template with pdf input, combined number of pages is odd!
    I read this as the real cause of the error is the Java code but I'm not 100% sure. Also I don't understand what the error message means.
    Could someone help out please?
    Many thanks

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • How can i add an custom attribute and assign it to an existing custom object class in sun ds

    I need to add an attribute to sun ds schema and assign it to an existing custom object class.
    I know how to add an attribute but how can i add the attribute to an existing custom object class.
    Please help.
    Thanks

    The objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
    For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
    objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
    objectclasses: ( 2.5.6.6 NAME   'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256    ' )
    That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
    -Sylvain

  • How to create custom java class in Content Server

    Hi All,
    I want to develop a custom java class (.class) file and upload in the UCM(Stellent Content Server). The problem is that I have to use some objects like DataResultSet, SharedObjects etc in my java class file. Since these class files resides in the Content Server I am not able to create a custom java class with these objects.
    Can any one help me to solve the above issue
    With thanks and regards
    Mohan

    Hey there,
    All of the core content server class files are included in a single jar file. This jar is in one of 2 places in the 10gr3 version of UCM:
    1. If you have an unpatched content server include $IntradocDir/shared/classes/server.zip in your classpath
    2. If you have a patched content server include $IntradocDir/custom/CS10gR35CoreUpdate/classes.jar in your classpath.
    In UCM 11g the jar file is located in %MIDDLEWARE_HOME%/Oracle_ECM1/ucm/idc/jlib/idcserver.jar
    P.S. Venkat is correct, post UCM specific questions in the ECM forum.
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_WCS >

  • Custom java class in Quoting screen Customization

    Hi,
    We are working with Customization of couple of screens in Quote module. Esp. the Create Template screen. We decide to add new property to the Template and user needs to choose among a set of values to this new property through a radio button.
    Instead of hardcoding these property values and radiobuttons, we thought we would define these data in some lookup table and fetch them and display.
    Now, since we are defining these lookup data, should we write our custom java class to interact with database and fetch them from any lookup table (should we use flex fields ?) ?
    If we are going to write custom java object, any guidance on how to compile/deploy/standards for them ?
    Message was edited by:
    tcesenthil

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • Error  "expected a myfaces custom component class in package"

    Can anybody help me on this?
    just copied the sandbox code on selectmanypicklist and tried in a separate package of mine.
    created a jsp page and used the selectmanypicklist component and im getting the component on my browser.
    But whn i added the javascript resource calling by "encodeJavascript(facesContext, uiComponent);" im geting an error saying tht "expected a myfaces custom component class in package org.apache.myfaces.custom". i placed the java script file in "mypackage/list/resource/pikscript.js".
    should i add anything on faces-config.xml file or anywhr else?
    Anybody can help on this?
    Thanx in Advance.

    The problem is that it calls a method validateCustomComponent in MyFacesResourceHandler to see if it can load the js file. This method controlls if the path of the js file begins with org.apache.myfaces.custom. If not throws an exception and doesn't load the file. I changed the package of the class that's trying to load the file in org.apache.myfaces.custom.xx and the package of the file js in org.apache.myfaces.custom.xx.resource. Now it's working.

  • SOAPElement instead Custom Java Class

    Hi all,
    I've a simple process that call a Partner Link (Adapter) to do a Select on DEPTIN table of Oracle Lite Database, i've a XSD structure like this :
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="Deptos" type="DeptosType" />
    <xsd:complexType name="DeptoType">
    <xsd:sequence>
    <xsd:element name="deptno" type="xsd:int"/>
    <xsd:element name="dname" type="xsd:string"/>
    <xsd:element name="loc" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="DeptosType">
    <xsd:sequence minOccurs="1" maxOccurs="unbounded">
    <xsd:element name="Depto" type="DeptoType"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    After Adapter called a Transform is done to my structure, it works fine.
    When i generate the Proxy in JDeveloper, the follow message appears on output:
    WARNING: OWS-00102 Mapped {http://www.example.org}DeptosType to javax.xml.soap.SOAPElement DeptosType. Reason for not creating a custom Java type: multiple occurrences are not supported.
    How to prevent its and generate Custom Java Type to its mapping?
    Thanks in advance

    Hi all,
    I've found the problem, it's on definition of DeptosType, the minOccurs and maxOccurs must be in element name="Depto" instead on sequence.
    <xsd:complexType name="DeptosType">
    <xsd:sequence>
    <xsd:element name="Depto" type="DeptoType" minOccurs="1" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    instead
    <xsd:complexType name="DeptosType">
    <xsd:sequence minOccurs="1" maxOccurs="unbounded">
    <xsd:element name="Depto" type="DeptoType"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    I haven't understood why its occurs, but in this way the proxy can generate custom Java Class.
    Does anybody knows?
    Best regards

  • What is the advantage of using Wrapper Classes ?

    Hi friends,
    I am happy to join Java/J2EE tech. My project is scaled over the network. MVC-II struts, EJB based architecture, we are using.
    We are asked to use Wrapper Classes in in Java programs and not the primitive data types. I could not understand the reason.
    Pls tell me what is the advantage of using Wrapper Classes over the primitive data types ?
    means Integer instead of int, etc....

    Hi friends,
    I am happy to join Java/J2EE tech. My project is
    scaled over the network. MVC-II struts, EJB based
    architecture, we are using.
    We are asked to use Wrapper Classes in in Java
    programs and not the primitive data types. I could
    not understand the reason.
    Pls tell me what is the advantage of using Wrapper
    Classes over the primitive data types ?
    means Integer instead of int, etc....I am not sure why use Integer over int; but Wrapper classes are used to remove coupling between classes and create one hand doesn't know what the other hand does effect.
    for example:
    when you have a SFTP java package but doesn't do everything that your application needs to do in one step and you need to do sftp stuff at many places in your application, it would be wise not to use SFTP java package directly from all the classes that need to do sftp stuff. Because if you were to change the SFTP package later due to say some bug fix or newer version or ... you would have to go and modify all the classes that had sftp stuff to update.
    Instead you could write a custom sftp wrapper that handles all the sftp stuff for your application needs and that wrapper deals with the SFTP java package. So all the classes don't need to know which SFTP java package is being used only the custom-wrapper needs to know.

  • Apache comons logging implemented it with a  wrapper  classes around

    hi friends,
    i have an interesting (unsually )problem regaurding apache commons logging, i am using three classes .
    one is the logger class where i instantiate the logging instance ie Log log = LogFactory .getLog("some name");
    then there is a class called LFactory where i use i hashMap to store the various different logger created or to access the different logger for the hashmap
    then the last i have i LoggerAccessor class which links the LFactory.
    as u all now that the logger will give the line number of the class where we use the log instance ( Log log)..... but as i am using a wrapper classes around the actually log instance.
    in any class where i require the logging to be done.. i used my LoggerAccessor. so instead of giving me the Actuall Classname,methodname,and line number of the class where i give logging statements. I get the name of my class where i have created the instance and specially the line number of the class where the instance is created....( means my first class).
    i want to get the name,method,linenumber of the class where i have added logging statements
    please find me the solution for it.....
    thanks

    Good Question Nutan !! But i don't have answer !! Hope someone else will answer this !

  • Could not load mediaLib accelerator wrapper classes. Continuing in pure Jav

    Can anyone provide an explanation/solution to the following error message:
    "Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode."

    This problem seems to occur if only the JAI JAR files are installed without the native DLL's. Is there some property that can be passed in to JAI so that it doesn't look for the DLL's? The lookup is causing quite a delay in initial server response time. We don't want to include the DLL's since they are a big pain for our customers to install and the performance issue is not a concern.
    Thanks for any help!
    -Matt

  • Set the value of a shared secret in a custom auth class

    Hello All,
    We are trying to use a custom authentication class to gain
    additional parameter to pass along in a SAML assertion to a third party
    vendor. We have successfully added the new custom auth class, but we
    are unable to determine how to assign the value of this new parameter to
    anything that is accessible in the creation of the SAML profile.
    The first idea was to use a shared secret. Although we have been able
    to create the shared secret, it does not have any value assigned.
    Here's the code used based on the code used by the PwLookupLogin class
    in the ba-idp-auth.jar file:
    private void setUserTAG(String paramString) {
    SSSecret localSSSecret = new SSSecret();
    localSSSecret.setName(new SSName("tag_van"));
    SSSecretEntry localSSSecretEntry = new SSSecretEntry("tag_van",
    paramString);
    localSSSecret.addSecretEntry(localSSSecretEntry);
    addCredential(WSCQSSToken.SS_SecretName, localSSSecretEntry);
    The second idea was to make use of the "CustomizableStringOne" found in
    a posting in this forum on how to extend a X.509 auth class:
    http://forums.novell.com/novell-deve....html#poststop
    The code we have tried follows:
    private void setUserSSN(String paramString) {
    // Makes use of the "Customizable String One [Custom Profile]"
    try
    // Customizable attribute 1 is the one we use to contain
    customer data to send,
    // but this can change to another if necessary
    WSCMOPToken token =
    (WSCMOPToken)WSCToken.getToken(WSCMOPToken.OP_CS_C ustomizableString1.getTokenUniqueId());
    // Build object for new data
    WSFModelEntry modelEntry = token.getModelEntry();
    IDSISCommonAttributeElement data =
    modelEntry.getSchemaClassInstance();
    if (data instanceof IDSISLeafAttributeElement) {
    ((IDSISLeafAttributeElement)data).setText(paramStr ing);
    WSCMDataToken dataToken = new WSCMDataToken(token, data);
    dataToken.setAllowOverride(true);
    catch (Exception ex) {}
    Again, the same problem. No value is found when the idpsend CGI tries
    to generate the assertion.
    We are really struggling to understand how this should work. The basic
    problem is this: How can we set a variable within a Java class that can
    be accessed by the idpsend CGI to be used as an attribute within the
    SAML assertion?
    Any ideas would be greatly appreciated. Thanks.
    keongregory
    keongregory's Profile: http://forums.novell.com/member.php?userid=40599
    View this thread: http://forums.novell.com/showthread.php?t=415440

    keongregory wrote:
    >
    > Hello All,
    > We are trying to use a custom authentication class to gain
    > additional parameter to pass along in a SAML assertion to a third
    > party vendor. We have successfully added the new custom auth class,
    > but we are unable to determine how to assign the value of this new
    > parameter to anything that is accessible in the creation of the SAML
    > profile.
    >
    > The first idea was to use a shared secret. Although we have been
    > able to create the shared secret, it does not have any value
    > assigned. Here's the code used based on the code used by the
    > PwLookupLogin class in the ba-idp-auth.jar file:
    >
    > private void setUserTAG(String paramString) {
    > SSSecret localSSSecret = new SSSecret();
    > localSSSecret.setName(new SSName("tag_van"));
    > SSSecretEntry localSSSecretEntry = new SSSecretEntry("tag_van",
    > paramString);
    > localSSSecret.addSecretEntry(localSSSecretEntry);
    > addCredential(WSCQSSToken.SS_SecretName, localSSSecretEntry);
    > }
    >
    >
    > The second idea was to make use of the "CustomizableStringOne" found
    > in a posting in this forum on how to extend a X.509 auth class:
    > http://forums.novell.com/novell-deve...ess-manager/37
    > 6654-using-x509-subject-identity-injection-post1826642.html#poststop
    >
    >
    > The code we have tried follows:
    >
    >
    > private void setUserSSN(String paramString) {
    > // Makes use of the "Customizable String One [Custom Profile]"
    > try
    > {
    > // Customizable attribute 1 is the one we use to contain
    > customer data to send,
    > // but this can change to another if necessary
    > WSCMOPToken token =
    > (WSCMOPToken)WSCToken.getToken(WSCMOPToken.OP_CS_C ustomizableString1.g
    > etTokenUniqueId());
    >
    > // Build object for new data
    > WSFModelEntry modelEntry = token.getModelEntry();
    > IDSISCommonAttributeElement data =
    > modelEntry.getSchemaClassInstance();
    > if (data instanceof IDSISLeafAttributeElement) {
    > ((IDSISLeafAttributeElement)data).setText(paramStr ing);
    > }
    >
    > WSCMDataToken dataToken = new WSCMDataToken(token, data);
    > dataToken.setAllowOverride(true);
    > }
    > catch (Exception ex) {}
    > }
    >
    >
    > Again, the same problem. No value is found when the idpsend CGI
    > tries to generate the assertion.
    >
    > We are really struggling to understand how this should work. The
    > basic problem is this: How can we set a variable within a Java class
    > that can be accessed by the idpsend CGI to be used as an attribute
    > within the SAML assertion?
    >
    > Any ideas would be greatly appreciated. Thanks.
    We are using this successfully (the code looks stragely familiar ).
    Don't try to store it in the secret store. you can actually store it in
    the customizable string attributes.
    Try to use this:
    protected int doAuthenticate()
    String attribute1 = m_Request.getParameter("attribute1");
    //Custom Attribute 1
    try
    // Customizable attribute 1 is the one we use to contain customer
    data to send,
    // but this can change to another if necessary
    WSCMOPToken token =
    (WSCMOPToken)WSCToken.getToken(WSCMOPToken.OP_CS_C ustomizableString1.get
    TokenUniqueId());
    // Build object for new data
    WSFModelEntry modelEntry = token.getModelEntry();
    IDSISCommonAttributeElement data =
    modelEntry.getSchemaClassInstance();
    if (data instanceof IDSISLeafAttributeElement)
    ((IDSISLeafAttributeElement)data).setText(attribut e1);
    WSCMDataToken dataToken = new WSCMDataToken(token, data);
    dataToken.setAllowOverride(true);
    catch (Exception ex) {}
    String url =
    m_SessionData.appendIDToUrl(NIDPContext.getNIDPCon text().getBaseUrl() +
    getProperty("Protocol") + "/idpsend?PID=" + getProperty("ITS"));
    m_Request.setAttribute("url",url);
    // Going to top ensures we are not displaying in any frames
    ((NIDPServletContext)NIDPContext.getNIDPContext()) .goJSP(m_Request,m_Res
    ponse,"top");
    return HANDLED_REQUEST;
    The above code is a non-identifying method (it doesn't return a
    'authenticated'). YOu would chain it with another method that
    identifies the user before this is being processed.
    To check if a user is authenticated or not you could use:
    if (!m_Session.isAuthenticated())
    return NOT_AUTHENTICATED;
    Once the method is processed it should have created a
    LibertyUserProfile object within the eDir that comes with the admin
    console.
    You can find these in
    ou=libertyUserProfile0,ou=<clusterobject>,ou=clust er,ou=nids,ou=accessMa
    nagerContainer,o=novell
    Hopefully this helps.
    Cheers,
    Edward

  • Function PIT don't recognize a Custom Processing Class

    Hi all,
    I've defined a brand new custom processing class, in order to evaluate some WT for labor cost, but when I try to call the PIT function, with param 2 set to P90 (my processing class in numbered with 90), the check give me an error message:
    With regard to function PIT, specified processing class 90 does not exist                                                                               
    Message no. 5P 414                                                                               
    Diagnosis                                                                               
    You have specified a processing class which does not exist or is not   
         permitted for the country grouping of the schema.               
    Is there any additional operation to perform?
    Thank you in advance.
    Paolo

    Hi Paolo,
    could u please explain the solution in more detail....Even I have overcome the same problem, I have tried the following ....is that what you had meant in ur reply..
    pe02 -> attributes -> vountry grouping = 13 (Australia) in place of *
    is that all ...else could you plz explain the situation.
    Regards,
    Anil

  • Issue casting a HealthRecordItem (AppSpecificDataType) to my custom wrapper type

    I have a HealthVault application built using the 0.15.2016.4015 version of the HealthVault assemblies.
    Since the HealthVault platform has changed since then, causing issues with the Basic datatype, I decided to upgrade the assemblies to latest version - 2.1.0.0.
    Ever since I updated to this version, my application specific data type casting has stopped working.
    I have made sure that the code is as per the guidelines and answers mentioned at https://social.msdn.microsoft.com/Forums/en-US/e7c195c4-3bf3-473e-b8c6-d6d1a1b3cdc3/problem-casting-a-healthrecorditem-to-my-custom-wrapper-type.
    Here is the error message that I keep getting:
    Unable to cast object of type 'Microsoft.Health.ItemTypes.ApplicationSpecific' to type 'CustomNamespace.CustomHealthTypeWrapper'.
    I'm unable to proceed further with my application till this issue is resolved. 
    Any help is highly appreciated.

    Hi,
    Simple way to hide the columns from the Edit or New form is use the PowerShell command.
    $webUrl = Get-SPWeb http://<<servername>>/mysite
    $listName = $web.Lists["<<listName>>"]
    $columnName = $list.Fields["<<column name>>"]
    //If you want to hide the column from Edit Form then Change the ShowInEditForm property and update objects
    $columnName.ShowInEditForm = $false
    //If you want to hide the column from New Form then Change the ShowInNewForm property and update objects
    $columnName.ShowInNewForm=$false
    $columnName.Update()
    $listName.Update()
    $webUrl.Dispose()
    Each column has supports following properties, it can be controlled either using powershell or CSOM or JSOM or server object model.  Even you can controlled while creating the list definition using Visual studio by setting the following
    property.
    ShowInDisplayForm
    Gets or sets a Boolean value that specifies whether the field is displayed in the form for displaying list items.
    ShowInEditForm
    Gets or sets a Boolean value that specifies whether the field is displayed in the form that is used to edit list items.
    ShowInListSettings
    Gets or sets a Boolean value that specifies whether the field is displayed in the page for customizing list settings.
    ShowInNewForm
    Gets or sets a Boolean value that specifies whether the field is displayed in the form that is used to create list items.
    ShowInVersionHistory
    Gets or sets a Boolean value that specifies whether the field is displayed in the page for viewing list item versions.
    ShowInViewForms
    Gets or sets a Boolean value that specifies whether the field is displayed in pages that are used to view list data.
    Please mark it as answered, if your problem resolved or helpful.

Maybe you are looking for

  • How to create a group of midi notes and...?

    Hi, I was thinking about if it's possible to create for example a group of 32 nidi notes with a specific duration and a specific separation between them without painting them. And then, I have a drum on the beat with its midi notes, now I want to hav

  • Ipod nano, new itunes, and windows vista

    Hello, I just recently bought a new computer that came with windows vista. With all the problems i've been having, I was sure that I would have problems with iTunes... Well everything went surprisingly well when installing the new iTunes and adding a

  • Cd drive ejecting empty dvd's

    Hello everyone, My cd drive of my macbook is ejecting all empty dvd's,so i cant burn any dvd's. Does anyone have an answer to this problem? thanks

  • Need help with tables in dreamweaver

    So I can insert a table in dreamweaver but fine tuning it is a problem. I cannot find how to access individual cell properties to apply borders on only the sides of the cells I want. Also I can configure the width of the columns only by dragging the

  • At New event Quantity field

    hello i have following data in my internal table RUBBER1     1100     2007     BISO     AA     9.000     0.000 RUBBER1     1100     2007     BISO     AB     5.000     0.000 RUBBER1     1100     2007     EXTO     AB     3.000     0.000 RUBBER1     110