Local Attributes of the T_SERVER Class

What's the secret to getting the attributes listed as "local" in the MIB doc? I have some simple code to do GETs and then dump the contents of the receive buffer. Everything works nicely except I can't seem to get any of the "local" T_SERVER Attributes. I have tried setting the MIB_LOCAL flag. I have tried specifying the local attributes in a filter. All to no avail.
This snippet...
FBFR32* fmlbuf;
if ((fmlbuf = (FBFR32*)tpalloc("FML32", NULL, 10000)) == NULL)
cerr<<"ERROR: mibget: tpalloc: "<<tpstrerror(tperrno)<<endl;
return;
if (Finit32(fmlbuf, Fsizeof32(fmlbuf)) == -1)
cerr<<"ERROR: mibget: Finit32: "<<Fstrerror32(Ferror32)<<endl;
tpfree((char*)fmlbuf);
return;
Fchg32(fmlbuf, TA_OPERATION, 0, "GET", 0);
Fchg32(fmlbuf , TA_FLAGS, 0, (char*)MIB_LOCAL, 0);
Fchg32(fmlbuf, TA_CLASS, 0, (char*)tclass.c_str(), 0);
long len = -1;
if (tpcall(".TMIB", (char*)fmlbuf, (long)0, (char**)&fmlbuf, (long*)&len, (long)0) == -1)
cerr<<"ERROR: "<<tclass.c_str()<<": tpcall: Error "<<tperrno<<" "<<tpstrerror(tperrno)<<endl;
tpfree((char*)fmlbuf);
return;
string path = "c:\\temp\\";
path.append(tclass);
path.append(".log");
FILE* f = fopen(path.c_str(), "a");
Ffprint32(fmlbuf, f);
fclose(f);
tpfree((char*)fmlbuf);
Prints the following 38 fields for each server occurrence when tclass=T_SERVER...
TA_BASESRVID     1
TA_GRPNO     30002
TA_MAX     1
TA_MAXGEN     0
TA_MIN     1
TA_PID     6256
TA_RPID     1537
TA_RPPERM     432
TA_RQID     1537
TA_RQPERM     432
TA_SEQUENCE     0
TA_TIMERESTART     1322356429
TA_TIMESTART     1322356429
TA_MINDISPATCHTHREADS     0
TA_THREADSTACKSIZE     0
TA_MAXQUEUELEN     -1
TA_SRVID     0
TA_MAXEJBCACHE     0
TA_EJBCACHE_FLUSH     0
TA_CLASS     T_SERVER
TA_STATE     ACTIVE
TA_CLOPT     
TA_CONV     N
TA_ENVFILE     
TA_RCMD     
TA_REPLYQ     N
TA_RESTART     Y
TA_RQADDR     43349
TA_SERVERNAME     c:\\Oracle\\tuxedo11gR1_VS2010\\bin\\BBL.exe
TA_SYSTEM_ACCESS     FASTPATH
TA_SEC_PRINCIPAL_NAME     
TA_SEC_PRINCIPAL_LOCATION     
TA_SEC_PRINCIPAL_PASSVAR     
TA_SICACHEENTRIESMAX     0
TA_LMID     SLC00FDG
TA_SRVGRP     
TA_SRVTYPE     
TA_CONCURR_STRATEGY     
Oracle Tuxedo, Version 11.1.1.2.0 with VS2010, 64-bit, Patch Level (none) running on Microsoft Windows Server 2008 R2 Enterprise 6.1.7601 Service Pack 1 Build 7601.
What am I missing?

Answering my own post. What I was missing was the '&' in front of MIB_LOCAL. Chalk that one up to a stupid typo.

