Sending messages from WAS 5.1 application to WMQ 5.3

Hi!
I have a java application running in WAS 5.1 using a message listener to pull messages off of a queue. I now need to run these messages through some business logic and then put them back on MQ queues. How do I go about setting up these connections or connection factories in the application and/or WAS 5.1 so these messages can be put back on queues? Are there any code examples or tutorials available?
I am familiar with creating bindings using JMSAdmin for stand alone applications, but am unsure if this is possible since everything is packaged in an .ear file and installed in the WAS. Any help and guidance would be greatly appreciated!
Thanks!

Hi Ravi,
Thanks for your response.
While migrating we have tried to remove the ATG dependency and we are getting session invalid. We are unable to find a similar method for “resolveName” in HTTPServletRequest. The method “resolveName” of the DynamoHttpServletRequest is being used to retrieve the session object by passing a String parameter (‘/’ or any URL).
Whereas the HTTPServletRequest has only two methods [getSession() or getSession(Boolean)] to retrieve the session object and here we cannot pass any String parameter. Thus we are unable the replicate the existing functionality using the HTTPServletRequest class.
Below are some code examples for your reference.
Sample1:
Below commented code is original one. we tried to as mentined below:
//import atg.servlet.DynamoHttpServletRequest;
/* DynamoHttpServletRequest atgRequest = (DynamoHttpServletRequest) request;
HttpSession atgSession = (HttpSession) atgRequest.resolveName("/" );
String atgsession = "jsessionid=" + atgSession.getId();
HttpServletRequest weblogicRequest = (HttpServletRequest) request;
HttpSession weblogicSession = (HttpSession) weblogicRequest.getSession();
String weblogicsession = "jsessionid=" + weblogicSession.getId();
Sample2:
Below commented code is original one. we tried to as mentined below:
/* ATG Dynamo for Session Last Access Time functionality */
//import atg.servlet.DynamoHttpServletRequest;
/* DynamoHttpServletRequest atgRequest = (DynamoHttpServletRequest) request;
HttpSession session = (HttpSession) atgRequest.resolveName("/atg/dynamo/servlet/sessiontracking/SessionManager/" + sessionID);
HttpServletRequest weblogicRequest = (HttpServletRequest) request;
HttpSession session = (HttpSession) weblogicRequest.getSession();
we would like to know is there any smilar functionality or methods available so we can use in HttpServletRequest or servlets.
Thanks,
Nagesh

Similar Messages

  • HT4245 can somebody tell me what to do with my iMessage in Ipad 2? before i can send message tru iMessage from my contacts who is having the same applications, for the existing one, i can send message but if i want to send message from a new contact, not

    can somebody tell me what to do with my iMessage in Ipad 2? before i can send message tru iMessage from my contacts who is having the same applications, for the existing one, i can send message but if i want to send message from a new contact, its not working....

    Please Rephrase your query.

  • Send messages from BW to XI - how ?

    Hi,
    I have a requirement to send messages from BW to XI.
    Is there any standard method to do this ? Or will I need to write an ABAP to run each night and call an ABAP proxy?
    Is there any way to set up each infocube to send messages out automatically ?
    Cheers
    Colin.

    Hi Colin,
    The integration of SAP XI and SAP BW offers the following advantages:
    • Central maintenance of message flow between logical systems of your system landscape.
    • Options for transformation of message content between sender and recipient.
    Mappings help you to adapt values and structures of your message to the recipient. In this way, you can transfer different types of files to a SAP BW system using interface mapping. However, in any case, it is necessary to transform the data into a format that corresponds to the interface of the function module that is generated in SAP BW and used for data transfer. The function module contains a table parameter with a flat structure. This means that the data have to be transformed so that they fit to a flat structure in SAP BW.
    • Using proxy communication with SAP BW.
    Proxies are executable interfaces generated in the application systems for communication with the SAP XI Integration Server. We recommend the use of proxies for communication with SAP BW because they guarantee Full Quality of Service (Exactly Once in Order). They also guarantee that the data is delivered only once and in the correct sequence. The SAP XI Integration Server keeps the serialization as it was established by the sender.
    Also go thru these links which are really good and it answers your question very clearly:
    http://www.sap.info/index.php4?ACTION=noframe&url=http://www.sap.info/public/INT/int/index/Category-28943c61b1e60d84b-int/-1/articleContainer-284794226fe1646470
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/821140d72dc442e10000000a1550b0/content.htm
    http://www.microsoft-sap.com/technology.aspx
    I hope I have answered your query.
    Regards,
    Abhy

  • Mail with multiple gmail accounts sending messages from wrong email, other than the one i select

    mail with multiple gmail accounts sending messages from wrong email, other than the one i select:
    i'm using mail on osx 10.7 with multiple gmail accounts. when i create an email, i check to be sure i'm sending/replying from the correct account. after i send it, somehow it actually sends it from a different account, other than the one i've selected "from." this is evidenced by the reply email i receive. how can i fix this?
    in preferences, i have "send new messages from : account of selected mailbox"

    From the Mail menu bar, select
              Mail ▹ Preferences...
    The Mail preference dialog opens. Select the Composing tab from the row of icons at the top. From the menu labeled
              Send new messages from:
    choose
              Account of selected mailbox
    Note that this setting may have no effect if you start a new message while a VIP or smart mailbox is selected in the mailbox list. Those are saved searches, not actual mailboxes.
    If the problem remains, select the Accounts tab in the preference dialog, then select the affected account in the list on the left.
    In the Account Information pane, select the correct server in the menu labeled
              Outgoing Mail Server (SMTP)
    If there's only one server in the menu, select
              Edit SMTP Server List...
    and add a new server with the correct settings. If you're not sure how to do that, try the Mail Settings Lookup.
    Another possibility is that the wrong card in your address book is selected as yours. Select your card in the Contacts application. Then select
              Card ▹ Make This My Card
    from the menu bar.

  • Cant receive/send message from certain group anymo...

    I'm using the linux client version 4.3.0.37 on a 32 bit Linux
    using the button "check for last version" tells me i'm using the latest version
    all of sudden yesterday I stopped being able to receive/send message from most of my groups anymore
    I've seen this post reporting a similar problem
    it seems the groups affected are recent ones which got their names starting with "19:xxxxx" when i run the command  "/get name"
    I've reinstalled my skype on a completly new machine (still on linux) and get exactly the same problem, however while skype sync all the messages it retrieves also the message I was not able to see. but after the sync is done, new messages are again not coming in.
    Is that a known issue with a workaround ?

    I answered this question for you earlier. 
    Call your carrier, or have him call his.
    Lastly, when you are actually NEXT TO HIM, try texting him and see if it works.   Maybe he is just ignoring you.

  • Is possible to propagate message from AQ to another Application by Internet

    Hi,
    Is possible to propagate mesage from AQ to another Application by internet protocol such as HTTP, SMTP?
    I need to automatic dequeue from AQ and send message from queue to Email or HTTP , is it possible? if yes, how to do it?
    Thanks

    chry,
    You can use a java stored procedure to dequeue the message and then use JavaMail to send the message by eMail, or the java.net package to use HTTP to send the message.
    I believe Web Services is also supported. The new book by Kuassi Mensah explains how to do this (I believe). The following post has more details:
    Programming the Oracle Database with Java and Web Services: sample chapter
    (Posted: Nov 1, 2005 2:22 PM)
    Good Luck,
    Avi.

  • Im having trouble sending messages from my iPhone 4..ever since i upgraded to iOS 5, its giving me this problem. It says your SMS mailbox is full. Delete some messages to recieve new messages.  I've deleted around 10 huge conversations, rebooted it, resto

    Im having trouble sending messages from my iPhone 4..ever since i upgraded to iOS 5, its giving me this problem. It says your SMS mailbox is full. Delete some messages to recieve new messages. 
    I've deleted around 10 huge conversations, rebooted it, restored it, done a soft and hard reset too. What should i do?

    my boyfriend restored his iphone as a brand new phone and still had this problem, he deleted all his text conversations except mine and his best friend's conversations still nothing, i told him to delete OUR conversation since its a 2 year conversation that he has NEVER deleted ..... he said YES!! we tried to delete it and the phone freezes as soon as we click on the CLEAR CONVERSATION button!!!! we tried about 5 times and this happened everytime we tried!!!! ....is like the phone doesnt wanna let go of our conversation!!! every other conversation he deleted the phone was fine except for when we try and delete ours!!
    so yesterday he left his phone alone around 4 pm since we have the apple appointment today at 130pm.......around 11 pm last night his phone went NUTS receiving all the text messages i had sent and never received!!!! and now the phone works just fine!!! ...... CONFUSED?????? yeah we are too!!!
    but we're still going to the apple store to see what they can tell us!!!

  • Send message from JSP page to Java message driven bean

    Hi all
    I'm using Jdev903.
    I need to send a message from JSP page (Web Application) to Java Message Driven Bean.
    * I created Message Driven Bean that named: MyMessageDrivenEJBBean
    * I have configed jms.xml:
    <topic-connection-factory name="ChatTopicConnectionFactory" location="jms/theTopicConnectionFactory"/>
    <topic name="ChatTopic" location="jms/theTopic"/>
    * In JSP page, my code is:
    final Context ctx = new InitialContext();
    // 1: Lookup ConnectionFactory via JNDI
    TopicConnectionFactory factory =(TopicConnectionFactory)ctx.lookup("jms/theTopicConnectionFactory");
    But trouble occurs is:
    javax.naming.NameNotFoundException: jms/theTopicConnectionFactory not found
    please help me!
    thank a lot.

    Welcome to the Sun forums.
    1. Please post your code using code tags, this formats it so that it is easier for people to read and understand it. Click on 'CODE' above the text area when posting.
    2. As far as possible, please post an SSCCE
    What have learnt about JSPs and servlets till now? Because reading the values submitted in a form is pretty much the base of all operations. I suggest you Google for [servlet tutorials|http://www.google.com/search?q=servlet+tutorial] and [JSP tutorials|http://www.google.com/search?q=jsp+tutorial] and go through them thoroughly. After you understand what is to be done and what options are available to you, if you still face problems, please feel free to post your queries here. But this isn't exactly a site for tutorials, especially since there are so many good ones already out there, that explain all this stuff in detail. There's no point in re-inventing the wheel.
    Hints: [ServletRequest#getParameter()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)] and [RequestDispatcher#forward|http://java.sun.com/javaee/5/docs/api/javax/servlet/RequestDispatcher.html]

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

  • My iphone is sending messages from icloud and my phone number is not listed in the icloud settings now, just my e-mail address

    My icloud used to have my phone number as an option to send messages from but now it is gone and only my e-mail address is there.  This never happened prior to downloading the ios 7 update.

    if you turn imessage off then restart your phone turn imessage back on it worked for me

  • I have a dll file, i want to send messages from this to the device ,how can i do it in labview

    Hi,
    I am a new user of labview.
    I got Vector Card, DUT, DC Power supply and .dll file. Hoe can i connect dll file and hoe to senf the information to the device,
     i want to send/receive a message to that device . and measure temperature , humidity of the device. is any one can help?
    i have a .dll file, i want to send messages from this file to the testing device ,how can i do it in labview?

    Dear Sandy,
    How are your DUT, Vector Card and your PC connected?
    What vector card is this?
    There are a huge amount of Knowledge base articles that you can access from www.ni.com.  Simply go to the website and do a search on dll, etc.
    There are also a lot of example problems shipped with LabVIEW that will be very helpful for you to learn from and to modify to meet your needs.  Go to File»Find Example ....
    There are LabVIEW classes taught locally as well that are very helpful.  If you're interested I can arrange for you to receive an email with info about it.
    Sincerely,
    Sammy Z.  

  • Is it possible to send message from R/3 system to itself?

    HI All.
      I want to send message from R/3 to PI (anyhow, virtual receiver or smb else), make in PI some transformation and return this new message to R/3. (I don't want to do this transform in R/3, because in PI its easier and universally)
    Is it possible? How?
    Regards,
    Andrey

    Thanks for answers.
    R3 <-> PI <-> R3 scenario is not a trouble. But not in this case.
    The main task:
    User have a table with data. In this table there are 2 fields: INDEX, SUM. He want to take a xml file. I have XSD for this file.
    I have to assign summ value (SUM) to corresponding tag depend on characteristic name (INDEX).
    It  looks like DMEE, but in DME formats has own structure and it is differ from my XSD. It is difficult to translate my xsd to DME xml.
    It is realizable in ABAP, but i want to minimize abap development.
    So I want to send this table to PI, transform it to file (xsd external definition) and then return this file as string (for example) and save it as file on the users front end. It is very simply to tranform the table to file, but i don't no how to send it back to R3. I think it is necessary to transfom file to message with another structure and then send to R3. Any ideas?
    Regards,
    Andrey

  • Why won't imessage send messages from my phone number? It jut uses my  email  address.

    Why won't I message send messages from my number? It keeps using my email address. I have signed in and out of my apple id several times but no luck, I have also restored my phone. Imessage says it is waiting for activation could this be the problem?

    Hi there,
    You may want to take a troubleshooting steps found in the article below.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    -Griff W.

  • Why is my iphone sending messages from my email and not my number?

    My phone will send messages from my email rather than my number. I have gone to the settings to switch it to send just from my number. When i do that, it does not send. What do i do to fix this problem!?

    Hello therealdeal333,
    Thank you for participating in the Apple Support Communities.
    It sounds like you're only able to send iMessages using your Apple ID (email address) on your iPhone. If you're not able to send iMessages using your phone number, first try signing out of iMessage and FaceTime on your iPhone:
    Go to Settings > Messages > Send & Receive, tap your Apple ID, then tap Sign Out.
    Go to Settings > FaceTime, tap your Apple ID, then tap Sign Out.
    If you send iMessages from other devices (such as a Mac or iPad), sign out of those as well.
    Then sign back in on your iPhone:
    On your iPhone first, sign back in to iMessage and Facetime.
    Sign back in to iMessage and Facetime on your other devices (if necessary.)
    You can find the steps I quoted above, as well as more troubleshooting help, at this link:
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    Best Regards,
    Jeremy

  • Send message from java not client

    I have a java app running on my server and I'd like to send
    messages to subscribed clients. All the messaging examples I find
    have the messages originating from a flex producer. I want java to
    be the producer.

    I used this example to get it done.
    http://western-skies.blogspot.com/2006/07/flex-sending-messages-from-server-side.html

Maybe you are looking for

  • Indesing Panels and Windows

    Hi guys, I have to finish a work document in Indesing in a PC, i don't have my Mac with my preferences and so on. I notice that the default Windows Panels in text doesn't show as much info as i would like to, for example, kerning, tracking, hyphenati

  • Problem when updating Billing Block

    Hi All, Scenario : I have created a debit memo request without a billing block.                 In a Separate Program we need to update the Billing block.                 I am using BAPI_SALESDOCUMENT_CHANGE in the following                 manner :

  • Auto Numbering Table Rows

    In the linked form, I am trying to have the Model numbers increase by 5 with the staring row being 10. The first row works correctly (15) but the next row displays 16 instead of 20. Any help offered is appreciated. https://acrobat.com/#d=qqeTcs45UOSY

  • Business Role - Configuration Key

    Hi experts, I have made a lot of view configurations on my configuration key. And now, i need another role with same configurations except 2 or 3 diferences. So i want to copy the configuration key with all its configurations. Does anybody know how c

  • Trying to create dynamic inset Stmt from Hashmap

    Hi, I have a string A=1,B=2,C=3,.... etc and based on the values which I check for, it has insert these values into different tables. The way I thought for this output was to put these values into a Hashmap. so A is the columnName and 1 would be the