Method names and transactions

I'm having several problems with transactions using WLS 6.0
          I believe I have isolated it to the name of the method.
          I have a Session bean method called removePerson() and another one called
          deletePerson()
          My descriptor is below:
          <container-transaction>
          <method>
          <ejb-name>PersonService</ejb-name>
          <method-intf>Remote</method-intf>
          <method-name>*</method-name>
          </method>
          <trans-attribute>Required</trans-attribute>
          </container-transaction>
          When I invoke these methods I can see my transaction count increase when I
          invoke the deletePerson method
          However, when I invoke the removePerson method the transaction count does
          nothing. Both method do the nothing except
          immediately return.
          Am I missing something ???
          I have looked for some type of method name restrictions but I have not found
          any for the remote interface that would lead me to
          understand why this occurs.
          

Thanks Rob,
          I added the parm and re-ran the test
          Here is the weblogic.log file
          "Rob Woollen" <[email protected]> wrote in message
          news:[email protected]...
          > Can you add -Dweblogic.ejb.deployer.debug to the server start-up and post
          the
          > debug messages here?
          >
          > -- Rob
          >
          > Ed Lorenz wrote:
          >
          > > I'm having several problems with transactions using WLS 6.0
          > > I believe I have isolated it to the name of the method.
          > > I have a Session bean method called removePerson() and another one
          called
          > > deletePerson()
          > > My descriptor is below:
          > > <container-transaction>
          > > <method>
          > > <ejb-name>PersonService</ejb-name>
          > > <method-intf>Remote</method-intf>
          > > <method-name>*</method-name>
          > > </method>
          > > <trans-attribute>Required</trans-attribute>
          > > </container-transaction>
          > >
          > > When I invoke these methods I can see my transaction count increase when
          I
          > > invoke the deletePerson method
          > > However, when I invoke the removePerson method the transaction count
          does
          > > nothing. Both method do the nothing except
          > > immediately return.
          > >
          > > Am I missing something ???
          > > I have looked for some type of method name restrictions but I have not
          found
          > > any for the remote interface that would lead me to
          > > understand why this occurs.
          >
          [weblogic.log]
          

