Can thread become a member of another thread  in Concurrent Programming

i had this doubt in concurrrent programming,..........
1)Can thread become a member of another thread in Concurrent Programming

Threads are just objects that happen to have a special property:
- when you invoke start() them the VM creates a new thread of execution to execute the Thread object's run() method
A class that subclasses Thread is just a normal class and can have whatever members it like.
Your questions don't make a lot of sense. If you are truly a "Novice in Java" then I recommend reading a few good books before you post in the forums.

Similar Messages

  • Conditional display of parameter based on another in a concurrent program

    I've a concurrent program with two parameters
    (PARAM1) STATUS ->
    Value set = NN_STATUS BASED ON TABLE NN_STATUS_LKP
    DEFAULT VALUE :SELECT LOOKUP_CODE FROM NN_STATUS_LKP WHERE LOOKUP_CODE IN ('REQUIRED','REJECTED')
    (PARAM2) NOTE -> Valueset 240 Characters
    I want second parameter to be displayed only if first parameter value is REQUIRED
    I searched this forum and I tried $FLEX$ with no luck?
    Thanks,
    Kiran

    Hi Sandeep,
    In my scenario,
    first parameter is based on Table But second parameter is based on standard value set i.e 100 characters . No table is involved.How to make second parameter depend on first?
    Thanks,
    Kiran

  • How to Spawn a concurrent program from another Concurrent Program

    Hi,
    I need to write a concurrent program with PL/sql procedure. Inside this procedure, for a cursor data, for each record I need to spawn another concurrent program. How can I do this. Should I call a concurrent program using fnd_request.submit_request?
    Any suggestions?
    Thanks,
    HC

    Correct - you will need to use FND_REQUEST. Pl use the search feature of these forums to find old threads that discuss this topic
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_REQUEST+AND+SUBMIT_REQUEST&objID=c3&dateRange=all&userID=&numResults=15
    How To Submit A Concurrent Request Set Using Fnd_Request.Submit_Request          [Document 382791.1]
    Most Commonly Used FND APIs in APPS Customizations          [Document 221549.1]
    HTH
    Srini

  • How to EXPORT a concurrent program from one instance to another

    Hi,
    I am new to EBS.
    How to EXPORT a concurrent program from one instance to another. I dont want to use FNDLOAD.
    Is there any other way from where we can export the concurrent program to anothere instance from CLIENT connection server.
    Thanks
    Asis

    Hi;
    What is EBS version? Why you dont use FNDLOAD?
    Pelase see below thread
    Move concurrent program to prod
    Move concurrent program to prod
    Regard
    Helios

  • How can I get the responsibility for concurrent programs

    Guys,
    How can I get the responsibility for a list of concurrent programs. Is there a query that I can run to get the results?
    Thanks in advance,

    Refer to Note: 134036.1 - WHOCANRUN.SQL - List Responsibilities That Can Run a Given Concurrent Program
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=134036.1
    From the output of the query in the note referenced above, you can run "Users of a Responsibility" concurrent program then to find out the list of users who have access to a certain responsibility.

  • Can we use Template(Rtf) to all Concurrent Program Type.other than Reports

    Hi Frs,
    i have created Concurrent program with Method as SQL*plus and output type as XML. but when i run the Report i get output has Text Format.
    not getting XMl File.
    i need to setup rtf for this Concurrent Program.
    How to Get it.
    whether it is possible to setup RTF for concurrent Program with method as SQL*plus or RTF is only supported for Method Report.
    pls help
    Message was edited by:
    Badsha
    Message was edited by:
    Badsha

    I don think, this way you can get xml output,..
    "i have created Concurrent program with Method as SQL*plus and output type as XML. but when i run the Report i get output has Text Format.
    not getting XMl File."
    use, the same query in datatemplate , and use the seeded XDO executable as the executable.
    first get the xml out from Conc Pgm, then we can design the RTF and assign to it

  • Can't add Shared Member using API

    I would like to create a lot of shared members.Using API I do it as following according to documentation: ESS_MBRINFO_T MbrInfo; memset(&MbrInfo, '\0', sizeof(MbrInfo)); strcpy(MbrInfo.szMember, (char*)mbrName); MbrInfo.usShare = ESS_SHARE_SHARE; sts = EssOtlAddMember(getOutline(), &MbrInfo, ESS_NULL, hMbr, &hNewMember); When I try to add shared member, then sts = 1060051.So I have to change names and after correct them manually.Using HAB API I can't add shared member too.Regards,Georgy

    Hi and Welcome to the Forums!
    To really help, you should come and create an account on these forums...there are many unanswered questions from your initial inquiry...come here, create an account, and open a thread so that it all can be resolved:
    http://supportforums.blackberry.com/rim/
    Cheers!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Axis Fault: JavaProvider can not access a member of class Hello with mod.

    Hi,
    I am getting the following Axis Fault with content
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvider can not access a member of class Hello with modifiers ""
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:SNR143052
    java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvider can not access a member of class Hello with modifiers ""
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
    The client code for the webservice using instant deployment is
    import java.net.URL;
    import javax.xml.rpc.ParameterMode;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.utils.Options;
    public class ClientHello {
         public ClientHello(){
         public static void main(String[] args) throws Exception{
              Options options = new Options(args);
              String endpoint = "http://localhost:" + options.getPort()+"/WebServices/Hello.jws";
              args = options.getRemainingArgs();
              Service services = new Service();
              Call call = (Call) services.createCall();
              call.setTargetEndpointAddress(new URL(endpoint));
              call.setOperationName(args[0]);
              call.addParameter("op1",XMLType.XSD_STRING,ParameterMode.IN);
              call.setReturnType(XMLType.XSD_STRING);
              System.out.print(args[1]);
              String s = new String(args[1]);
              String result = (String) call.invoke(new Object[]{s});
              System.out.println(result);
    The hello.jws is as follows
    class Hello {
         public String hi(String message){
              return "Hello "+ message;
    I am not sure why the message is substituted with "" instead of the parameter i have sent in args[1].
    Please help me out in this regard.
    Thanks,
    winkidzz

    Thanks swatdba.
    Any idea on how to proceed with implementing Webservices using Websphere MQ?

  • Family calendar problems - can't Add Family Member

    When I try to add a family member in iOS, the "Next" button does nothing.

    Frank,
    you are attempting to a and event to a calendar you subscribed to.  When you subscribe to a calendar that is, in a sense, read only and not something you can change.  You should select another calendar to add the even to.
    Alos... I am going to  ask this be moved to the "Applications > iCal" forum.

  • Move data from one member to another existing member

    Can someone please advise how I can move data from one member to another existing member?  For example, I have data in member ID MT_160 and I want to move this data over to an existing member MT_130 as per business requirement.  How can I accomplish this?  I tried using the NEWID field but system complained that the new ID must be Unique, which makes sense.  I'm stuck now.  Any Ideas?  I'm using BPC version 5.0 on Microsoft.
    Thanks.

    David,
      one  of  the  ways  you  can  achieve  the  desired  result  is  Via  BPC  Excel
    1) from  menu Edata--> RUn  Package --> copy/Move .  OR
    2) You  an  write  Script  logic  to  Copy/Move  data.
    Hope this  helps..

  • Change cast member of another sprite on rollover?

    There is probably a really easy answer for this question but I just have NO IDEA how to approach it and am about ready to blow my brains out ... (new at this, yes) so ANY HELP would be greatly appreciated.
    When rolling over or "on mouseEnter me" of a certain sprite, I would like to change the cast member of ANOTHER sprite as well as the current one (having no problems with the current one as it's all set up in the behaviours lol) is this possible? and how would the lingo go for this?
    thanks

    Don't do what Multiduck suggests. Sprites should never change the properties of other sprites. That is a bad practice prone to creating nasty bugs.
    Create a behavior for the second sprite that has a handler for changing its member. You might call it "showRollOver". Then your first sprite simply calls that handler.
    sprite(x).showRollOver()
    If you want the second sprite to react to mouse overs, then just use the mouseEnter method and call that handler from the first sprite.
    sprite(x).mouseEnter()
    Note: You can directly call any handler that is added to a sprite, ie,
    sprite(x).mouseDown()
    sprite(x).beginSprite()
    sprite(x).setText()
    sprite(x).fadeOut()

  • Create a role without becoming a member...

    I looked all over and couldn't find the answer....I'm 99% sure it's possible....Just cannot remember for the life of me.
    What I'm trying to do is create a role (Create Role TestRoleABC) without becoming a member of it or having the admin ability attached to the ID I'm creating the role with.
    So, example being. Using ID "AppID123", I issue "Create Role TestRoleABC". After creation, the ID "AppID123" is now a member of "TestRoleABC" and has the ability to grant it. I only want accounts that have the "Grant Any Role" priv to be able to do so....
    Thanks.

    Topher34 wrote:
    I looked all over and couldn't find the answer....I'm 99% sure it's possible....Just cannot remember for the life of me.
    What I'm trying to do is create a role (Create Role TestRoleABC) without becoming a member of it or having the admin ability attached to the ID I'm creating the role with.
    So, example being. Using ID "AppID123", I issue "Create Role TestRoleABC". After creation, the ID "AppID123" is now a member of "TestRoleABC" and has the ability to grant it. I only want accounts that have the "Grant Any Role" priv to be able to do so....
    Thanks.when all else fails Read The Fine Manual
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_6012.htm#i2066772
    "If you create a role that is NOT IDENTIFIED or is IDENTIFIED EXTERNALLY or BY password, then Oracle Database grants you the role with ADMIN OPTION. However, if you create a role IDENTIFIED GLOBALLY, then the database does not grant you the role. A global role cannot be granted to a user or role directly. Global roles can be granted only through enterprise roles."

  • I can't update a member with a rule on Essbase console

    I want to make an update of a member of a dimension on ESSBASE. I'm using a rule on Essbase Console and I allowed the parameters on the *"Dimension Build Settings" -> "Existing Method"* for making the update on existing member. But it says in its dataload.err that I'm not allowed to do it. And I also can't move a meber under another parent, it just make a copy of a member on the other parent setting it like a Shared member.
    How can I do for resolve my problem?

    I found the solutions...I made a mistake when I set the dimension on the rule.
    Thanks!

  • Reflection problem: can not access a member of class java.lang.IllegalAcces

    package org.struts.ets.utility;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.InvocationTargetException;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import org.struts.bean.FieldTrouble;
    import org.struts.bean.GenericDAOBean;
    public class DynamicObjectCreation
         public static void main(String... args)
              FieldTrouble ft = new FieldTrouble();
              try
                   Class<?> c = ft.getClass();
                   //Class<?> c = FieldTrouble.class;
                   /*Class<?> c = null;
                   try
                        c = Class.forName("org.struts.bean.FieldTrouble");
                   } catch (ClassNotFoundException e)
                        e.printStackTrace();
                   Field f = c.getDeclaredField("var1");
                   //f.setInt(ft, 42); // IllegalArgumentException
                   f.set(ft, new String("A"));
                   System.out.println(ft.getVar1());
                   // production code should handle these exceptions more gracefully
              } catch (NoSuchFieldException x)
                   x.printStackTrace();
              } catch (IllegalAccessException x)
                   x.printStackTrace();
    }// If I put FieldTrouble.java in any other package than the current package I am running this code from. I get the following error:
    java.lang.IllegalAccessException: Class org.struts.ets.utility.DynamicObjectCreation can not access a member of class org.struts.bean.FieldTrouble with modifiers ""
         at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
         at java.lang.reflect.Field.doSecurityCheck(Unknown Source)
         at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
         at java.lang.reflect.Field.set(Unknown Source)
         at org.struts.ets.utility.DynamicObjectCreation.main(DynamicObjectCreation.java:35)
    I tried all possible ways of creating class as:
    Class<?> c = ft.getClass(); OR
    Class<?> c = FieldTrouble.class; OR
                   /*Class<?> c = null;
                   try
                        c = Class.forName("org.struts.bean.FieldTrouble");
                   } catch (ClassNotFoundException e)
                        e.printStackTrace();
    Edited by: ..-__Kris__-.. on Feb 21, 2008 10:26 AM
    Edited by: ..-__Kris__-.. on Feb 21, 2008 10:26 AM

    Any hidden performance or memory issue here?
    Let us consider an object:
    public class SomeObject
         private String fieldA;
         private String fieldB;
         private String fieldC;
         private String fieldD;
         private String fieldE;
         //... say 50 declared fields....
         public SomeObject()
         public SomeObject(String fieldA, String fieldB)
              this.fieldA = fieldA;
              this.fieldB = fieldB;
    // getters and setters..     
    }When I create an object using the constructor with only two fields initialized such as the following code above, and look at what is happening to other fields as shown in the code below, I see that they are also AVAILABLE, now this is important, but they are set to null. What I wanted to know was, if I created an object with many fields, as many as 50 (getDeclaredFields = 50), and used a constructor with only two input fields to initialize an object, I still have 48 other fields available but set as NULL's. When I create more than 100,000 of these objects in a list and send to a .jsp page, I am unable to understand if this has more memory load than when you use a list of another object which has actually has only two declared fields in it. Each of this new object will have only two declared fields, when I say getDeclaredFields() it would return 2.
    This is where I am unable to figure out if this has anything to do with performance or memory, rather, what is the difference between the many possible ways you can initialize an object when there are too many fields which you probably won't use? Either create a new constructor with only two input arguments OR a generic constructor with all fields as input arguments but all those fields which you won't use assigned NULL's OR create another new object with only two declared fields
    SomeObject someObj = new SomeObject("abcd","cdef");
              Field[] fields = someObj.getClass().getDeclaredFields();
              System.out.println("Number of available fields: " + fields.length);
              for(int i = 0 ; i < fields.length ; i++)
                   try
                        fields.setAccessible(true);
                        System.out.println("Field " + i + ", with value: " + fields[i].get(someObj));
                        fields[i].get(someObj);
                   } catch (IllegalArgumentException e)
                        e.printStackTrace();
                   } catch (IllegalAccessException e)
                        e.printStackTrace();
              }Edited by: ..-__Kris__-.. on Mar 23, 2008 5:04 PM
    Edited by: ..-__Kris__-.. on Mar 23, 2008 5:05 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Updating IWeb, I'm asked to "become a member." I already am...???

    I've already published my website, and was in the process of updating. When I clicked to publish, a window asked me to become a member, I already am, it also asked that if I was to select "learn more" for a free 60 day trial of Mac-Life. I already have it...what to do? I'm already a member!

    tutto,
    Welcome to the discussions.
    Open System Preferences and re-enter your .Mac account information. Then log into .Mac and change your password. (You can always log back in and change it back). That should jog .Mac into common sense awareness!
    Mark

Maybe you are looking for

  • 04016

    hi I am getting this ora error: ORA-04016: sequence xxx no longer exists. the sequence exists in "DBA_SEQUENCES" and the owner is the correct one. what am I missing ? thank you

  • DVD Menu Issue

    Ok excellent, and just as a further point, if you have the time; I am a little confused as to which dimensions I should use when creating a DVD menu in photoshop to use in Encore, to begin with I made one in 1920x1080 as I didn't realise DVDs could n

  • SMSY generating runtime error on adding new system

    In our solution manager system, while trying to add a new system details via SMSY transaction we are getting the Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED. Please find the dump details. Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED Exception   

  • I changed my apple id and password but payments are still using my old id

    I recently changed my apple id and password but when try to make a payment it still tries to validate against my invaild old apple id. How do i fix this?

  • ITUNES - 3 QUESTIONS: PLEASE HELP!

    1 Before deciding to buy an EHD and copying my itunes library over (as back up) my music files fitted on my PC hardrive (C:) with no problem.  However it would seem that since the transfer some random files (tracks) are not available without the EHD