JMS to Proxy--- Urgent

Hi,
Can anyone give me the detailed step by step procedure for configuring a sender JMS adapter and also to test it(JMS to Proxy).

Hi,
go through this link
http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm
Regards,
Kumar.
P.S:Reward points if helpful!!!!

Similar Messages

  • Proxy to JMS and JMS to Proxy - Szenario

    Hi @all,
    i've implemented an async scenario:
    Proxy to JMS (away, request)
    JMS to Proxy (way back, response)
    Backend is ECC 6.0 and Middleware is PI 7.1.
    Business Case: Run a request with a number, get an answer back with an entry. The number is an individual criteria which is not included in the answer. So I decided to write the number in JMSCorrelationID, therefore I've written an UDF in Message Mapping.
    I've checked the JMS Correlation ID in additional properties and also added this into the list of additional properties:
    key.0 -> read xxxx DCJMSCorreleationID
    value.0 -> DCJMSCorrelationID.
    First question: is there something what I should account for in JMS receiver channel?
    At the way back I've implemented another UDF for writing the JMSCorrelationID back to payload in message mapping.
    But I'm not sure that works. The coding looks like:
    try
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey KEY_JMSCorrID = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS","DCJMSCorrelationID");
    String a = conf.get(KEY_JMSCorrID);
    catch(Exception e){}
    return a; //a is an input field for the payload back to SAP backend.
    Second question: is there something what I should accound for JMS sender channel? Do I need to add the DCJMSCorreleationID to the list of additional properties (JMS Correlation is checked)?
    Thanks in Advance,
    Stefan

    Hi,
    thank you for your answer.
    The Proxy to JMS scenario works well and overwrites the JMSCorrelationID given by a number from message payload.
    Could you please take a look at the given udf-coding that belongs to JMS to Proxy Scenario?
    Is it possible to get the JMSCorrelation at this way?
    I also put in JMS-Sender-Channel the JMSCorrelationID into the additional JMS-Message properties and checked "correlation-id from jms message" in adapter specific message attributes.
    In Module-Tab of JMS-Sender-Channel i put the module-configuration in a way like this:
    -> key.0 insert http://sap.com/xi/XI/System/JMS DCJMSCorreleationID
    -> value.0 DCJMSCorreleationID
    Do you think that works?
    I could not verify this configuration until I get an entry in outbound queue so I can't make tests to that.
    In Message Mapping - Test a Null Pointer Exception Occurs, according to the UDF, because I'm reading the DCJMSCorreleationID which is not present at mapping ad hoc test - I think that is ok.
    Thank you in Advance,
    Stefan

  • JMS To proxy Runtime error

    Hello,
          I am doing a JMS to Proxy scenario, so in mapping at run time i am getting
    an error as:
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 30, 30, 20(:main:, row:1, col:3) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 30, 30, 20(:main:, row:1, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) Root Cause: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error:
    My source file is :
    00  QY040           AM01- NBG IABENT21 A  6257069               21                00000020001                   20070301200703030002167440                                  429900000002167440teealm  tezste          A:10245980-1; 1/1; I/EE-31; 91830; ALMSTETTER,HANS      000000000         10245980-1                                                                                ALMSTETTER,HANS91830
    Can any one throw some light,how does JMS handle incoming data ?
    Regards,
    Anirban.

    Hi All,
    I want to configure JMS to Proxy Scenario , the link provided above doesnt show any blog.
    Can anyone explains what steps I need to follow to configure JMS to PROXY scenario? More specifically configuration and stpes to be considered in case of JMS configuration . (Proxy I know ).
    I do have the XSD , source structrure which will be genrated via MQ .
    Thanks,
    Pushkar

  • Increases number of JMS consumers in an OSB jms-polling proxy service

    Hi All,
    I'm looking for an option of increasing the number of JMS consumers in a JMS OSB proxy service. I know that this is possible by modifying the ejb, but I'm looking for any other option by using weblogic/proxy configuration. When I monitor the queue I have a number of 16 message consumers, but I would need to increse it to a higher number in order to improve the performance.
    Please send me any suggestion o advice to solve it.
    Thanks in advance
    Luis

    Sorry I sent it to the wrong place. I have moved it to Weblogic

  • JMS Biz & Proxy Services Using OSB & SSL

    We have a potential requirement being enforced upon us which states that our communication to another system using a JMS proxy service should be using SSL.
    Has anyone done this before using OSB?
    There is a "Use SSL" tick box on the proxy and business services, but I think this is purely for authentication and not transport - but I could be wrong as its not an area I know that much about.
    We're pushing for an IPSEC VPN link as that makes much more sense, but in the meantime I thought I'd ask if anyone had done any JMS + SSL work using OSB.
    Thanks,
    Pete

    Manoj, Thanks for your reply.
    Actually the other system is OSB!!
    It's a government system we're talking to but in the interests of open-ness, we cannot use OSB->OSB out of the box interfaces such as SAF etc, as that isn't an open enough interface and users of the interface who don't have OSB may be disadvantaged! Something like that anyway! SAF would be a perfect option for this interface, but .....
    What we've been so far is that all communication via JMS must be SSL based. But - t3s is not supported on this interface, so the SSL negotiation must be handled by a hardware device or something else.
    We think we've found BigIP load balancers do the job, but that's a large cost as we don't have those in our current infrastructure.
    We don't have much SSL communication apart from https, so I don't have a whole lot of experience with it and I just wondered if there was any OSB feature I'm missing, or something you can do in plan java code to get JMS communicating via SSL.
    Pete
    ps:A standard IPSEC VPN would do the job too, which we're going to try to push for, then, you just use the jms:// url to an address and the security is via the VPN.

  • Stuck Thread - JMS Business proxy Service (ALSB 2.5)

    Hi All,
    We are having a jms proxy service which uses a JMS Business Service to send messages to a jms queue on weblogic 8.1 sp6. The alsb domain runs on weblogic 9.2.The jms proxy service is made single threaded by configuring a suitable work manager.
    Now and then, we get a stuck thread issue in production and the proxy service stops consuming the messaging off the jms queue in wls 9.2. These are the errors in the logs:
    <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1235437298516> <BEA-000337> <[STUCK] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "695" seconds working on the request "weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl@5321caf", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    Thread-70 "[STUCK] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, in native, waiting, priority=1, DAEMON> {
    -- Waiting for notification on: weblogic.rjvm.ResponseImpl@51961a5[fat lock]
    jrockit.vm.Threads.waitForSignal(Native Method)
    java.lang.Object.wait(Native Method)
    java.lang.Object.wait(Native Method)
    weblogic.rjvm.ResponseImpl.waitForData(ResponseImpl.java:73)
    ^-- Lock released while waiting: weblogic.rjvm.ResponseImpl@51961a5[fat lock]
    weblogic.rjvm.ResponseImpl.getTxContext(ResponseImpl.java:100)
    weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
    weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    weblogic.jms.dispatcher.DispatcherImpl_816_WLStub.dispatchSyncTranFuture(Unknown Source)
    weblogic.jms.dispatcher.DispatcherInteropAdapter.dispatchSyncTranFuture(DispatcherInteropAdapter.java:80)
    weblogic.messaging.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:230)
    weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncTran(DispatcherAdapter.java:51)
    weblogic.jms.client.JMSProducer.toFEProducer(JMSProducer.java:1047)
    weblogic.jms.client.JMSProducer.deliveryInternal(JMSProducer.java:670)
    weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:455)
    weblogic.jms.client.JMSProducer.send(JMSProducer.java:352)
    weblogic.jms.client.WLProducerImpl.send(WLProducerImpl.java:1009)
    weblogic.deployment.jms.WrappedMessageProducer.send(WrappedMessageProducer.java:157)
    com.bea.wli.sb.transports.jms.JmsOutboundMessageContext$SendAction.run(JmsOutboundMessageContext.java:795)
    com.bea.wli.sb.transports.jms.JmsOutboundMessageContext.send(JmsOutboundMessageContext.java:500)
    com.bea.wli.sb.transports.jms.JmsTransportProvider.sendMessageAsync(JmsTransportProvider.java:612)
    jrockit.reflect.CompiledMethodInvoker.invoke0(Unknown Source)
    jrockit.reflect.CompiledMethodInvoker.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.bea.wli.sb.transports.Util$1.invoke(Util.java:241)
    $Proxy39.sendMessageAsync(Unknown Source)
    com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:137)
    com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:437)
    com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:328)
    com.bea.wli.sb.pipeline.PipelineContextImpl.doDispatch(PipelineContextImpl.java:503)
    com.bea.wli.sb.pipeline.PipelineContextImpl.dispatch(PipelineContextImpl.java:415)
    stages.publish.runtime.PublishRuntimeStep.processMessage(PublishRuntimeStep.java:106)
    com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:327)
    com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
    com.bea.wli.sb.pipeline.PipelineStage.processMessage(PipelineStage.java:100)
    com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:771)
    com.bea.wli.sb.pipeline.Pipeline.processMessage(Pipeline.java:73)
    com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:771)
    com.bea.wli.sb.pipeline.PipelineNode.doRequest(PipelineNode.java:47)
    com.bea.wli.sb.pipeline.Node.processMessage(Node.java:57)
    com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:771)
    com.bea.wli.sb.pipeline.Router.processMessage(Router.java:141)
    com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:75)
    com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:646)
    com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:645)
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:627)
    com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:264)
    com.bea.wli.sb.transports.jms.JmsInboundMDB.onMessage(JmsInboundMDB.java:108)
    weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
    weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
    weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:292)
    weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
    weblogic.jms.client.JMSSession.execute(JMSSession.java:4012)
    weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
    weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    jrockit.vm.RNI.c2java(Native Method)
    Any one know the root cause of this issue or ways to prevent this?
    Also Is there a way to make the proxy service to reconsume messages off the queue without a server restart?
    Thanks,
    Atheek

    Hi atheek, did you find the solution??
    I already got the same/identic issue, do you mind giving me an aid?
    Really thanks
    Regards,
    Mr.K

  • Doubt in JMS to proxy scenario

    Hi All,
    I have a scenario, in which i need to send data from Tibco system to SAP ECC , where i am using JMS adaptor and proxies. For this do i need to create 2 diffrent datatypes, Message types or just i can create 1 datatype and 1 messge type and then create 2 different inbound and outbound? Please let me know. Thanks.
    Regards,
    Kalpana

    Hey kalpana
    why do you want to create just 1 data and message type?
    is there any reason for that,usually we have to create data type and message type for JMS as well as for proxies.
    are u confusing wid proxy?proxies replace adapters,they have nothing to do with data or message type.
    is the structure of both sender and receiver exactly the same in ur case?
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • Client Proxy Urgent

    Hi ALL,
    I am working with Proxy to File
    In this scenario I have to collect data from an Internal table which has around 25 fields with around 50 records.
    I planned to collect the data into the Internal table and then pass to the structure.
    My main doubt is where to place the command  
    COMMIT WORK  whether inside the loop or out side the loop after passing all records into the structure.
    Pls help ...
    Very urgent...

    I am sending the sample code can you check pls and give the apprropriate answer.
    Parameters : P_date type  -
    data : proxy_output type Zprefix_MT.
    Defined Itab with WA.
    Defined respective classes for Message Interface and Fault messages.
    Select statement to populate data into Itab.
    Loop at Itab into wa.
    Proxy_output-MT-s1 = wa-s1.
    Proxy_output-MT-s2 = wa-s2.
    Proxy_output-MT-s3 = wa-s3.
    Proxy_output-MT-s4 = wa-s4.
    create object client_proxy().
    Try
       Call method client_proxy -> execute_asynchronous
    Exporting
       output = proxy_output.
    Catch
    return.
    Catch
    return
    Endtry.
    end loop.
    COMMIT WORK.

  • JMS:  To proxy or not to proxy inside a Schema

    We are an eGate SRE 5.05 shop running AIX 5.3 and working on getting on getting CAPS up and running.
    Our SRE 5.05 translations are monk and 50/50 on Standard Queue vs JSM queues.
    We have a few inbounds eways that go to a queue, and many outbounds off that queue ( topics).
    I think using JMS Services to bridge between CAPS is a great concept. It definately works extremely well between eGate schemas. But how about using the eway connector inside a schema?
    It would appear that the benefit to the proxy, is that we see the name of the collaboration/event in the JMS Administrator. The downfall to this is that when we make a change to one eway, all configurations get updated (we have registry updates turned on and make changes often enough that we need this on). Sometimes, it takes a while for all configurations to get updated, and some of the eways simply stop processing altogether. We have to stop and start those eways to get them processing again.
    This configuration update does not occur to those eways that get their data via JMS eWay Connector.
    Let me rephrase this question: Which is more efficient / less problematic: using JMS Queues and eWay Connectors or JMS Queues and Proxying (publishing/subscribinbg through the collaboration).

    If you're only thinking of exploiting asynchronicity to match your web requests and load balancing to match your volumes, then your senior architect's advise may be correct. I think you're paying to use MOM to use a subset of what it provides in an application that may not be inherently MOM-leaning.
    Having said that, I have to say that I completely disagree with the overall focus of Tom Laramee's JavaWorld draft you linked to below. Load balancing, caching, security, etc. are all important features to consider. However, in my opinion the primary benefit of using message oriented middleware is the decoupling of fuctionality and work schedules in large distributed systems. None of the other solutions he discusses can even come close to solving these problems the way MOM does.
    I used to work at a large investment bank in the back office where we processed hundreds of thousands to over a million transactions per day. Our systems were very large and complex. Without having our system broken down into small, independent functional units (that could be independently tested and tuned) that communicated via MOM, I think the implementation would have been next to impossible, and even if possible, never maintainable. Apart from the functional decoupling, MOM queues served as excellent buffers to allow interconnected systems to work on their own schedules.
    I have worked with 2 other MOM products and I have to say that out-of-the-box JMS has the simplest API that I have seen. I had a very cool database-linked, cross-platform chat application running in no time. JMS is only as complex as you need it to be. The more features you exploit, the more complex it becomes. But basic messaging is very easy.

  • JMS receiver error -Urgent

    Hi All,
      I am using the JMS receiver adaptor for connecting to the MQ 5.3. I had deployed all the 4 jar files required for this and all the connections parameters are right,still I am getting the following error.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: No transition found from state: STARTING, on event: process_commence for DFA: AODB_JMS_RCV_Message:0c5354f070933583af34268222d82b9c
    Please help on this.
    Best Regards,
    Sugeet.

    HI,
    check the following link
    http://www-1.ibm.com/support/docview.wss?uid=swg21105655
    http://www-1.ibm.com/support/docview.wss?uid=swg21180117
    Thanks
    Swarup

  • Message content in proxy - urgent

    Hi,
    I need to know, how we can know, which messages have passed through the proxy interface in R/3 system. The message content, specifically (like the one we see in sxmb_moni)
    Remember that XI is NOT involved in this communication.
    Hence we cannot look into the XI system.
    Message flow is direclty from a Web service to R/3.
    PLease remember that I am not asking about debugging or creating the proxy.
    Thanks,
    John

    HI JOHN,
    Then the proxy which u r talking is not XI ABAP proxy.If that is the case u cannot see in the SXMB_MONI.
    just put a external break point to u r proxy in backendsystem and check what is the message flow in.
    If u post in XI forum saying Proxy, all would think XI proxies.
    so be calm in explaining to get u r answer
    rgds
    srini

  • When we should use JMS based proxy services and when JMS Adapter in OSB

    Hi,
    Can somebody explain me when we could go for JMS Adapter and when we should go for JMS based service in OSB?
    The one scenerio i can think of is when my provider/consumer is using jms provider other than WLS jms provider we should use jms adapter.
    Edited by: user12883209 on Jan 5, 2012 5:29 AM

    I don't think there are clear guidelines available, however here is my view.
    1) OSB 11gR1 is not certified with Oracle JMS Adapter. It is certified with Oracle FTP, Database, AQ and application adapters.
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/interop.htm#OSBAG1403
    2) In addition of the Weblogic JMS, OSB can also integrate with following provider without using adapter.
    - WebSphere MQ
    - Tibco EMS
    3) if you need to integrate JMS with BPEL Process or Oracle SOA suite composite, it has built in support for generic Oracle JMS adapter. Oracle generic JMS adapter can integrate with AQ JMS (JMS providers OJMS 8.1.7, 9.0.1.4, and 9.2), TIBCO JMS, IBM Websphere MQSeries (IBM MQSeries JMS 6.0), Weblogic JMS, Apache, and Active MQ
    http://docs.oracle.com/cd/E14571_01/integration.1111/e10231/adptr_jms.htm
    4) If you need to integrate OSB with Weblogic JMS, WebSphere MQ, Tbco EMS it does not need JMS adapter.
    Hope this helps !!!
    Jayesh Patel
    http://jayesh-patel.blogspot.com/
    http://www.yagnasys.com/

  • JMS: simple program (urgent please)

    I am quite new with the JMS. I am trying to have a simple program running in order to start from it towards the application I want to build.
    I tried to run the sample program below:
    package chat;
    import javax.jms.*;
    import javax.naming.*;
    import java.io.*;
    import java.io.InputStreamReader;
    import java.util.Properties;
    public class Chat implements javax.jms.MessageListener {
    private TopicSession pubSession;
    private TopicSession subSession;
    private TopicPublisher publisher;
    private TopicConnection connection;
    /* Constructor. Establish JMS publisher and subscriber */
    public Chat() throws Exception {
    // Obtain a JNDI connection
    Properties env = new Properties();
    // ... specify the JNDI properties specific to the vendor
    InitialContext jndi = new InitialContext(env);
    // Look up a JMS connection factory
    TopicConnectionFactory conFactory =
    (TopicConnectionFactory) jndi.lookup("TopicConnectionFactory");
    // Create a JMS connection
    TopicConnection connection =
    conFactory.createTopicConnection();
    // Create two JMS session objects
    TopicSession pubSession =
    connection.createTopicSession(false,
    Session.AUTO_ACKNOWLEDGE);
    TopicSession subSession =
    connection.createTopicSession(false,
    Session.AUTO_ACKNOWLEDGE);
    // Look up a JMS topic
    Topic chatTopic = (Topic) jndi.lookup("anytopic");
    // Create a JMS publisher and subscriber
    TopicPublisher publisher =
    pubSession.createPublisher(chatTopic);
    TopicSubscriber subscriber =
    subSession.createSubscriber(chatTopic);
    // Set a JMS message listener
    subscriber.setMessageListener(this);
    // Intialize the Chat application
    set(connection, pubSession, subSession, publisher);
    // Start the JMS connection; allows messages to be delivered
    connection.start();
    /* Initialize the instance variables */
    public void set(TopicConnection con, TopicSession pubSess,
    TopicSession subSess, TopicPublisher pub) {
    this.connection = con;
    this.pubSession = pubSess;
    this.subSession = subSess;
    this.publisher = pub;
    /* Receive message from topic subscriber */
    public void onMessage(Message message) {
    try {
    TextMessage textMessage = (TextMessage) message;
    String text = textMessage.getText();
    System.out.println(text);
    } catch (JMSException jmse) {
    jmse.printStackTrace();
    /* Create and send message using topic publisher */
    protected void writeMessage(String text) throws JMSException {
    TextMessage message = pubSession.createTextMessage();
    publisher.publish(message);
    /* Close the JMS connection */
    public void close() throws JMSException {
    connection.close();
    /* Run the Chat client */
    public static void main(String[] args) {
    try {
    Chat chat = new Chat();
    // Read from command line
    BufferedReader commandLine = new
    java.io.BufferedReader(new
    InputStreamReader(System.in));
    // Loop until the word "exit" is typed
    while (true) {
    String s = commandLine.readLine();
    if (s.equalsIgnoreCase("exit")) {
    chat.close(); // close down connection
    System.exit(0); // exit program
    } else {
    chat.writeMessage(s);
    } catch (Exception e) {
    e.printStackTrace();
    But at the line
    �TopicConnectionFactory conFactory =
    (TopicConnectionFactory) jndi.lookup("TopicConnectionFactory");�
    I got this exception:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at chat.Chat.<init>(Chat.java:24)
         at chat.Chat.main(Chat.java:94)
    I realize that the problem is in the jndi setup. But, the problem is that I do not know where to go now and what should I do. I do not know how can I get the jndi.properties file and where and how to put it.
    Please, kindly advise from your experience. I would appreciate clear steps to have this program running properly. Otherwise, if you do have a sample program that is already running, please provide it to me.

    Thank you for your prompt reply.
    I tried another example.
    package test;
    javax.jms.*;
    import javax.naming.*;
    public class SimpleTopicPublisher { /** * Main method. * * @param args the topic used by the example and, * optionally, the number of messages to send */
    public static void main(String[] args) {
    String topicName = null;
    Context jndiContext = null;
    TopicConnectionFactory topicConnectionFactory = null;
    TopicConnection topicConnection = null;
    TopicSession topicSession = null;
    Topic topic = null;
    TopicPublisher topicPublisher = null;
    TextMessage message = null;
    final int NUM_MSGS;
    // if ((args.length < 1) || (args.length > 2)) {
    // System.out.println("Usage: java " + "SimpleTopicPublisher " + "[]");
    // System.exit(1);
    topicName = new String("MyTopic");
    System.out.println("Topic name is " + topicName);
    if (args.length == 2) {
    NUM_MSGS = (new Integer(args[1])).intValue();
    } else {
    NUM_MSGS = 1;
    /* * Create a JNDI API InitialContext object if none exists * yet. */
    try {
    jndiContext = new InitialContext
    } catch (NamingException e) {
    System.out.println("Could not create JNDI API " + "context: " +
    e.toString());
    e.printStackTrace();
    System.exit(1);
    /* * Look up connection factory and topic. If either does * not exist, exit. */
    try {
    topicConnectionFactory = (TopicConnectionFactory) jndiContext.
    lookup("TopicConnectionFactory");
    topic = (Topic) jndiContext.lookup(topicName);
    } catch (NamingException e) {
    System.out.println("JNDI API lookup failed: " + e.toString());
    e.printStackTrace();
    System.exit(1);
    /* * Create connection. * Create session from connection; false means session is * not transacted. * Create publisher and text message. * Send messages, varying text slightly. * Finally, close connection. */
    try {
    topicConnection = topicConnectionFactory.createTopicConnection();
    topicSession = topicConnection.createTopicSession(false,
    Session.AUTO_ACKNOWLEDGE);
    topicPublisher = topicSession.createPublisher(topic);
    message = topicSession.createTextMessage();
    for (int i = 0; i < NUM_MSGS; i++) {
    message
    .setText("This is message " + (i + 1));
    System.out.println("Publishing message: " + message.getText());
    topicPublisher.publish(message);
    } catch (JMSException e) {
    System.out.println("Exception occurred: " + e.toString());
    } finally {
    if (topicConnection != null) {
    try {
    topicConnection.close();
    } catch (JMSException e) {}
    It is mentioned in SUN JMS tutorial that "When you use the J2EE SDK 1.3.1, your JMS provider is the SDK. " So I am using that and I did the follwoing:
    --start the J2EE server as follows:
    j2ee -verbose
    Then I created the adminstrated object:
    j2eeadmin -addJmsDestination MyTopic topic
    But still getting this error:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    So now where is the error?
    Thank you in advance

  • Error in Proxy---Urgent plz

    Hi,
    My scenario is File-Proxy.
    my source strcutrue is
    Header (0 to Unbounded)
    f1
    f2
    f3
    Item(0 to unbounded)
    f11
    f22
    here problem is i generated inbound proxy.But only one header and  one item coming .
    entire data is not coming ..
    Please provide me some sample coding for this for inbound proxy.
    Reg,
    Hem.

    Hi hem,
    First tell me if your are getting the correct message in XI when the file is picked up.  View this in transaction sxi_monitor -> inbound message -> payload.  If this message is correct, then copy it (right-click -> view source -> ctrla -> ctrlc).
    Now go on to your system in which you have your ABAP proxy.  Put a breakpoint (it might have to be an external breakpoint) in the beginning of your ABAP Proxy.
    Then go to transaction SXI_support
    -> Service Selection
    -> Proxy Inbound Processing
    -> execute
    -> enter the receiver interface and namespace
    -> unselect Generate Template Data
    -> select XML
    -> click execute
    -> delete the payload in the text editor and paste your payload (ctrl+v)
    -> execute
    Now look at your input structure and verify that it has all the data from XI.
    Yaghya
    Message was edited by:
            Yaghya Nana

  • Need help with itunes proxy, URGENT!!! please reply

    Hello, im currently living in boarding school, and the wifi, recures a proxy server, I got it, and now i can acces internet perfectly, I can do everything perfectly, but when i go into the itunes store and try to buy something, this is what comes up. "We can not complete yout Itunes store request, you must log in into the proxy server in order to confirm your request."
    so how do I sign into the proxy server,
    PLEASE HELP

    Hey,
    Try downloading and re-installing iTunes as described here:
    http://support.apple.com/kb/TS2388
    Jason

Maybe you are looking for

  • Illustrator shows BG error when importing ai files made in Flash

    Hello Everyone! I've been using Flash for a couple of years now... I use it mostly for designing fashion graphics (!!!). I know that Illustrator is excellect for creating artwork, but I am a big Flash fan and can't help it :) Of course, I have to use

  • Can my external hard drive be viewed with airport extreme

    looking to get an airport extreme to allow my mac air to use the wireless connection to link to it.  Is this doable?

  • Korean language issue in XI

    Hello y'all, In our file> XI> R/3 scenario, we found the local language coming in through our sender FTP adapter gets garbled. On further analysis, we found in SMLT that Korean package was not imported. We are looking at lang. disc to import the lang

  • Work flow Version Different in Q system

    Hi , Work flow Version in the development version 9 and  when transport  to quality it should be 16 , but in Q system version is activated for 4 . how can I change to 16 Version in Quality system .

  • NetStream.Publish.BadName

    For some reason my Internet connection between FME and FMS is not stable. When connection with my live stream is dropped I can't reconnect to FMS and I'm getting " NetStream.Publish.BadName" error. It is because previous session (project) exists for