Using Attachment Interface in Module and Calling other module conditionaly

Hi Experts,
I am currently working with a module where I need to work with attachments coming with emails.
Can any one please help me , how can I use the different methods of this interface?
My requirement is to read only the content type of the attachment, taking only the content of the attachment.
we have two methods in this interface-   getContentType() and getContent() , I think this will serve the purpose.  we have another method  toString() - will this method return the content of the attachment as a  String?
in the below code fragment-
Message msg = (Message)inputModuleData.getPrincipalData();
Payload payload =msg.getDocument();
will return the main document as XMLPayload.
can I use this
Attachment attachment= msg.getDocument();
and use the method as -
String str= attachcment.toString(); ---> will this return the attachment content as String ?
any code fragment for these method in Attachment interface will be helpful.
I need another help- is it possible to call the adapter module in the next sequence from the previous module code conditionally?
e.g- I have written I custom module where I need to restrict the processing of the next module ( e,g- payloadswapbean) conditionally? like- the payloadswapbean will called only after certain verification of the attachment other wise it will not be called.
Request your help
Thanks to all
Sugata B Majumder

Hi All,
I forgot to update one thing, I am using PI 7.0 SP15, and I am interested only dealing with the the Attachment contents, what I just found that Attachment interface is not possible to use in PI 7.0 as it requires the operational mapping level check - Read Attachment. 
Is there any way so that the content of attachment can only  be get and the content type of the attachment?
I want to use this custom module before the payloadswapbean.
Request your help
Thanks
Sugata B Majumder

