JMS: can I access SAP messages from extenal Java

- Can I access SAP Messages from an external (non-SAP) java program?
- Do I use JNDI or can I call using a jar file from my java invocation?
- Do I have to define a queue (or does SAP JMS have queues)
- What port do I use?
Thanks

Hi John,
> - Can I access SAP Messages from an external
> (non-SAP) java program?
>
Yes, you can use the JMS provider on the Web AS from a standalone java program.
> - Do I use JNDI or can I call using a jar file from
> my java invocation?
You connect your remote java client to the server by getting an InitialContext. The you lookup the JMS resources (such as Topic- or Queue ConnectionFactory, etc.) from the JNDI. You can have a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/25/bf8f44540c469abc19fb6ac3ac7885/frameset.htm">this</a> page for more info.
>
> - Do I have to define a queue (or does SAP JMS have
> queues)
>
The JMS Provider on the Web AS provides default connection factories that you can use to create a topic ot queue. The lookup strings you have to use are
jmsfactory/default/TopicConnectionFactory
for topics and
jmsfactory/default/QueueConnectionFactory
for queues.
> - What port do I use?
>
You use the P4 port (50004 by default for instance number 00) when obtaining the InitialContext with this code:
java.util.Properties properties = new Properties();
// set the properties of the connection
properties.put("Context.INITIAL_CONTEXT_FACTORY", "com.sap.engine.services.jndi.InitialContextFactoryImpl");
properties.put(Context.PROVIDER_URL, "<Server_Host>:<p4_port>");
properties.put("Context.SECURITY_PRINCIPAL", "Administrator");
properties.put("Context SECURITY_CREDENTIALS", "admin_password");
// start initial context with the properties specified
InitialContext context = new InitialContext(properties);
Hope that helps!

