Use of abstract interface

I have a series of questions....... Go through.
What is the use of abstract interface in java ?
What is the use of static object in java ?
What is the use of abstract key word to variables ?
Object reference passed to method are final. Can ' t we change it ?

class Testing {
     int i;
public class RefFinal {
   public static void f ( Testing t1, Testing t2) {
       Testing temp;
       temp=t1;
       t1=t2;
       t2=temp;
       System.out.println("value of i in t1 =" +t1.i);
       System.out.println("value of i in t2 =" +t2.i);
   public static void main( String args[]) {
      Testing t1 = new Testing();    
      Testing t2 = new Testing();    
      t1.i=10;
      t2.i=20;
      f(t1,t2); 
      System.out.println("value of i in t1 =" +t1.i);
      System.out.println("value of i in t2 =" +t2.i);
}      Here the code explain why?

Similar Messages

  • CcBPM - How to use 1 Message Interface for 2 different Business System

    Hi,
    I have this bpm scenario below :
    JDBC QUERY (ASYN) ---> RFC (SYNC) -
    > JDBC INSERT (ASYN) -
    > MAIL (ASYN).
    So Both JDBC INSERT and MAIL using the same data input from RFC response for instance i will named as  MI_RFC_RES_ASYN_ABS. I have problem to configure in the integration directory, how make the xi smart enough to routing in the correct business system.
    JDBC -
    > BS_JDBC and MAIL -
    > BS_MAIL base on the send step in BPM because the interface is the same.
    Cheers
    Fernand

    Hi,
    If you want to send the same mesg to diff systems and also need to have the control on seq,
    then define 2 diff abstract interfaces for messages going out of BPM (with same message type so that structure is same).
    One will be used to define send step for JDBC and other for BPM.
    Define 2 send steps in BPM one for JDBC and other for mail using these abstract interfaces.
    Now you will have 2 receiver determinations.
    Since recr is determined based on sender system interface name and name space,
    system name ( BPM ) and name space will be same for both the messages going out of BPM.
    for JDBC abstract interface BS_JDBC will be recvr.
    and for Mail abstract interface BS_MAIL will be your receiver.
    hope it answers your qn.
    Regards
    Pushkar

  • Abstract interfaces between diff swcvs

    Hi Guys,
    I am designing BPM under my own SWCV. I need to use two abstract interfaces which were defined in entirely different SWCV.
    My scenario is like Proxy-BPM-SOAP. The scenario is synchronus but the Proxy side i have two seperate interfcaes as outbound (Asynch) and inbound (Asynch) instead of a single synchronus interface.
    I have created 2 abstract interfaces for these 2 interfaces and i need to use them under my own SWCV where i am designing the BPM process
    any help would be appreciated
    Thanks,
    srini

    Hi,
    From SAP Help.
    An integration process can only reference interfaces from its own software component version.
    Check this link under the topic abstract interface.
    http://help.sap.com/saphelp_nw70/helpdata/en/78/62373f58502e48e10000000a114084/content.htm
    Regards,
    Sudheer.

  • BPM, abstract interface unavailable

    Hello,
    I want to build a business process. Therefore I need some container elements. One container element has the type abstract interface. The message interface is defined in some namespace of some software component. But unfortunately I can't select this message interface in the dialog. Of course I have already activated my change list. I also refreshed the CPA cache, but this doesn't help a lot. What can I do in order to see this abstract interface.
    Thank you very much,
    Oliver

    Hallo Oliver,
    XI currently only allows BPM to use interfaces within the same software component or within a software component with which you have a based on relationship defined.
    I think, that this does not make too much sense, but that's the answer we got to an according OSS message.
    Best Regards
    Christine

  • Transformation Abstract interface

    Hello , i am using a message transformation step in BPM where msg 1 thats input for this map is xml and output is being mapped to a IDOC.
    Now since in BPM i have to use abstract interfaces and how can i relate this abstract interface in transformation step with the IDOC. Can i create the abstract interface and then relate it to IDOC and use it in BPM ?
    Krishna

    Hi Krishna ,
    in message mapping just - drag and drop - the IDOC_type from your node "imported objects"
    Thats all.
    Regards Mario

  • Copy value of container (abstract interface) to an other container

    Hello,
    Is it possible to copy the value of an container (abstract interface) in BPM to an other container (abstract interface)?
    Thanks and regards
    Verena

    Hi Verena,
    If you have the entire msg that you want to want in a container then you can probably use APPEND in container operation.
    But if your msg is a part of an intermediate strucure like the one i showed in my previous posts, then you Have to use Mapping in a BPM Transformation step for the simple reason that you cannot change a message by using a container operation.
    Regards,
    Sridhar

  • Fortran 2003's abstract interface

    Although the documentation for the 12.4 beta claims support for the ABSTRACT INTERFACE feature, it's not clear whether the support is full or partial.  The following code fails to compile with sunf95:
    module mod1
      use iso_fortran_env
      implicit none
      abstract interface
      pure function i_f(x)
      real :: i_f
      real, intent(IN) :: x
      end function
      end interface
    contains
      subroutine iterate(f, x, y)
      procedure(i_f) :: f
      real, intent(IN) :: x(:)
      real, allocatable, intent(OUT) :: y(:)
      integer :: i
      allocate (y(SIZE(x)))
      do i = 1, SIZE(y)
      y(i) = f(x(i))
      write (OUTPUT_UNIT, '("y(",I0,"): ",G0)') i, y(i)
      enddo
      end subroutine
      pure function square(x) result(res)
      real :: res
      real, intent(IN) :: x
      res = x ** 2
      end function
    end module mod1
    use mod1
    implicit none
    integer :: i
    real, allocatable :: x(:), y(:)
    x = [real :: (i, i = 1, 10)]
    call iterate(square, x, y)
    end
    The compiler assumes that the passed procedure is a subroutine ---i.e., it ignores the abstract interface.

    This is a bug in the compiler. The problem is not in the abstract interface but in getting the interface from the host scope. To work around the problem, you can copy the abstract interface from the host scope to the local scope where it is used, like this:
      subroutine iterate(f, x, y)
      abstract interface
      pure function i_f(x)
      real :: i_f
      real, intent(IN) :: x
      end function
      end interface
      procedure(i_f) :: f
      real, intent(IN) :: x(:)
      real, allocatable, intent(OUT) :: y(:)
      integer :: i
      allocate (y(SIZE(x)))
      do i = 1, SIZE(y)
      y(i) = f(x(i))
      write (OUTPUT_UNIT, '("y(",I0,"): ",G0)') i, y(i)
      enddo
      end subroutine
    then the dummy procedure 'f' will be correctly identified as a function.

  • IDOC as Abstract Interface

    I am trying to use IDOC structure as an Abstract Interface. We store all our imported IDOCs in a different software component. In Integration Process when I try to define Container Element I am not able to select the IDOC as an Abstract Interface.
    I tried to make an External Definition by importing the IDOC and then trying to build a Message Interface and that did not work too.
    Any suggestions welcome.
    Regards
    Mike

    Hi Michael,
    Directly you cannot use Idoc interface as an Abstract Interface. You have to create Absatact Interface in IR for the imported Idoc and then you can use it to define container element.
    Also check this...
    "An integration process can only reference interfaces from its own software component version."
    http://help.sap.com/saphelp_nw04/helpdata/en/78/62373f58502e48e10000000a114084/content.htm
    Regards
    Anand

  • Regarding Abstract Interface

    Hello,
    What makes the difference between the Normal Interfaces and Abstract Interfaces. Is there any technical differences between these two interfaces.
    Thank you

    Hi,
    You use a message interface to describe a platform-independent or programming-language-independent interface, which you want to use to exchange messages between application components using SAP Exchange Infrastructure.
    When you create a message interface you define the communication parameters by using the attributes Mode and Category as Sync/Async, Inbound/Outbound or Abstract.
    Message interfaces of this category can perform the role of an inbound or outbound interface within integration processes, depending on whether it is used to send or receive a message. For this reason, no direction is specified during definition. In integration processes, you can use the same abstract interface to receive and send a message. Abstract message interfaces generally receive the message from an outbound interface of a sender system and send it to an inbound interface of a receiver system, thus performing a complementary role.
    BPM can interact and deal with only Abstract Interfaces. And so, if you have a transformation step inside the BPM , the source and target interface will have to be abstract interfaces.
    These characteristics determine the direction of an interface:
    ·        An outbound interface sends a request message that is only used to make a communication party aware of data sent, without waiting for a response message. In the case of the latter, we also refer to publishing interfaces.
    ·        An inbound interface receives a request message that you reply to with a direct response message or whose data you can process in the system without a response.
    Thanks
    Swarup

  • Contanier Abstract Interface

    Hello everybody,
    is there a way to define a Container-Abstract Synchronous Interface??? I'm having problems with a BPM where starts with a receiver step open s/a bridge so I can use a synchronous interface but i can't define a Container-Abstract Synchronous Interface to put in the message parameter in the reciver step, thanks in advance for your answers.
    Regards,
    Julio

    Julio, you must create Abstract Async Interface with outbound message type used in the sync abst interface used for the Rec step in BPM.
    check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/65d4dab39b0398e10000000a1553f6/frameset.htm" target="n">this</a>
    Peter

  • IDOC Abstract Interface

    I assigned IDOC to an Integration Process. During design I did an interface mapping between the IDOC and the Abstract Interface of the IP. I have to assign a Message Mapping to the interface mapping.
    1. As the structures are the same do I need a Message Mapping.
    2.I am following an answer Yes for 1 and created a Message Mapping with same structure on both sides. Now I have to map all these IDOC fields. Any easy way to map by one drag and drop.

    Hi,
    If you want to use the Idocs in the BPM , then abstract interfaces are required.
    <i> During design I did an interface mapping between the IDOC and the Abstract Interface of the IP</i>
    Is it mean, the same idoc absract Interface as a target here ?
    <i>1. As the structures are the same do I need a Message Mapping.</i>
    >> Not required.
    If your Idoc is in the SWC of the Integration Process and you have defined the Absract Interface for the Idoc type, then it is not required to create the mapping here. You can directly use i.e you can receive the Idoc message in the Idoc Abstract Interface.
    Regards,
    Moorthy

  • Map simple variable to an abstract interface in BPM

    I'm using a Simple Variable to count all messages comming through a BPM.
    I want to use this Simple Variable's value in a Abstract Interface.
    Does anyone know how to map Simple Variables to Abstract Messages?
    A transformation needs a mapping, and a mapping cannot use a Simple Variable as input. The container operation need the same structure at both sides.
    Kind regards,
    Christiaan Schaake.

    Hi,
    Did you figure this out? If so, could you please share how you may have done this.
    Thx

  • Interface v/s Abstract Interface

    I am bit confused in one place during the declaration of Interface. as you know I can define a Inteface in two way,
    a) public interface InterfaceTest {
         public void test();
    b) public abstract interface InterfaceTest {
         public abstract void test();
    In first case I declare a normal Interface and in second case done with a abstract keyword. Both are working in a same manner.
    But when Java allow us to declare it in two ways, the their must be a reason behind the scene.
    Can you explain me the reason behind this tow type of Interface declaration

    Can you explain me the reason behind this tow type of Interface declaration JLS says:
    Every interface is implicitly abstract. This modifier is obsolete and should not be used in new programs.

  • Abstract Interface for IDoc Proxy

    Hi All,
              Do we need to make Abstract interfaces for IDocs and Proxys too if we want to use them in BPM?
    XIer

    Aamir,
    I agree with u that we can't create proxie's for Abstract interfaces. But consider the case I want to call Proxy inside BPM, is this possible?
    Yes its possible. As I mentioned in my previous replies for IDOC's .Similarly for Proxy receiver Interface determination we need to give Actual Inbound Interface name instead of Abstract. MI_Proxy_Abs --> use MI_Proxy_IB . Provided both the interfaces has the same structure.
    I hope it clears!!!
    Best regards,
    raj.

  • Abstract interface direction ??

    Hi Gurus,
    I am prepraing for XI certification.
    As per my knowledge abstract interface is having no direction.
    But in tbit40- xi fundamental training book of SAP-AG, chapter8 page 10, its mentiond abstract inerface is bi--directional ????
    kindly clarify.

    Imran,
    <b>>abstract inerface is bidirectional</b>
    that's true...
    By abstract interface means direction is not sure so , we can use the same interface for sender side also as well as for receiver side also in BPM.....that's why term by-directional term is used as can be used for both purpose...
    hope you got my point

Maybe you are looking for

  • Issue with email report in business catalyst

    My weekly email reports for my muse sites have all started reporting zero visits since last week. If I login to the admin panel from the Manage button in Muse all the data is there. Anybody got any idea why the email reports would be showing zero hit

  • Help with Smart Card (CAC) reader installation

    Need help connecting my smart card reader to my Mac Book Pro. Either using Fire Fox, Explorer using Parallels with windows XP, or safari. I downloaded all the documentation from the Army AKO and still have problems with my Card reader.

  • Oracle application server 10g Release1( 9.0.4)

    hi all i am looking for Oracle application server 10g R1 version 9.0.4 but i did not find on oracle site.Is it still available? can anyone help me out?

  • Running Actions in PS Elements 13

    Hello, I recently purchased a wedding welcome packet that is compatible with ps elements 6 and newer. I have elements 10. However, it will not read the grouped layers which m means that I needed a special ungrouping action as well. I got that from th

  • Trouble with external FW HDD of 300gig with intel iMac - same HDD ok viaUSB

    every five minutes it stop functioning and finder hang. same drive connected to a G5 no trouble, and this same drive connected to th eintel iMac via USB no trouble.