Similar Messages

  • Can i create more than one attributes for the custom class created using java API

    Hello everyone,
    I have been creating class and its attributes programatically using java APIs, I want to know that is there any way to create multipal attributs for the same class in just one call of API with all the options for each attributes,
    thanks

    You can create a new class and define all of the Attributes at the time the class is created - this is the preferred way of creating classes. Use the addAttributeDefinition() method on ClassObjectDefinition. If you need to add attributes to existing classes, you can only add them one at a time (using the addAttribute() method on ClassObject).
    (dave)

  • Reflection: attributes from the base class

    Is there a way to get the attributes from the base class of a derived class via reflection? I only found methods to get the attributes from the derived class.
    Example:
    class A
    int a = 4;
    class B extends A
    int b = 5;
    Object unknown = new B();
    Code/Idea to get all attributes from baseclass A using unknown (here: a=4)?

    Thank you all for your hints. The mistake I make, was to use the baseclass, and not the derived class for getting the attributes. By using an extra parameter of type class I got all attributes in their context.
       private StringBuffer getDump(Object obj, Class cl)
             dmp.append(cl.getName() + " {\n");
             Field[] attribute = cl.getDeclaredFields();             <--- only the fields of the current class
             for (int j = 0; j < attribute.length; j++)
                attribute[j].setAccessible(true);
                try
                   if (attribute[j].getType().isPrimitive() || attribute[j].getType() == String.class)
                      dmp.append(attribute[j].getName() + "=" + attribute[j].get(obj) + "\n");
                   else
                      if (((attribute[j].getModifiers() & Modifier.STATIC) != Modifier.STATIC) &&
                          (attribute[j].getType().getName().startsWith("java.lang") == false) &&
                          ((attribute[j].getModifiers() & Modifier.FINAL) != Modifier.FINAL))
                         dmp.append(getDump(attribute[j].get(obj), attribute[j].get(obj).getClass())); <- recursive call
                catch (IllegalAccessException ex)
                   ex.printStackTrace();
             dmp.append("}");
          return dmp;
       }

  • Help! .TMIB service not returning local attributes

    I've the following src to create a an FML request buffer with TA_FLAGS set to MIB_LOCAL...
    FBFR32* buf = (FBFR32*)tpalloc("FML32", NULL, 1024);
    Finit32(buf, Fsizeof32(buf));
    long flags = MIB_LOCAL;
    Fchg32(buf, TA_OPERATION, 0, "GET", 0);
    Fchg32(buf, TA_CLASS, 0, "T_QUEUE", 0);
    Fchg32(buf, TA_FLAGS, 0, (char*)&flags, 0);
    Fchg32(buf, TA_RQADDR, 0, qaddr, 0);
    FILE* f = fopen(dumpfile, "a");
    Ffprint32(buf, f);
    long len;
    tpcall(".TMIB", (char*)buf, (long)0, (char**)&buf, &len, 0);
    Ffprint32(buf, f);
    fclose(f);
    Which produces the following output in the dumpfile...
    TA_FLAGS        65536
    TA_CLASS T_QUEUE
    TA_OPERATION GET
    TA_RQADDR LMQ
    TA_ERROR 0
    TA_MORE 0
    TA_OCCURS 1
    TA_GRACE 60
    TA_MAXGEN 3
    TA_MSG_CBYTES 0
    TA_MSG_QBYTES 65536
    TA_MSG_QNUM 0
    TA_RQID 52527126
    TA_SERVERCNT 1
    TA_WKQUEUED 0
    TA_CLASS T_QUEUE
    TA_STATE ACTIVE
    TA_CONV N
    TA_RCMD
    TA_RESTART Y
    TA_RQADDR LMQ
    TA_SERVERNAME <ommitted>
    TA_SOURCE <ommitted>
    TA_LMID slc00caq
    Note the lack of local attributes. I have analogous src to query local attrs of the T_SERVER class which works fine. Any ideas on why I'm not getting T_QUEUE local attrs?

    Michael,
    The local attributes in the T_QUEUE class aer TA_TOTNQUEUED, TA_TOTWKQUEUED, TA_SOURCE, TA_NQUEUED, and TA_WKQUEUED.
    TA_WKQUEUED and TA_SOURCE are being returned as part of the result.
    For TA_TOTNQUEUED the TM_MIB(5) manual page T_QUEUE class definition lists the following limitation:
    Limitation: If the T_DOMAIN:TA_LDBAL attribute is "N" or the T_DOMAIN:TA_MODEL attribute is "MP", TA_TOTNQUEUED is not returned. In the same configuration, updates to this attribute are ignored. Consequently, when this attribute is returned TA_LMID and TA_SOURCE have the same value.
    There is a similar limitation listed for TA_TOTWKQUEUED and TA_NQUEUED. That is why you are not seeing those 3 attributes in the result.
    Regards,
    Ed

  • Use of auxiliary class to add attributes to the schema

    I need to add some attributes to the user class.
    What are the pros and cons of using an auxiliary class versus adding the attributes directly to user?
    Thanks,
    Paolo
    Paolo Tedesco - http://cern.ch/idm

    Hi,
    If you need mandatory attributes for all instances of a class (for whatever reason)
    then modifying the built in class may be the way to go. However auxiliary classes are
    "cleaner" in that they can be used to group related attributes together and more
    flexible in that they can be dynamically (per class instance) or statically linked.
    Probably the most relevant reference is:
     http://msdn.microsoft.com/en-us/library/cc223213.aspx
    One thing to note on that page is:
    "The objectClass attribute of objects of class cl does not include the names of
    statically linked auxiliary classes or the classes in their superclass chains."
    So if you have applications (LDAP browsers, address books etc.) that rely on objectClass
    to list attributes that might be an problem. My preference is to leave built in classes alone and modify them through auxiliaries.
    Lee Flight

  • Can we change the Super class attribute scope in Sub class

    Hi.
    I created a super class. In that i have 4 attributes. That attributes are PUBLIC.
    I created a sub class. In that i got all super class attributes. I want to change that attributes as a Private. Is it possible.
    If it is possible.Give me an Example with code or Pseudo code.
    Regards.
    Krishna.

    Hi Krishna,
    It is not possible... If you declare the Attributes again in Subclass of the same name as that of Super class
    then the way of accessing them would be different from that of attributes in the main class.
    Hope this would help you
    Good luck
    Narin

  • Catch-22: need to assign a local variable within an anonymous class

    static boolean showMessage(Window parent, String button0, String button1)
        throws HeadlessException {
              final Window w = new Window(parent);
              Panel p = new Panel(new GridBagLayout());
              final Button b[] = new Button[]{new Button(button0), (button1 != null) ? new Button(button1) : (Button)null};
              boolean rval[]; //tristate: null, true, false
              w.setSize(100, 50);
              w.setVisible(true);
              //add b[0
              gbc.fill = GridBagConstraints.HORIZONTAL;
              gbc.gridx = 0;
              gbc.gridy = 3;
              p.add(b[0], gbc);
              //add b[1]
              if (button1 != null) {
                   gbc.fill = GridBagConstraints.HORIZONTAL;
                   gbc.gridx = 1;
                   gbc.gridy = 3;
                   p.add(b[1], gbc);
              w.add(p);
              w.pack();
            w.setVisible(true);
            //actionListener for button 0
              b[0].addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             if (e.getSource() == b[0]) {
                                  w.setVisible(false);
                                  rval = new boolean[1];
                                  rval[0] = true;
              //actionListener for button 1
              if (button1 != null) {
                   b[1].addActionListener(new ActionListener() {
                             public void actionPerformed(ActionEvent e) {
                                  if (e.getSource() == b[1]) {
                                       w.setVisible(false);
                                       rval = new boolean[1];
                                       rval[0] = false;
            while (true) {
                 try {
                      if (rval[0] == true || rval[0] == false) //should trigger NullPointerException
                           return rval[0];
                 } catch (NullPointerException e) { }
         }catch-22 is at
    rval = new boolean[1];
    rval = false;javac whines: "local variable rval is accessed from within inner class; needs to be declared final"
    How do I assign to rval if it's declared final?
    Or at the very least, how do I get rid of this error (by all means, hack fixes are okay; this is not C/C++, I don't have to use sanity checks)?
    I'm trying to make a messagebox in java without using JOptionPane and I'm trying to encapsulate it in one method.
    And I'm far too lazy to make a JNI wrapper for GTK.

    dcminter wrote:
    How do I assign to rval if it's declared final?You don't and you can't. You're not allowed to assign to the local variable of the outer class for extremely good reasons, so forget about trying.
    Or at the very least, how do I get rid of this errorIf you don't want the side effect, then just use an inner class variable or a local variable.
    If you want the side effect then use a named class and provide it with a getter and setter.
    Finally, in this specific case because you're using an array object reference, you could probably just initialise the array object in the outer class. I.e.
    // Outer class
    final boolean[] rval = new boolean[1];
    // Anonymous Inner class
    rval[0] = true; // No need to intialize the array.
    I declared it as an array so that it would be a tristate boolean (null, true, false) such that accessing it before initialization from the actionPerformed would trigger a NullPointerException.
    Flowchart:
    is button pressed? <-> no
    |
    V
    Yes->set and return
    Is there a way to accomplish this without creating a tribool class?

  • Inherit protected attribute from a Super class

    Hi All,
    I am inheriting a standard class which has many instance protected attributes. how do i access the super classes protected attributes from the sub class.  i.e i need the value present in the super class attribute to be used in a sub class method.
    will i be able to get the value of an instance attribute??
    Thanks in advance,
    Arun.

    Hi marc,
    I was also wondering as to how we can make use of the public attributes in the sub classes.as in, what the syntax we need to follow.
    It'd be great if you could give a simple example with one protecetd attribute accessed in the subclass.
    I've written a sample prog.
    REPORT  YA_TEST_OO.
          CLASS s_abc DEFINITION
    CLASS s_abc DEFINITION.
      PRIVATE SECTION.
        DATA: d_abc TYPE i.
    ENDCLASS.                    "s_abc DEFINITION
          CLASS sb_abc DEFINITION
    CLASS sb_abc DEFINITION INHERITING FROM s_abc.
      public SECTION.
    DATA: sb_d_abc TYPE c." VALUE d_abc.
        METHODS: m_abc.
    ENDCLASS.                    "sb_abc DEFINITION
          CLASS sb_abc IMPLEMENTATION
    CLASS sb_abc IMPLEMENTATION.
      METHOD m_abc.
       sb_d_abc = d_abc + 1.
      ENDMETHOD.                    "m_abc
    ENDCLASS.                    "sb_abc IMPLEMENTATION
    It doesn't work though.
    Thanx,
    Zid.

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Please clarify: can you add attributes to the Out of Box classes?

    In this thread,
    http://technet.oracle.com:89/ubb/Forum36/HTML/000116.html
    It said, (March 21, 2001)
    "You are not allowed to add attributes to the Out of Box classes that ship with IFS. You have to subclass the out-of-box attributes and define your custom attributes as extended attributes of your subclass. The add button is only active when the class you are viewing is not one of the out of box classes"
    In the 1.9 documentation on page 179 I see
    "Oracle 9iFS also allows you to add or modify attributes on content types after they
    have been created.
    Or, you may need to add custom attributes to the Document and Folder content types that come with Oracle 9iFS. You can add
    attributes to a content type at any time"
    Is this a new feature of 1.9?
    Would a good workaround be to create a PropertyBundle for each Document and Folder? Would there be a big performance hit?
    I dont want to create a new folder type and a new document type since I'm not sure how the rest of the system will use them.
    Someone please respond, I've been trying to figure this out all day.
    Thanks in advance
    Mitch
    null

    In the isshell in ifs 1.1.9, I do a
    ls -attrall
    and I see "null" next to the property bundle. I assume this to mean that no property bundle has been created for this folder instance.
    As for categories, 1.2 doc states.. "A folder, ... can be associated with zero,one or more categorys" I will have to create a new category for each file and or folder.
    I really want to have additional attributes for each file.
    I dont want to subclass folder because, if a user does a drag and drop in NTFS a folder will be created and not a MyFolder.
    I have a kludge for now; I put a comma delimited list of items in description field.
    Apparently this limitiation, is changed in 1.2. See above.
    Thanks for your help. IFS is a really great product. Cant wait for 1.2 on NT.
    Mitch
    null

  • Trying to create a local instance of the remote object

    Hi,
    I have a ClassA on which I need to be able to invoke RMI calls. Problem is the interface which ClassA implements does not throw exceptions. To get around this problem I have created a wrapper class ClassWrap which has a ClassA attribute and calls made to ClassWrap are directed to this ClassA object. A facade type design I think it's called.
    ClassWrap implements Remote so it can be used as a Remote object.
    When I create an instance of ClassWrap and deploy it on a server, my client has no problem communicating with the remote ClassWrap object via a remote stub ClassWrap_Stub.
    Problem is I also want my client to be able to use a local instance of ClassWrap. Whan I try to create an instance of ClassWrap in my client I get a remote Exception ... but !! when I have a ClassWrap_Stub object in my classpath then there is no problem creating a ClassWrap object.
    Any ideas why this happens?

    What you are trying to do should work just fine. Do you have the wrapper class file in your client jar?

  • Changing user profile attributes via the admin console

    Hi all,
    I created my own login module (like the existing Membership module) which
    extends the Login class. It works just fine, and can create user profiles
    and allow people to log in. When I log into the admin console and try to
    bring up the user profile to edit the attributes for this module [Manage
    Domains->(domain)->(role)->Users->(user)->Authentication(authentication
    module)] it displays an error stating 'This profile contains no data which
    can be administered.' It also does this when I create a user via the admin
    console. I know the profile exists (the user can log in, and doing a
    'ipsadmin get user (user)' produces the profile). In the login module XML,
    all the necessary attributes are set as "userConfigurable=TRUE" with the
    right privileges. Looking at the Membership module as a template, I saw it
    puts a configuration file in the '/opt/SUNWips/locale' directory which is
    used apparently for editing the profiles created by this module. I made a
    similar one for my module, but the same error occurs. Does anyone know what
    I am failing to do?
    Thanks,
    Mark

    Hi,
    After creating your own Authentication module You have to import your "iwtAuth[NewModule].xml" to the profile server.
    You can find a sample file for Membership module
    " iwtAuthMembership.xml" at "/etc/opt/SUNWips/xml".
    Modify "iwtAuthMembership " in the above xml file with "iwtAuth[NewModule] "and import the
    "iwtAuth[NewModule] .xml" using
    # ipsadmin -import iwtAuthNewLogin.xml
    and restart the server.

  • Local attributes - global attributes tradeoff

    Hi, MDM experts.
    Can you, please, share your experience on business partners repository modeling.
    I build custom business partners repository. While creating it I came to a question - whether local system attributes of business partner should be modelled in that repository?
    Intrinsic attributes like Full Name, State Identity Number and so on should be definitely modeled. Attributes specific to our organization but those that span many of our systems should also be modeled I think.
    But what's about some specific attributes that are relevant only for one of the systems being integrated? To be concrete, imagine we have SAP ERP system as one of the systems in landscape and such attribute of our business partner as 'Purchasing organization'. In our case this table is SAP ERP specific and none of our other systems have such entity in their data model.
    <b>The question is - is it reasonable to have local system attributes and lookup tables implemented in central MDM repository?</b>
    If yes then isn't our repository going to be overloaded with all that local attributes and lookup tables of every client system?
    If no, then how should process of central creation of business partner look like? The problem is in this case Creator won't be be able to assign all attributes he would like to and he will have to login to each of local system and assign these values after central creation. Moreover, client systems can refuse to create new record automatically in case some of attributes are missing. For example such situation is typical for Idoc inbound processing .
    Have you any suggestions on streamlining the data model and BP central creation process ?
    Regards,
    Vadim Kalabin

    Hi vadim,
    These are my thoughts on your issue.
    I feel both the attributes should find place in the same repository.
    This is not going to overload the system. In some typical MDM Implementation the volume of Main table records will very huge and the Local and global attributes will only occupy a less share only on the total records.
    Also the practice is that MDM DB Server and the core server runs separately.
    Pl find if this Article is use for you.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0d8aa53-b11d-2a10-aca2-ff2bd42a8692">MDM Data modelling do's and dont's</a>
    Regards,
    Vijay

  • Can not filter the data with the extended class

    Hi,
    I have a quick question about PortableObject format. I have created a class which extends PortableObject interface and implemented serializer methods as well. I have updated it in the pof-config.xml file as well. If I insert the objects of this type of object in the cache, they get inserted properly and I can filter the values based on the getters defined in the class. Everything works fine here.
    Now, I am trying to extend the existing class that I have. We have our custom API which we have built for our domain objects. I need to store these objects in the cache. So, naturally I need to implement PortableObject interface to do that. So, instead of creating a new class with new set of getters and setters and local fields, I am extending our domain class to create a new class which implements PortableObject interface. Instead of defining the local fields and getters and setters i am reusing the ones provided by my existing class. Now, I can insert the objects of the new class to the cache. But I can not filter the values for the objects of this new class.
    Let me show you what exactly I am trying to achieve by giving a small example:
    Domain Class:
    class Person
    private String person_name;
    *public String getPerson_name() {return person_name;}*
    *public String setPerson_name(person_name) {this.person_name = person_name;}*
    The new class implementing PortableObject interface:
    class ExtPerson extends Person implements PortableObject
    public static final PERSON_NAME = 0;
    *public void readExternal(PofReader reader) throws IOException{*
    setPerson_name(reader.readString(PERSON_NAME));
    *public void writeExternal(PofWriter writer) throws IOException{*
    writer.writeString(PERSON_NAME, getPerson_name());
    *// And HashCode, Equals and ToString methods, all implemented using the getter from the Person class*
    So, if I create a new class ExtPerson without extending the Person class and write all the methods, store the objects in the cache and perform the following query, I get the size printed
    System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","ABC"))).size());
    But if I use the extended class and insert the values into the cache and if I use the same query to filter, I get 0 printed on the console.
    System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","ABC"))).size());
    So, can anyone tell what exactly is causing this?
    Thanks!

    Well, just a quick question. It seems that I can not get ContainsAnyFilter or ContainsAllFilter working.
    EqualsFilter is actually working properly.
    I am preparing a Set of Strings and passing it to ContainsAnyFilter or ContainsAllFilter and it is returning me 0 records.
    E.g.:
    Set<String> setStr = new HashSet<String>();
    setStr.add("ABC");
    setStr.add("DEF");
    System.out.println((cache2.entrySet(new ContainsAnyFilter("getPerson_name", setStr))).size());
    I get 0 in my output
    If I try this:
    System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","ABC"))).size());
    System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","DEF"))).size());
    I get 1 for each of the query.
    If I club all these EqualsFilter in a Filter[] array and create an AnyFilter or AllFilter and pass it to the query, it works fine.
    List<Object> lst = new ArrayList<Object>();
              lst.add("ABC");
              lst.add("DEF");
    Filter[] filter = new Filter[lst.size()];
         for(int i=0;i<lst.size();i++)
              filter[i] = new EqualsFilter("getPerson_name",lst.get(i).toString());
    AnyFilter fil = new AnyFilter(filter);
    System.out.println((cache4.entrySet(fil)).size());
    I get the desired result here, which is 2.
    Am I missing something here?

  • Weblogic 10.3.2 EJB3 Local Interface in POJO/Helper classes

    Hi,
    I have a jar file containing all EJB's in application & some Helper classes. I want to access Local interfaces of EJBs in those helper classes. Is there any way I can do it? I've gone through Maxence Button & Jay SenSharma 's blogs about accessing Local interface. but it doesn't help. May be these two guys can help me more here.. My requirement is very simple. Just to access local interface in POJO/Helper classes that are in same JAR file as EJB's. I can't get reference with @EJB class level annotation as Helper classes are called independently from MBean services.. not from any EJB or Servlert.
    Please if anyone can tell me how do I get reference of local interfaces, that would be really good.
    my environment is
    Weblogic 10.3.2
    EJB3
    Regards,
    Prasad

    Hi,
    Just check ...If you want something like mentioned in the below Link with a complete Example:
    [http://jaysensharma.wordpress.com/2009/08/16/weblogic-10-3-ejb3-local-lookup-sample/|http://jaysensharma.wordpress.com/2009/08/16/weblogic-10-3-ejb3-local-lookup-sample/]
    Regards
    Jay SenSharma

Maybe you are looking for

  • How do you change the font of everything?

    How do you change the font of all text?

  • Storage section sap wm

    We have 2 storage section for 1 storage type  they are high frequency & low frequency. We are facing issues where most of the bin in high frequency is being taken by 1 material. for example 1 material has occupied 8 -10 pallets. We want to have only

  • Unable to start welogic on HPUX

    Hi. I getting the following when attempting to start my new domain (that has nothing in it yet). <BEA-02527> <The get deltas from version 0 to version timed out.> <BEA-149204> <The deployment framework was unable to register with the Data Replication

  • Installed 8.1.1 and still can't connect to the iTunes store

    So for about 3 weeks I've been unable to connect to the iTunes store. I've allowed iTunes as an exception to my firewall; I've even tried turning the firewall off. I just installed 8.1.1 and I still can't connect to the store--what is going on? Any a

  • CS3 DW quit unexpectedly

    I have a G4 iBook with OS 10.4.11 and downloaded the trial version of CS3. After installing from the .dmg, I only got an error message: "Application Dreamweaver quit unexpectedly". I tried a re-install with same negative results. I saw this same prob