Similar Messages

  • Re: Method name and/or line number available from withinForte?

    To my knowledge there is no such capability with forte, and for sure it
    would be nice. Short
    of storing all that metadata at runtime, a compile-time substitution such
    as is done with
    most C preprocessors would work as well.
    However, I believe the solution you've identified falls short in a deployed
    fashion - I think
    all that method name/line number stuff is only available from the workshop...
    -J
    At 02:54 PM 10/27/98 -0600, [email protected] wrote:
    I'm sure this question has been asked many times, but I don't know that I've
    ever heard the answer. Is there any way from Forte to access the method
    name of the currently executing method? What about the current line number?
    I'm sure you all know what I'm getting at by now -- when raising your own
    custom exceptions or logging messages we'd like to be able to not hard-code
    method names and line numbers into them. I know these are available with
    log flags so this information is stored somewhere -- is there an API to
    access it on an agent, the task, or the environment? The only way I can
    think of doing this (which is not-so-elegant) is to force a Forte exception
    to be raised (like access a method on a null TextData or something), then
    immediately catch it and extract the method and line number from it. Is
    there a more elegant way?
    -J.C.
    J.C. Hamlin, Senior Consultant, Forte National Practice
    Born Information Services Group, Wayzata, MN
    Ph: (612) 404-4000 Ph2: (612) 783-8270 FAX: (612) 404-4441
    <[email protected]> <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>**************************************
    John L. Jamison
    Vice President and Chief Technology Officer
    Sage IT Partners, Inc.
    415 392 7243 x 306
    [email protected]
    The Leaders in Internet Enabled Business Change
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Method task.TraceBack () returns a string suitable for shoving on the error
    stack, and representing a call trace. The method
    method TomW_RaiseException.RaiseException
    begin
    ge : GenericException = New ();
    ge.SetWithParams (SP_ER_USER, task.TraceBack ());
    task.ErrorMgr.AddError (ge);
    Raise ge;
    end method;
    produces the following when called from the display method of the window in
    which it is embedded.
    USER ERROR:
    Traceback:
    TomW_RaiseException.RaiseException at line 2
    TomW_RaiseException.Display at line 4
    TomW_RaiseException. at offset 13
    C++ Method(s)
    UserApp.Run at offset 96
    Class: qqsp_Exception
    Last TOOL statement: method TomW_RaiseException.RaiseException, line 3
    Error Time: Wed Oct 28 08:28:34
    Exception occurred (locally) on partition "TomW_Test_CL0_Client",
    (partitionId = AA6475E0-3DD2-11D2-B582-04228BFFAA77:0x117f:0x6,
    taskId =
    [AA6475E0-3DD2-11D2-B582-04228BFFAA77:0x117f:0x6.34]) in application
    "FTLaunch_cl0", pid 195 on node SPNMXSHOP7 in environment SFDEVL.
    I suppose that a sufficiently determined person could parse the results of
    TraceBack () and extract the
    method and line from it. But I know of no method that explicitly returns
    the name of the calling method.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Server proxy method name and interface operation name

    Hi all,
    I have successfully used inbound server proxies on several occasions.  Each time, without thinking about it, I took the default option where the OPERATION name == the SERVICE INTERFACE name.  When the proxy is generated, the ABAP method is the OPERATION name and everything works nicely.
    This time however, I tried something different and built a service interface (PMNotification, as example) with the operation name 'Create', thinking that I could also have a second operation 'Update' (for example).  The ABAP proxy method then becomes CREATE, but I then get 'NO IMPLEMENTING CLASS....' errors. If I change the operation name to match the interface name and regenerate, everything works again.
    SO, my question is this : Is is true that the OPERATION name MUST equal the INTERFACE name for an inbound server proxy ??
    If this is the case, then a (inbound) service interface can only have one operation; this doesn't seem right.
    Looking forward to any insight.
    Guy

    If this is the case, then a (inbound) service interface can only have one operation; this doesn't seem right.
    Open your service interface in ESR and press F7....if the proxy cannot be generated you would probably get an information on this....inbound SI can have multiple operations but then it seems to be a limitation in case of proxy.
    Also if your operations have different types of messages (combinations of message type and external definitions etc) then you face such limitations.
    Some reference from Michal's blog: The specified item was not found.
    Now the method that you need to call from to send an ABAP Proxy message has exactly the same name as a method
    inside the Service Interface objects in Enterprise Service Repository (ESR is a successor of Integration Repository - IR) like
    shown in the picture below:
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jan 17, 2011 10:08 AM

  • How to convert a String variable as class name and method name?

    i have two classes
    class Student
    public String insertStudent(String sname)
    { return("Student has been inserted ");     }
    class Teacher
    public String execute(String methodName, String className)
    {  //return statement of the method 'insertStudent' in the class 'Student'; }
    }Now, i have a class with the main method. Here, i would like to call the method *'insertStudent'* of class *'Student'*
    using the method *'execute'* of class *'Teacher',* passing the method-name and the class-name (viz. insertStudent, Student) as the
    String parameter.
    Can anyone please help me out. Thanks
    regards,
    chinglai

    You should have just added that as a comment on your [initial posting|http://forums.sun.com/thread.jspa?threadID=5334953] instead of starting a new thread.
    Now, i have a class with the main method. Here, i would like to call the method 'insertStudent' of class 'Student'using the method 'execute' of class 'Teacher', passing the method-name and the class-name (viz. insertStudent, Student) as the
    String parameter.
    Why oh why? What do you want to achieve?
    Let me tell you: there is a way to do what you try to do, but it's not recommended and should be used only very sparingly. Especially not in anything like your code, that resembles normal business logic (as opposed to an application framework such as Spring, for example).
    Can you explain what exactly you want to do with that? Why should a Teacher be able to call any random method ony any other class. And what good would that do?

  • How to find a badi and how to find the method/methods for a transaction?

    Hi all,
    i need to give a text either while creating customer (vd01) or changing customer(vd02)...thsi is via extras->texts.....then I have to double clik the text and go to change editor...and then i have to clik on insert line and then choose text element radiobutton on screen and then give it a name and then save it..this should be done for all customers....my problem is i am unable to find a badi and the appropriate method for thsi..i have placed break point in method read_add_on_data in the badi customer_add_data....i tested both by transactions va01 and va02 but of no use..also there are so many methods..can u tell me how do i find the appropriate method of the appropriate badi.....

    Hi,
       For XD01/XD02/XD03 The following BADI's are useful
    business Add-In CUSTOMER_ADD_DATA  and  business Add-In CUSTOMER_ADD_DATA_CS .
    *<b>Reward points</b>
    Regards

  • How to pass user name and password in openConnection method ?

    Hi, Exports,
              I am trying to post data from applet to another application which is
              protected by network password.
              How to pass user name and password when I use openConnection method? In java
              doc, this method looks like do not accept these two parameters.
              Thanks
              ----- my code in applet ---------
              URL url = new URL("http://127.0.0.1/xml/index.cfm");
              URLConnection connection = url.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(true);
              connection.setUseCaches(false);
              connection.setAllowUserInteraction(false);
              DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              dos.writeBytes("Content-Type:
              multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              dos.writeBytes("Host: "+host+":"+port+"\r\n");
              dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              dos.writeBytes("Connection: Keep-Alive\r\n\n");
              dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              on: form-data;name=\"xmlDoc\"\r\n\r\n");
              dos.writeBytes(buff.toString());
              dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              dos.close();
              

    you need to negotiate Authentication in ur applet code...
              For example:
              If u r using Form based auth u need to send Post a request with j_user_name &
              j_password to the action j_security_check. and when server returns back the
              cookie
              u need to hold it and pass that cookie to the each and every request made to the
              protected application.
              Basically u need to imitate the browser.
              regards
              aseem
              David wrote:
              > Hi, Exports,
              >
              > I am trying to post data from applet to another application which is
              > protected by network password.
              > How to pass user name and password when I use openConnection method? In java
              > doc, this method looks like do not accept these two parameters.
              >
              > Thanks
              >
              > ----- my code in applet ---------
              > URL url = new URL("http://127.0.0.1/xml/index.cfm");
              > URLConnection connection = url.openConnection();
              > connection.setDoInput(true);
              > connection.setDoOutput(true);
              > connection.setUseCaches(false);
              > connection.setAllowUserInteraction(false);
              > DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              > dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              > dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              > dos.writeBytes("Content-Type:
              > multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              > dos.writeBytes("Host: "+host+":"+port+"\r\n");
              > dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              > dos.writeBytes("Connection: Keep-Alive\r\n\n");
              > dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              > on: form-data;name=\"xmlDoc\"\r\n\r\n");
              > dos.writeBytes(buff.toString());
              > dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              > dos.close();
              >
              > ------------------------------------------
              

  • Table name for 'Program name of method' and 'Method name'

    As we know, each method method contains different  program name with ext. like "====CM0001" etc., Where can I find this program name of method in database tables?
    Note: Program names are in REPOSRC with type as 'I' and name as "CLASS NAME======CMXYZ". But here we can not decide with program name belongs to which class!
    Thanks,
    Naveen.I

    Use FM SEO_CLASS_GET_METHOD_INCLUDES. Provide your class name and you will get the method names with include name.
    Regards,
    Naimesh Patel

  • Where will i get the method code and method name in Bpc

    Dear Experts,
    Thanks for watching this thread at the time of creating Consolidation methods they have
    NEW
    HOLDING
    GLOBAL
    PROPORTIONAL
    EQUITY
    lEAVING (END OF THE YEAR)
    LEAVING(DURING THE YEAR)
    Where will i get the method Code and method name.
    Can you please guide me.
    Regards,
    Srinivasan.

    The consolidation methods types you have listed are the standard ones  provided by BPC for Consolidation Method types.
    You can set the Consolidation Methods in the BPC Administration Console under Business Rules Library -> Consolidation Methods.
    There you can see some defaults - you can remove these and set your own if you prefer.
    You should read the BPC340 Training guide.

  • How to get class name and method name within a class method?

    Hi,
    In a java class, is it possible to get its class name and the class method?
    Please advise.
    Thank you.

    I mean whether there's any built-in command that will
    return the class name instead of code it ourself, for
    easier maintenance.
    Possible?
    this.getClass().getName();

  • Function group and transaction hav same name.

    Is  it   possible to re-name a function group name which is accidently nameed same as a transaction code.
    Thanks in advance,
    Rupesh.

    You can't rename a function group, but you can copy it. Go to SE80, put in your function group, right click on the function group name and click COPY. You can now choose a new name for the function group. After confirming you'll get another popup, where you can select the function modules you want to copy. Don't forget to rename them as well.
    Hope that helps,
    Michael

  • No event method with matching name and signature found on EventSet

    Dear,
    I have this error in the Problems view in Workshop (I'm using the Weblogic 9.2.1) :
    No event method with matching name and signature found on EventSet: com.bea.control.TaskControl.Callback.
    This error occurs sometimes when I put an event on a task in a process definition. Example, I have a process : Application.java, when I put the onReceptionCompleted control (receive) in my process, the error appears!
    Thanks for your help,
    Regards,
    Mathieu

    It is a problem with the drap & drop in Workshop (from the taskControl to the Process). Workshop automatically inserts a wrong eventSet instead of the good one from the generated task control !
    See you,
    Mathieu

  • Channel URL to contain object and method name

    Hi,
    There are many WEB features and filters that are based on the URL path or paramters.
    BlazedDS uses the same URL to send all the remote object calls.
    I can add more and more channels and map each remote object to one of the channels but it doesn't scale and even with it all the methods on the same object will look the same.
    I know that the binary body contains the service name and method name , but this is not enough .
    I need to have the  URL path/ parameters to contain the service and method names.
    Is there any way to control the URL in the remote method beside of the set channel?
    Shlomo.

    OK,
    I think I found the way.
    The API of the RemoteObject presents the endPoint property:
    '"This property allows the developer to quickly specify an endpoint for a RemoteObject destination without referring to a services configuration file at compile time or programmatically creating a ChannelSet. It also overrides an existing ChannelSet if one has been set for the RemoteObject service."
    It means that before every call to a method I can set the end point to something like "http://.../messagebroker/amf?serice=MyService&method=MyMethod...
    Shlomo

  • Doing method names, roles and principal bindings dynamically

    Hi,
    We are using Weblogic 6.0 and have a question about Weblogic security and EJBs.
    In Weblogic EJB security methods are mapped to roles in the EJB deployment descriptor
    and roles are mapped to principals in the Weblogic deployment descriptors. All
    this is statically defined.
    The bindings frrom roles to principals in Weblogic deployment descriptors are
    a tad to static for us. Is it possible to implement this dynamically through ACLs
    or anything. I've tried to implement the 'Realm.getAcl(...)', but it doesn't seem
    to want to use my ACLs and I really don't know what permissions that I should
    implement in them. Does anyone know of any documents describing this?
    Likewise we also wonder if we can dynamically map the method names to roles which
    today are described in EJB deployment descriptors and how is that done?
    have a nice day
    ThorÅge
    Telenor Mobil, Tlf: 22 78 47 59, Mob: 95 94 75 64, [email protected]
    "All suspects are guilty! Otherwise they wouldn't be suspects; would they?"

    OK, a partial answer for the accessor name issue is this (inline JAXB used for brevity; external declarations probably better in practice):
    1) change your schema root element to
    <xs:schema
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
         jxb:version="1.0"2) do NOT modify the products element definition
    3) instead, modify the product element definition to
    <xs:element name="product">
         <xs:annotation>
            <xs:appinfo>
                <jxb:property name="productList"/>
            </xs:appinfo>
         </xs:annotation>
         <xs:complexType>
         </xs:complexType>
    </xs:element>Then the JAXB autogenerated .java file for the products element (Products.java) will have an accessor method named getProductList as desired.
    But all is not totally well: suppose that that product element is used not only inside the products element, but is also used inside the foo element where it has
    minOccurs="1" maxOccurs="1"Then it will not be represented in Foo.java as a List<Product> field, but instead will be a simple reference to a Product. However, its name will misleadingly be given as productList.
    So JAXB bindingd are not really a cure: it looks like JAXB needs to add smarts to its code generator.
    Another thing that the JAXB code generator needs to do is not only dump lazy initialization, but it should use minOccurs values of > 16 to initialize, say, ArrayList fields to larger sizes to minimize resizings since you know that more than the default number of items will be in the ArrayList.

  • SSDT vs 2013 and Clr function, call a Clr method name dynamically using SQLCMD variables

    Hello,
    My question is this, hopefully this makes sense:
    How could I got about doing this, inside a SQL function, I would like to re-name the Clr method call based on a SQLCMD variable? 
    I have a Clr project to encrypt/decrypt data, there are different method names depending on the deployment types.
    For the definition of a function called dbo.EncryptThis, I would like to use a SQLCMD variable to change the name depending on SQLCMD variables. This works fine in SQL Server Mgmt studio, but VS 2013 fails to recognize the SQLCMD variable and the build fails
    with: "Error
    1
    SQL71521: A method with a matching signature was not found in the loaded assembly.".
    THis code works fine in SQL Server Mgmt Studio, but fails to build in the SSDT project.
    In the SSDT project I have the SQLCMD variable defined and think I have SQLCMD mode enabled, by doing this:
    Right click file > Execution Settings > SQLCMD mode
    CREATE FUNCTION [dbo].[EncryptData]
    (@str NVARCHAR (MAX))
    RETURNS NVARCHAR (MAX)
    AS
    EXTERNAL NAME [CryptoClrAssembly].[LibName].[EncryptData$(MethodName)]
    Is this even possible in SSDT? or would I have to do this in a post-deploy script?

    Hi Kevin,
    Thanks for the info.
    Bummer, so the only other solution I have is to create a post-deploy script to change the function based on a SQLCMD variable or other logic?
    What would be really cool, would be if during the build process the SQLCMD variables would get replaced with the default value to the SQLCMD variable, thus would allow to build the project. Also, during deployment, if someone entered an incorrect method
    from the assembly it would just fail.

  • How to get Vendor name and Material text in FAGLL03 transaction?

    Hello All,
    I am executing FAGLL03 report which display Vendor No and material No in item level but I want Vendor name and Material text to be display for every vendor no. and material no.
    Please let me know any approach to do this?
    Thanks in advance.
    Regards
    Steve

    Hi Raymod,
    Again I am getting the same error after executing all reports and FM.
    Internal error in ANALYZE_ACT_FIELDCAT
    Message no. MSITEM012
    Diagnosis
    An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT for program RFITEM_INC.
    This is due to inconsistencies between table T021S (special fields) and structure RFPOSEXT.
    System Response
    During the processing of special fields in the line item list, errors and even a program termination may occur.
    Procedure
    Recreate the special fields in Customizing. If the error occurs again, contact SAP.
    Can you pls check it out in your system if you can?
    It is not working here ..
    Thanks and Regards
    Steve

Maybe you are looking for

  • Acrobat 9, problem with Outlook email

    i just installed acrobat 9 standard.  since then i can't cut copy, highlight and paste, or navigate around, in outlook emails.  i use outook email with ACT! i can't edit emails i want to forward, taking out unnecessary info. any ideas on how to solve

  • Runtime error on Oracle Designer

    Hello I have Oracle Designer 10g installed on windows server 2003 sp2 its suddenly give me error when i try to run the Oracle Designer as follows : Microsoft Visual C++ Runtime Library Runtime Error! Program: This application has requested the Runtim

  • Same Algo for Key and Cipher recommended?

    Hi, Can I use different algos for the key i want to use for a cipher and the cipher itself or is it mandatory to use the same algo for both? I don't found any answer for this simple question. regards, Olek

  • Threads & Methods

    hi, i have question.... when you call a method ... then are you creating a new Process........ or in other words : is calling a method = creating a new process just curious

  • Iwl4965 causes freezes

    Every time I bring my wireless interface up, after a few minutes, (faster if there's activity) the entire computer will freeze, throwing errors like: queue 4 stuck for 2000ms on demand firmware reload to my console screen. (I haven't setup a DE yet.)