Similar Messages

  • Itunes 11.1.3.8 shows a speaker icon in front of the seclection but it is not playing. the progress bar does not move. there are speakers attached to the system and all other programs do profuce an audio output.

    itunes 11.1.3.8 shows a speaker icon in front of the seclection but it is not playing. the progress bar does not move. there are speakers attached to the system and all other programs do profuce an audio output.

    Go to the Edit -> Preferences-> Playback
    In The bottom section of the page click the drop down menu by Play Audio Using and select Windows Audio Session or something other than "Direct sound" or whatever it displays. Click Okay. This worked for me! I hope it works for you too!
    Thanks,
    John

  • HT1583 When I render my project in IDVD, video and audio runs properly, but when I burn it in professional quality and burning is finished there was no audio on the last two chapters, one audio is attached to the clip and the other one is from itunes, pls

    Hi, please help me When I render my project in IDVD, video and audio runs properly, but when I burn it in professional quality and burning is finished there was no audio on the last two chapters, one audio is attached to the clip and the other one is from itunes, pls help

    Hi
    My first two thoughts
    • Shared to Media Browser - BUT as Large or HD - try Medium !
    • audio from iTunes - use to go silent
    - in iTunes
    - Create a new PlayList with needed audio
    - BURN this as a standard Audio-CD (.aiff) - NOT .mp3
    - use the files on this CD in Your Movie project - I ALWAYS DO - and only use .aiff ever - never .mp3'
    My notes on this:
    No audio on DVD disc.
    Most common origin. 
    1. Imported audio from iTunes.
    • In iTunes copy out as an Audio-CD .aiff (Same as played on standard Stereo CD - no .mp3)
    • Use this in Your movie project
    2. Low - Free Space on Start-up/Boot/Internal/Mac OS Hard disk makes it hard for iMovie to work as intended.
    Down to 1.3 GB and it doesn’t work - especially audio don’t migrate over to Media Browser
    (iM’08 & 09)
    3. Material in iMovie’08 & 09 - Shared to Media Browser and here selected as Large
    large.m4v. It silenced out this project in iDVD. By making a slight alteration - provoking it to ask for a new Share/Publish to Media Browser and here selecting 640x480 - and audio was back when a new iDVD project was created including this movie.
    Minuscular - - 176x144
    Mobile - - - - - 480x360
    Medium - - - - 640x480
    Large - - - - - - 720x540    960x540
    HD - - - - - - - - 1280x720
    4. Strange audio formats like .mp3, .avi etc.
    • Change them to .aiff. Use an audio editor like Audacity (free)
    5. Main audio is set to off in System Preferences - Does this by it self - Don’t know why
    Cheque Audio-Out resp. Audio-In
    6. Ed Hanna
    Had the same problem; some Googling around gave me a kludgy, but effective fix
    Downgrade Perian from recent versions back to version 1.0.
    That worked for me, and so far I haven't encountered any deficiencies — except it takes more advanced versions of Perian to enable QuickTime to handle subtitles in .srt format — that I have noticed.
    7. GarageBand fix.
    In this set audio to 44.1 kHz (Klaus1 suggestion)
    (if this don’t work try 48 kHz - me guessing)
    Before burning the DVD.
    • Do a DiskImage (File menu and down)
    • Double click on the .img file
    • Test it with Apple DVD-player
    If it’s OK then make Your DVD.
    Burn at x1 speed.... (or x4)
    • In iDVD 08 - or - 09
    • Burn from DiskImage with Apple’s Disk Utilities application
    • OR burn with Roxio Toast™ if You got it
    Yours Bengt W

  • I recently changed my plan to the photoshop plan which includes photoshop and Lightroom but LR won't let me go into the Develop Module or the other Modules because it says Develop Module is disabled. Please renew your membership to reactivate. I'm still a

    I recently changed my plan to the photoshop plan which includes photoshop and Lightroom but LR won't let me go into the Develop Module or the other Modules because it says Develop Module is disabled. Please renew your membership to reactivate. I'm still a member so why won't it let me go into Develop Module? or any of the other modules?

    The Photoshop LR CC is active but you have not yet activated it. The activation server shows it. Please log out & log back in of the CC desktop CC.
    The Complete CC purchased last year is active till 11th of July. In case after logging out & logging back in does not resolve the issue, please contact Customer support Contact Customer Care
    Regards
    Rajshree

  • Customer Service (CS) module integration  with other modules VERY URGENT

    Customer Service (CS) module integration  with other modules like sd,mm,pm,fi
    documentation very urgent please send to my mail id [email protected]

    This is with regards to Integration of CS module with other modules:
    CS is in very close integration with Plant Maintenance(PM), Sales and Distribution(SD), FI, MM, Costing (CO) and also PP and HR.
    Incase you want to have resource related billing using DIP profile  (PM) you must have Cost element  and Service Products defined in MM etc.
    Itu2019s a very vast area needs to be explored based on the requirement in CS module. Any further assistance needed pls let me know.l.

  • Difference between LV PDA module and touch-panel module

    What is the difference between LabView's PDA module and touch-panel module? I want to recompile my application developed on a Win XP environment for a touch-screen single board computer running Win CE. From what I have read, it seems like both PDA module and the touch-panel module would be able to do the task - but what is the difference between the two modules?

    sstolteq:
    The LabVIEW PDA Module allows you to create applications that run on Microsoft Windows Mobile for Pocket PC devices. It is also compatible with several NI data acquisitions devices, including the USB-6008, USB-6009, CF-6004,
    DAQCard-6062E, DAQCard-6024E, and the DAQCard-6036E.
    The LabVIEW Touch Panel Module, on the other side, allows you to create human-machine interface (HMI) applications to
    communicate with NI embedded real-time platforms such as Compact
    FieldPoint, CompactRIO, and Compact Vision System. It is optimized for developing
    HMIs to Windows CE touch panel devices such as the NI TPC-2006.
    I hope this helps and please let me know if I can help further.
    Regards,
    Rudi N.

  • Potential bug when using Parsley 2.4.1 and Cairngorm's module 0.17 in Flex 4.5.1

    Hi
    I have an issue when using cairngorm's ModuleViewLoader along with ParsleyModuleDescriptor to load a simple module consistig mainly of HBoxes, VBoxes and Datagrids.
    The module consists of one child (let's call it ViewA) and that child consists of several children as its components.
    When I use cairngorm's ModuleViewLoader along with the ParsleyModuleDescriptor and Parlsey to inject the modulemanager in my main app, the module loads, as well as ViewA but some nearly all of ViewA's children are not loaded (in fact they're initialized but creationComplete is not invoked).
    When I use Flex's mx:ModuleLoader all ViewA's chikldren are initialized and creation complete is also invoked.
    I will attach the source as a zip file  later on....
    but for now...this is all I can give http://dpaste.com/713503/
    Thanks
    Andreas

    Did you ever find an answer to this?  I am running into the same issue with needing to upgrade parsley to 2.4.x, but with parts of application heavily relying on cairngorm module, upgrading it from module-0.11 to 0.17 seems to break compile! 

  • How can I use internal frames with buttons to call others internal frames?

    Hello.
    I'm building a MDI-application using JFrames and several JInternalFrames, but I have problems.
    A JFrame has JMenuBar with JMenu and JMenuItem. One of these, call the first JInternal that has its interface. In this interface has a button that call other type (a class extension of JInternalFrame) JInternalFrame.
    When I clicked button happen a exception (java.lang.NullPointer).
    What happening?
    Help me, please.

    What i usually do is to give my desktop to my internal frames. So within the internalframe, you can use your desktop and add other internal frames to it.
    The code should look something like the following.
    desktop = your JDesktopPane
    MyInternalFrame = an InternalFrame
    AnotherMyInternalFrame = another InternalFrame
    public class MyInternalFrame extends JInternalFrame implements ActionListener
      private JButton jb = new JButton("Launch");
      private JLayeredPane desktop = null;
      public MyInternalFrame(JLayeredPane desktop)
        this.desktop = desktop;
        getContentPane().add(jb);
        jb.addActionListener(this);
      public void actionPerformed(ActionEvent ae)
        if (ae.getSource() == jb)
          desktop.add(new AnotherMyInternalFrame(desktop),JLayeredPane.DEFAULT_LAYER);
    }

  • EJB 3.1 @Asynchronous and calling other methods from within

    Hey all,
    I am helping a friend set up a test framework, and I've turned him on to using JEE6 for the task. I am decently familiar with entity beans, session beans, and such. One of the new features is @Asynchronous, allowing a method to be ran on a separate thread. The test framework generally needs to spawn potentially 1000's of threads to simulate multiple users at once. Originally I was doing this using the Executor classes, but I've since learned that for some reason, spawning your own threads within a JEE container is "not allowed" or bad to do. I honestly don't quite know why this is.. from what I've read the main concern is that the container maintains threads and your own threads could mess up the container somehow. I can only guess that this might be possible if your threads use the container services in some way.. but if anyone could enlighten me on the details as to why this is bad, that would be great.
    None the less, EJB 3.1 adds the async capability and I am now looking to use this. From my servlet I use @EJB to access the session bean, and call an async method. My servlet returns right away as it should. From the async method I do some work and using an entity bean store results, so I don't need to return a Future object. In fact, my ejb then makes an HttpClient call to another servlet to notify it that the result is ready.
    My main question though, is if it's ok to call other methods from the async method that are not declared @Asynchronous. I presume it is ok, as the @Asynchronous just enables the container to spawn a thread to execute that method in. But I can't dig up any limitations on the code within an async method.. whether or not it has restrictions on the container services, is there anything wrong with using HttpClient to make a request from the method.. and making calls to helper methods within the bean that are not async.
    Thanks.

    851827 wrote:
    Hey all,.. from what I've read the main concern is that the container maintains threads and your own threads could mess up the container somehow. I can only guess that this might be possible if your threads use the container services in some way.. but if anyone could enlighten me on the details as to why this is bad, that would be great.
    Yes since the EE spec delegated thread management to conatiners, the container might assume that some info is available in the thread context that you may not have made available to your threads.
    Also threading is a technical implementation detail and the drive with the EE spec is that you should concentrate on business requirements and let the container do the plumbing part.
    If you were managing your own threads spawned from EJBs, you'd have to be managing your EJBs' lifecycle as well. This would just add to more plumbing code by the developer and typically requires writting platform specific routines which the containers already do anyway.
    >
    None the less, EJB 3.1 adds the async capability and I am now looking to use this. From my servlet I use @EJB to access the session bean, and call an async method. My servlet returns right away as it should. From the async method I do some work and using an entity bean store results, so I don't need to return a Future object. In fact, my ejb then makes an HttpClient call to another servlet to notify it that the result is ready.
    My main question though, is if it's ok to call other methods from the async method that are not declared @Asynchronous. I presume it is ok, as the @Asynchronous just enables the container to spawn a thread to execute that method in. But I can't dig up any limitations on the code within an async method.. whether or not it has restrictions on the container services, is there anything wrong with using HttpClient to make a request from the method.. and making calls to helper methods within the bean that are not async.
    Thanks.If you want to be asynchronous without caring about a return value then just use MDBs.
    The async methods have no restrictions on container services and there is nothing wrong with calling other non async methods. Once the async method is reached those annotations don't matter anyway (unless if you call thhose methods from a new reference of the EJB that you look up) as they only make sense in a client context.
    Why do you need to make the call to the servlet from the EJB? Makes it difficult to know who is the client here. Better use the Future objects and let the initial caller delegate to the other client components as needed.

  • Using skype to skype chat and call for business

    while using free skype version, It is fair to use inidividual skype id to skype id, call and chat for business purpose. i.e marketing and providing support.

    mcmahon10 wrote:
    Is there an app or program that can take my drawing, digitalize it so that I can edit it? I'd be using it to create logos and designs for my business
    Not automatically. I suggest the excellent iDraw app. With iDraw you could import your drawing and turn it into vector artwork.

  • Passing values and calling other classes?

    Hello all.
    I have 2 classes(separate .java files). One is a login class and the other is the actual program. Login class(eventually exe file) should open the other class and pass the login parameters if you know what I mean. Is this possible, or do the 2 classes need to be part of one file?
    Thanks alot
    Milan D

    Login class can be another class in another file
    wht u have to do is to make an instance of login class in the class u want to use that class
    like login lg = new Login();
    and call method of login class
    lg.setUser(username);
    where setUser(String user); is a method of login class
    this way u can pass the parameters to login class
    i hope this might be helpful
    regards
    Moazzam

  • HT4528 I have iPhone. Is it free to txt and call other iPhones ?

    I Have an iPhone. Is it free to talk and txt other iPhones ? With any providers ?

    Apple to Apple is only free to use iMessage. iMessage will only work when connected to wifi network. As far as being able to send text messages to friends with AT&T and Verizon you will need to set up service through a wireless carrier.
    Link below will explain a little more about iMessages and regular SMS/MMS text messages:
    http://support.apple.com/kb/HT3529

  • Co module intgration with other modules

    hi all
    i have activated the controlling area
    also all the compnents
    made ctr & pctr hiearchy
    what else i need to do so that all other modules run ok without givoing erorr
    we have sd,pp,pm,qm,fi,mm
    thanks

    hi,
    Check this link..
    http://help.sap.com/saphelp_46c/helpdata/en/04/926eae46f311d189470000e829fbbd/frameset.htm
    Hope this helps.
    Regards
    Alfred

  • I recently got a 5S, and when I am using the phone, my cheek seems to tap the screen, and calls other people, or mutes, or enables some of the other features that are not shutting down when I am talking to someone.  Can someone help, please!

    I recently got the iPhone 5S, and when I am talking, my cheek will touch the various buttons on the scene, and I am calling, going mute, or touching the keypad, and such.  How can I get the phone screen to stop doing this while I am talking.  I have IOS 8.  Thank you.  Please reply in simple terms, as I am not the best at understanding how to fix things.  Thanks again.

    First, try a reset to see if that clears it up:
    Hold down the home button and the power button together until the screen goes black and the Apple logo appears, then let go of the buttons. This will not cause any data loss and is like a reboot for your phone.

  • 8961 Expansion Module and Call Transfers

    Hi,
    Is there a way to transfer calls using the stored numbers in the expansion module on a 8961?
    I touch the TRANSFER hard key and then a stored number on my expansion module but the softkey for TRANSFER doesn't pop up.
    I am very new to our cisco system so please bear with me if this doesn't make much sense.
    Thank you.              

    Hi Bret,
    Yes, it there a way. Follow this instructions:
    1.With a phone call established, press the Transfer hard key.
    2. The New Call tab will appear
    3. Press a stored number on the expansion module.
    I already tested this a minute ago on CUCM 8.5 so it should work. If not, maybe you're hitting some firmware bug.
    Please remember to rate useful posts clicking on the stars below.
    Favor calificar todos las respuestas útiles dando click en las estrellas de mas abajo.
    LinkedIn Profile: do.linkedin.com/in/leosalcie

Maybe you are looking for

  • Erasing video downloads

    i have downloaded a tv series and transfered to my ipod video.the memory on my hard drive is full.can i erase the file on my computer and still keep it on my ipod even when it updates and the video is no longer in my library.

  • Adobe Creative Cloud Apps is broken

    Hello guys, my name is Lukas and im new member. First, i have to apologize for my english language. Guys, i have problem with application "Adobe Creative Cloud for desktop". In bookmark "Apps" in Creative Cloud i have warning and that, application Cr

  • Artwork not always sync properly in IOS 8.3

    Cover artwork (audiobooks, movies, home movies) often is not sync in IOS 8.3 on iPhone

  • Microphone issue Xperia Z1

    Hi! I recently bought 6 Xperia Z1 to the company and now we can´t hear eachother anymore. There´s constant brakes and after a minute or two the voice disappears completly and there´s nothing to do but to end the call. What to do? Best regards/ Christ

  • How do you get rid of black AMIBIOS screen?

    my sister was trying  to figure out how to turn on my touchsmart computer and when i turned it on she turned it off and on again then i got the black AMIBIOS screen.  I don't have the blue hp screen anymore.  Can I do a full factory recovery to see i