Similar Messages

  • I'm getting a "can't access icloud" message from all devices.

    I'm getting a "can't access icloud" message from all devices. According to Apple the system isn't down. Any ideas? My password is correct.

    A full reset fixed the problem.

  • Can we access PI tables from WebDynpro Java via PI 7.1?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi Neha,
    You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
    I found a document that speaks about fetching data from SXMB_MONI Standard Table https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050ff4f-84c3-2b10-3d99-8f9c44f57a17
    Hope this is useful.
    Regards,
    Seema Rane.

  • Can't access any messages from (huge) sent .mbox

    Hi - I had posted this elsewhere & gotten a helpful response, but now I can't find my thread - I'm so confused!!!!
    Anyway - many months ago, I started to not be able to see sent emails ("needs to be downloaded from server" error). I didn't know what to do about it, so I didn't do anything, and just lived with the fact that I couldn't see them for awhile, and I'd need to fix this problem at some point when I had time.
    Last night, I started to get that same error message when trying to view my inbox messages - EEK... so I came here, and followed the great advice about having an overstuffed mailbox. I deleted lots and lots of huge attachments from my inbox messages, and I haven't gotten that error since.
    I did a "rebuild" on my sent mail to see if it would help, and it just emptied the whole list of messages (table of contents????) in my sent box, leading me to believe they were gone forever. Yet, even with an apparently absolutely empty sent mailbox, I was still not able to view a test message I sent to myself!!!! (Same error)
    So I discovered a thread in this forum that was very helpful, and followed the instructions. I moved my sent mail .mbox (from my POP folder) to my desktop, restarted mail, and then I could view a test message I sent, in my new sent messages folder!!!! I was pretty excited about that, and was very hopeful as I tried to get back my 1.5GB sent mail .mbox. After backing up my whole .mbox file, I went to the file on my desktop, deleted the "content_index" and "tableofcontents" files after viewing the package contents, and copied the mbox file back into my POP folder. When I started mail again, it took forever for it to load, and I saw all my messages listed (EXCITED), but then tried to read one, and I got the same "download from server" message. (@#$%).
    Is there any hope of getting these messages back???? I will happily strip them of all their attachments, if I can just get them back.
    Also - the problems with overstuffing into one big, main box - I get it that I have to make my own mailboxes so no one file gets too big. But how can you do that with sent mail???? When I first got this computer 2.5 years ago, I spent hours trying to figure out if it was possible to do that, and was endlessly frustrated. I really wanted to be able to categorize my sent mail, and now that I know that it can get overstuffed, I'm ticked that it doesn't let you make sub-mailboxes within sent mail!!!!
    Please help me get my sent messages back... it's 1.5GB, and I hope I didn't ruin all my chances by waiting too long. Thank you in advance if you can help me!!!!
    PowerBook G4   Mac OS X (10.3.9)   mail: 1.3.11 (v622/624)
    PowerBook G4   Mac OS X (10.3.9)   mail: 1.3.11 (v622/624)

    Hi Catherine.
    You let the Sent Messages.mbox to grow too much and now it’s too big for Mail to be able handle it.
    As you’ve already found, although in Mac OS X 10.3 and earlier *.mbox packages appear to be files, they are actually a special kind of folder containing several files that can be revealed by ctrl-clicking on the *.mbox package and choosing Show Package Contents from the contextual menu.
    Of these files, mbox (not to be confused with the *.mbox package that contains it) is the most important and is where your messages are stored, but it’s not the only file that may contain messages. An Incoming_Mail file may also be present, in which case it might contain messages that Mail couldn’t transfer to mbox. Incoming_Mail is also a standard mbox file like mbox proper, just named differently.
    Instead of tinkering with the contents of ~/Library/Mail/, IMO it’s preferable to try to import the mbox files back into Mail doing File > Import Mailboxes and choosing Other / Standard mbox as the data format.
    If the mbox files are too big, however, importing them directly into Mail won’t work either. You’ll have to break them into smaller pieces. You can do that with an MBOX Breaker Script available at Allan Sampson’s website, or with Emailchemy. The former will ignore the Incoming_Mail file that I mentioned previously, but you may try importing that file directly if it’s not too big or just ignore it if all your messages are in mbox.
    As to organizing your mail in custom mailboxes, what you say doesn’t make sense to me. You cannot create sub-mailboxes of any of the standard Inbox, Sent, etc. mailboxes. Those are managed automatically by Mail. You must create your own custom “On My Mac” mailboxes. Also, sent messages can be organized just like received messages. Actually, you can store sent and received messages together in the same mailbox. You should read the relevant articles in Mail Help to learn how this works.
    BTW, the web page you’re looking at now is full of links to do things and look for information in these forums. Just pay attention to them. In particular, if you look at the right of this web page, you’ll see several ways to get access to any questions you’ve asked previously or discussions in which you’ve participated.

  • Accessing SAP Tables from a Java application

    Hi,
    I know, the forum is called "Web Application Server" but because it's Java question I hope to get answers here.
    I have a small stand-alone Java application that needs to access (read-only) all records from a SAP table. Is there a possibility to do this without writing a BAPI before?
    thanks a lot
    Paul

    Hi Paul,
    You can use JCo to call the standard remote-enabled function RFC_READ_TABLE. There is one annoyance involved with this function, though: each row of data returned is packed into a single string, so you must either specify a delimiter and use e.g. String.split(...) to parse out the column values or use the returned metadata to extract each value based on position and length attributes of the column.
    Another option (although this is usually not allowed in a productive environment) is to establish a direct JDBC connection to the database, thus bypassing the ABAP application layer entirely.
    Regards,
    Thorsten

  • Can we access PI tables from WebDynpro Java via PI 7.1 to display inPortal?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi
    For that tables any if RFC are created if created it's possible with WD for Java technology.
    Suggestable is backend is R/3 right, advisable is use all SAP standard tech
    Regards
    -SS
    Edited by: Sridhar S on Apr 14, 2009 11:12 AM

  • Access SAP Tables from Java Program

    Hi All,
    We have a requirement to integrate attendance portal(which is done in java) with SAP.
    Our problem is how to access SAP tables from a Java program?
    Database is Sybase.
    Please suggest us a good solution.
    Thanks in advance...

    Did you go through Sap Help?
    Calling BAPIs from Java - BAPI User Guide CA-BFA) - SAP Library
    Regards,
    Philip.

  • TS4002 I bought iPad and I can not access, A message appears asking me account and password when i return to the person who I purchased it from him, he told me that he forgot the account and password I want a solution to the problem, because in this way I

    I bought iPad and I can not access, A message appears asking me account and password when i return to the person who I purchased it from him, he told me that he forgot the account and password
    I want a solution to the problem, because in this way I will not benefit from the iPad

    There is no solution.  You have to provide the ID and password.  There is no way around it.  If the person you bought it from can't provide it, return it and get your money back.

  • Hi, how can I access SAP from my mac OS X?

    I used to work on an IBM with Internet Explorer 7 and had no issues with accessing my company's SAP portals but I can't access SAP from my mac web browser (Safari).  Any clues??
    Thanks

    http://www.orchestrateam.com/blogs/sap-business-one-mac-details
    you can run bootcamp and run windows from that.
    or a VM (parallels and vmware fusion).

  • How can I send a message from database to a J2EE application?

    How can I send a message from database to a J2EE application?
    If I have a codetable in database that has new or modified values I have to refresh the codetable in my J2EE application.
    Most effective way would be send a message to initiate a table reload from J2EE app, but I don't know how to do this.
    Now I have a background thread that regular reads the table and looks for changes.

    http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_AQ_Configuration.pdf
    This document details how to create triggers on a table that send out JMS messages.
    In this example, the messages are going to Oracle BAM.. your message could go to your J2EE application listening to its own topic/queue.
    an alternative idea.
    you could also just cache your lookup table with something like Oracle Coherence and than try to ensure that all changes to the lookup go through Coherence, so that you won't need to do notification from the db up to the application. the application and the lookup data management tool would be using the data grid for management of the lookup table data, and the data grid (coherence) would persist the lookup data changes back to the db.

  • How can i access the EJB from a Webdynpro

    Dear all,
    How can i access the ejb , from a webdynpro?.
    Is there any way to do that?.
    I want to write the entire code (business functions) within the EJB and i wan to access the entire methods from a WebDynpro Application.This is the situation.
    Please help me to , resolve this problem.(Here im using JDBC Connection .. etc.).
    I want to do the basic connection setting's and data retrieval part within the EJB and use that within the WebDynpro..
    how can i seperate this two(i mean, i want to seperate the JDBC connections and WebDynpro,i dont want to hard code any connection parameters within the webdynpro code)
    So that i want use that saet of particular function's in many webdynpro applications..
    (i dont need any help regarding webservice way.)
    If anyone can , please help me..
    I tried that javabean class , manifest file , that way (importing javabean model).
    but im getting errors.
    I cant properly utilize that..
    So please help me with steps regarding that,,
    for javabean
    and if any , for EJB also..
    with regards
    Kishor.G

    HI,
    Since webdynpros follows Model View Controller Architecture You can access EJBs in webdynpro(views/frontend) infact to connec to database uding JDBC you have to utilise EJB ( opening connection to database closing, and other Business functionality).See this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/web dynpro tutorial and sample applications.faq#q-7
    <b>How to access the Car Rental Web Service?</b>
    Regards,
    RK

  • Since installing Photoshop CC I can't access Camera Raw from the program Bridge.

    Since installing Photoshop CC I can't access Camera Raw from the program Bridge.  When I try, I get a message that says, "Camera Raw editing is not enabled. Camera Raw editing requires that a qualifying product has been launched at least once to enable this feature."  Is Photoshop CC a qualifying product?  It has been opened a number of times, but it doesn't solve this problem.

    I am having this exact same problem and just upgraded to Windows 7...many people are saying to update the Plug In for Camera Raw to 4.6, but that is not working for me to see it in Bridge or Camera Raw.

  • Can't access my dvr from safari

    Hi,
    I have a problem with safari.  I can't access my dvr from the browser.
    After I sign in to my dvr webpage this message comes instead of loading java: The requested URL was not found on this server
    I have this message when I try with Mozilla:
    CacheEntry[http://xx.xxx.xx.xx/application.jar]: updateAvailable=false,lastModified=Thu Jan 01 01:00:00 CET 1970,length=40266
    Missing Application-Name manifest attribute for: http://xx.xxx.xx.xx/application.jar
    Missing Permissions manifest attribute in main jar: http://xx.xxx.xx.xx/application.jar
    java.io.FileNotFoundException: abc (Permission denied)
    Thanks in advance for any help you can provide!

    Sorry... I didn't realize that this problem was common, not rare.
    I remove the Discussion-related cookies and restarted. I did get to the sign-in page this time, but after clicking the sign-in button, I got "An Internal Server Error Has Occurred." (Nothing else on the page.)
    I decided to check cookies again, and the same ones that I eliminated were back again. Needless to say, repeating the exercise didn't work.
    Resetting Safari is out of the question. I have years worth of settings and cookies stored there for a good reason, and I'm not going to start over from scratch. I can't imagine why anyone would, unless they have a whole lot of time on their hands.
    So... I've decided that this is Apple's problem. If I need Apple Discussions I'll use a browser that works.. which apparently is every browser except Safari. Now that's ironic!

  • Access SAP BW from Java

    Hello,
    I need to build a Java web application that can collect and display data from various SAP BWs.
    Write operations are not required. What is the easiest way to do that?
    I found that SAP Open Hub Service lets you extract the data to a CSV file or a relational table.
    Assuming I go the way of creating a relational table, the following questions arise:
    - Where are those tables stored? Still within SAP BW or in an external relational DBMS (e.g. an Oracle database)?
    - How can I access those tables from within my Java code (just through a standard JDBC driver)?
    - Who initiates the population of those tables?
    - Can I trigger the extraction at a given time from within my java code?
    - If so, can I hand in filter critera, so that the table is populated only with data that matches my filter, or do I need to extract all data to the relational table and then filter at the next step?
    - Can I have a timer in the SAP BW that creates the table on a certain schedule (e.g. once per day)?
    What other (easier) options are there to achieve this task?
    Thanks,
    MARK
    Edited by: M. Arnold on Aug 17, 2010 9:50 AM

    Mark,
    What you can look at are :
    1. Use a JDBC connector to connect to the database directly - this has some obvious disadvantages because the data would have to be linked with the SID tables , text tables and Dimension tables for cubes which makes the process extremely cumbersome
    2. Use Openhub to extract to a relational table and access the same - possible , but you have two steps in between - openhub to update table and then access the table while maintaining data consistency - this might become a maintenance nightmare once you heavily use this concept
    3. Use web services - there are standard web services like query_view_data and rfc_read_tale which you can use - these web services are SOAP based and you should be able to use the same in your JAVA application
    4. Use the BI JAVA SDK to connect to the backend through an API supported by SAP - this would be easy to use - the SDk should be available on SCN or on the support marketplace and you shoiuld be able to use the same quite easily
    5. Use JCO and build the application using NWDS where you have native connectivity to SAP BW using JCO
    6. Use Web Dynpro JAVA to develop your application where you should be able to access the necessary APIs wherever required.
    Edited by: Arun Varadarajan on Aug 17, 2010 8:15 PM

  • Can't access hotmail account from browser. cerficiate untrusted

    Can't access hotmail account from browsing, I tried to log into my hotmail account by visiting www.live.com and log into my account (add e-mail address and password) when sign in i get a message saying:There was a problem establishing asecure connection.( I get two tabs Details and Stop) I click on Detials I get another message saying: server Certificate Error. untrusted certificate,unable to determine the certificate origin, This has been disallowed by your administrator.. When i press on option Stop i get e message saying: refussing connection.This server has beed previously supporting HTTP Strict Transport Security. Due to SSL certificate warning/errors, a connection will not be made. Please could anybody help me.. I contact Vodafone they said it's microsoft issue then the latter said it's blackberry problem. i have tried everything nothing seems to work.. I don't want to register my hotmail account on my BB, but i want to access it through browsing as i do on my PC.. I will be really gratful.. thank you
    Solved!
    Go to Solution.

    Ggggrrrr, i really hope that's wrong, i would also be moving away from BB sharpish if that's the case. Hoping someone cleverer than me can come up with a solution, the BB manual certainly doesn't help. Like the first poster I have tried getting vodafone to help and also hotmail, both without success.

Maybe you are looking for