JMS message, RMI calls and OPMN, is it possible?

Hi all,
sorry if this ask is OT but i'm not sure where the question would be pubblished.
I would send a JMS message to the default demoQueue, but i'm not be able to establish the connection.
if i use this url:
java.naming.provider.url=opmn:ormi://remotehost:6004/home
with the port specified into the file opmn.xml:
<port local="6101" remote="6201" request="6004"/>
i receve the error
AVVERTENZA: Error in obtaining server list from OPMN on host quark.pisa.exis.it:6101. Please verify that OPMN is running.
javax.naming.NameNotFoundException: java:comp/env/jms/ConnectionFactory not found
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at Sender.main(Sender.java:53)
instead if i use the url
java.naming.provider.url=ormi://remotehost:3204/home
with the rmi port obteined with opmnctl status -l
OC4J | home | 25380 | Alive | 734855204 | 61712 | 1193:02:~ | rmi:3204,jms:3704,ajp:3304
the program start e stay in wait without any message and terminate only with the keys combination CTRL+C.
Finally, i i try to use the url:
java.naming.provider.url=ormi://remotehost/home
i get the exception
java.net.ConnectException: Connection refused: connect
Can you help me?
Thanks a lot.
Alessandro
PS Obviusly i use this class: com.evermind.server.rmi.RMIInitialContextFactory.

Hi,
I discovered because i was not be able to connect: I used incorrect type library!
(i used 10.1.3 library for connect to 10.1.2 server; it seems to be not compatible, why?)
Now i have another problem. When the program arrive at this point:
// look up the ConnectionFactory
javax.jms.ConnectionFactory factory = (javax.jms.ConnectionFactory) ctx.lookup("jms/QueueConnectionFactory");
// create the connection
javax.jms.Connection connection = factory.createConnection();
it throwed the following exception:
Exception in thread "main" java.lang.NoSuchMethodError: javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection;
Any idea?
Thanks.
Alessandro

Similar Messages

  • My mother contacts disappear when she sends a message or call someone, how is this possible and how to fix it?

    My mother contacts disappear when she sends a message or call someone, how is this possible and how to fix it?

    Technically the limit of 4Gb per folder should have been removed in a recent patch. Personally I an unconvinced as the developers have said so twice before and something else arose to bite people at 4Gb. So the limit probably does not exist anymore and moving mail and compacting will fix it without data loss if it occurs as recent issues have been about displaying mail after the 4Gb point, not storing it.
    Use the Ctrl and Shift keys in conjunction with your mouse to make multiple selections.
    click followed by Shift+ Click selects everything between the two clicks, including the items clicked.
    Holding the Ctrl key while clicking allows you to select or deselect mail to either fine turn the list from shift clicking or to make one of your own.
    Ctrl +A selects everything in the list from the current selection to the end.
    One option is create an important folder and move your important stuff to it then ctrl +A the whole remaining inbox.

  • If you lose your phone, will your unread messages, missed calls and contacts transfer

    I don't know why it's such a hard question to find the answer to, but I can't figure it out. If you've lost your phone, when you get your number put on a new phone, will the:
    Contacts transfer?
    Will you have your un-read messages?
    Will you see your missed calls?
    Will you have your voicemails?
    Please, someone help me out here

    BuckarooChaser wrote:
    I don't know why it's such a hard question to find the answer to, but I can't figure it out. If you've lost your phone, when you get your number put on a new phone, will the:
    Contacts transfer? If you had them backed up, i.e. backup assistant, Google or iCloud.
    Will you have your un-read messages? As long as they had not been delivered to your phone yet(for texts). If they had been delivered to your phone but you just hadn't read them, then no. For emails, as long as they have not been deleted from the server.
    Will you see your missed calls? Don't really think so.
    Will you have your voicemails? Depends on what kind of phone you had and will have. For example an iPhone utilizes a different voicemail system than any other phone(of course it does, its an Apple product) and voicemails will not transfer to/from an iPhone to any other type of device. Any other phone, they should.
    Please, someone help me out here
    Edit: Verizon only tries to deliver text messages for 5 days. If you have not had a phone active on your line for more than that length of time, you will start to lose some of your "un-read" messages.

  • WAS and JMS Message Server

    Does WAS provide a JMS messaging server (as distinct to just the JMS J2EE interface)? If I want to use WAS and JMS do I need to provide my own server or is it part of WAS?

    Hi Rick,
    Yes, SAP Web AS comes with a JMS messaging server (called JMS provider). For more information please refer to the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/a3/63af1bbf09469fa1615c05f0daff6f/frameset.htm">Development Manual</a> or <a href="http://help.sap.com/saphelp_nw04/helpdata/en/90/57849e5e3e45d784afc4e3bfa8136f/frameset.htm">Administration Manual</a>
    Hope that helps!
    Vladimir

  • Kick off a business process with JMS message

    I'm a newbie with a job that's way over my head and I'm thouroughly confused on
    the logic involved with kicking off a business process (workflow) through the
    reciept of a JMS message. The docs say it can be done. I have a business process
    in one project folder of an enterprise app, its start node is a channel subscription.
    Can I somehow send a JMS message directly to the business process? (Send a message
    NOT from within the weblogic environment, but from outside) I have created a
    Message Driven bean in a seperate project folder of the same application as the
    business process. From an outside client, I think I might need to invoke the
    MDB with a JMS message, then call the business process from there. Is this totally
    off-base? What do event generators have to do with any of this?
    Please help.

    Yes, you use the event generator.
    Open up the Weblogic Integration console, click on Event Generators.
    Add a JMS Event generator that listens to the queue you are interested
    in, and then select the channel that your process has subscribed to.
    Lisa wrote:
    I'm a newbie with a job that's way over my head and I'm thouroughly confused on
    the logic involved with kicking off a business process (workflow) through the
    reciept of a JMS message. The docs say it can be done. I have a business process
    in one project folder of an enterprise app, its start node is a channel subscription.
    Can I somehow send a JMS message directly to the business process? (Send a message
    NOT from within the weblogic environment, but from outside) I have created a
    Message Driven bean in a seperate project folder of the same application as the
    business process. From an outside client, I think I might need to invoke the
    MDB with a JMS message, then call the business process from there. Is this totally
    off-base? What do event generators have to do with any of this?
    Please help.

  • Why are my JMS messages automatically dequeued without consumer?

    I created a simple in-memory JMS queue.
    Now I wrote a BPEL process which writes (successfully ?) JMS message to this JMS queue.
    Another consuming BPEL process is deployed but not started.
    However I cannot see them in MBean JMSDestinationResource on the OC4J Enterprise Manager Web page.
    When I tell the AppServer to browse all currently existing (and waiting) JMS message then there are none.
    However the statistics for this queue show 17 messagesEnqueued and 17 messagesDequeued Messages.
    It seems to me that my JMS messages are automatically dequeued. But why?
    Are in-memory JMS messages not persistent (as long as the AppServer is up and running) ?
    Do I have to set a certain preference to let JMS live in the Queue as long as they are not retrieved by another BPEL process?
    Furthermore I tried the following:
    I started a consuming BPEL process. Yes, he is waiting at the JMS adapter until a new JMS message arrive.
    Then I send from the first BPEL process a JMS message. But even when consumption is possible the JMS message is dequeued and not forwarded to the consumer.
    Why?
    Peter

    It seems to me that my JMS messages are automatically dequeued. But why?
    This is how BPEL PM is designed; The activation-agent is running that belongs to the BPEL process. When a message arrives in a Queue or Table or File it is read into the dehydration store. Then an instance of the appropriate BPEL process is started. This functionality makes the system more stabel and reliable when something is goingin wrong in quees/files/db or any adapter that is used for polling.Are in-memory JMS messages not persistent (as long as the AppServer is up and running) ?
    As you desribed: in-memory messages are only persistent in memory, if you restart the server, the messages are gone.Do I have to set a certain preference to let JMS live in the Queue as long as they are not retrieved by another BPEL process?
    No you can not.Marc
    http://orasoa.blogspot.com

  • How to stop and start MDBs to listen for JMS messages

    Hello! This might be more of an architecture question rather than a technical questing, but I post it here, in the lack of a better place...
    For several years I have been using Webster and Webster MQ to send messages back and forth to clients. The architecture for the middleware platform has been designed around the functionality of ListenerPorts. Listenerports is a Webster functionality that let you "stop" and start to listen to JMS messages for a given MDB either by admin console, or by JMX.
    The arhitecture we used was something like this :
    1.Client sends a persistent message to a queue. (order)
    2. An MDB pics up the order message, calls a SessionBean that "fronts" the IIOP back end system.
    This is quite "out of the box" architecture, but we used the Listenerports to solve a stability problem for our back end system.
    The backEnd system was quite unstable, so the EJB threw an exception (typically because of timeout or connection refused) back to the MDB.
    The Listenerport was "defined" to handle 3 errors before stopping, so the MDB resent the message twice before the listenerport automatically stopped. The nice thing about this feature was that the client could continue to send orders, and was not bothered when the back end system was down.
    When the backEnd system was up and running, we could start the listenerport and it was all back to normal state. We even had a start script that checked the state of the listenerport every 30 minute, and started it automatically if it was stopped, making the admin task of starting the MDB unnecessary..
    Now.. Why am I telling this story..
    I would like to know how this could be done using "clean" J2EE technologies..That is..Not using any technology that is not portable..
    I`m playing with glassfish at home, and it struck me that there is nothing in the J2EE spec that defines the functionality described above ? Am i missing something ?
    I Do not want to stop My application because the back end system is down? That is the only way (i know of) that i can "stop" to listen for messages..
    I can put all the messages on an error queue when the backbend system is down, but that would lead to more code just to handle the error messages. Maybe the easiest way to solve this is to "move" (programmatically) all messages from the error queue over to the "standard" queue every XX minute, but somehow that sounds "wrong"
    Can anyone give me some advice to how this problem situation should be solved ? I`m interested in the solution both from an architectural perspective and from a more technical perspective..
    Best regards
    Hans-Jacob Melby

    Breakpoints, whether normal or conditional, are just meant for debugging of your code.  I had the sense from your question that the pausing you want to do is a part of normal operation of your code.  I would NOT recommend using a breakpoint for that situation.  It would bring up the block diagram showing the breakpoint when it occurs.  A user besides the programmer would not know what to do in that case.
     Yes, both the inner and outer loops would have shift registers.
    Putting a case structure with a small while loop inside the "Pausing Case" is doable.  It just depends on what you are doing or waiting for while the program operation is "paused".

  • EntityManager.persist and JMS messaging issues?

    Hi everyone:
    I am seeing a problem that I could not figure out a solution. Can anyone shed me some lights on this?
    I have a EJB method which basically does 2 things: 1). persists a record into a database table using EntityManager 2). sends out a message to a JMS topic. So it is th like:
    myMethod() {
    entityManager.persist(myObj);
    notifier.notify(...);
    The client will then listen to the JMS topic and read the new record from database. Usually this works pretty well, but sometimes, the client cannot find the new record from database at all and a few seconds later it can. It is as if there is a delay between the JMS messaging and database persistence - somehow the client receives the message first and at this time the record is not really saved into database yet!
    Can anyone explain to me what is going on here? What kind of solutions might help to resolve this?
    BTW, I am using the Hibernate EntityManager. My app server is Glassfish.
    Thanks a lot for your help
    jmao

    You need to use flush method to persist the value before you calling notifier.notify(...);
    below code should works
    myMethod() {
    entityManager.persist(myObj);
    *entityManager.flush();</<br />
    notifier.notify(...);
    }

  • Why does my 3G iPhone no longer rings nor vibrates when receiving calls and text messages?

    Why does my 3G iPhone no longer rings nor vibrates when receiving calls and text messages?
    During a two weeks process, little by little I notice my phoe doesn't ring when I get a phone call.  So Far I have missed 22 calls that I am aware of.  Moreover, the phone does not alert me when I get a text message.  Sometimes I receive notice the next day that I received a call or a text message. 

    Follow the basic troubleshooting steps outlined in the user guide... reset, restore from backup, restore as new.

  • IPhone 4 iOS 5.0.1 stops receiving calls and text messages

    Hi all,
    My iPhone 4 (iOS 5.0.1) suddenly stopped receiving calls and text messages. However, I'm still able to send them.
    The workaround for fixing this issue is to make an hard reset to the iPhone.
    This only occured with 5.0.1 version. It's very annoying because I'm not able to know if it's working or not (I can only suppose that it's not working when I'm a long period without receiving calls/messages)
    Do you know how to solve this ?
    Thanks in advance!

    JasminGomez wrote:
    I already hate iphones and I'm reconsidering my blackberry again because at least that one didn't fail me like this one does!
    First, who really cares what you do?  I certainly don't, and I doubt the vast majority of users on this forum don't either.  Ridiculous statements like that just make you look stupid.
    Second, this is a user to user technical support forum.  I saw a lot of whine here, not a question.  What is your technical support question?

  • My iphone5 stopped receiving calls and text messages then a message said my sim is locked what can I do?

    My iphone5 stopped receiving calls and text messages then a message said my sim is locked what can I do?

    You can call you're carrier and have them unlock it.

  • IPhone fails receiving calls and text messages

    Hi everyone, here is my problem.
    I have an iPhone 4 32GB. It was on iOs 5.1 (always worked perfectly) untill few days ago I have upgraded to iOs 7.1.
    The problem after the upgrade is that phone calls or sms messages fails to be received. Strange thing is I can receive at times calls from cellphones, but I don't receive calls from land line numbers. And text messages arrive all at once after hours.
    I have restored the phone in DFU mode twice, set up as new phone , tried a hard reset, network reset... nothing worked. It still fails to receive phone calls and sms messages.
    Before you ask, the "don't disturb" is disabled.
    I live in Italy and have a contract with TIM, i spoke with their cistomer service and according to them there's nothing more i can do on my end.
    Any idea?
    Thanks

    Hey G.Alby,
    Thanks for using Apple Support Communities.
    There are some steps in both of these article you can still try to resolve these issues.
    iPhone: Troubleshooting issues making or receiving calls
    http://support.apple.com/kb/TS3406
    Ensure that your software is up to date:
    Check for a carrier settings update.
    Check for an iOS software update.
    Note: Some updates may require a Wi-Fi connection.
    If the iPhone has a SIM card, reseat the SIM card.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Have a nice day,
    Mario

  • Receiving calls and text messages but it wont make tjem

    hello, my iPhone 4 is receiving calls and text messages but it wont make them , it was fine few moments ago , i have tried hard rest , sim removal, resetting network settings , but nothing is happening !

    Hey G.Alby,
    Thanks for using Apple Support Communities.
    There are some steps in both of these article you can still try to resolve these issues.
    iPhone: Troubleshooting issues making or receiving calls
    http://support.apple.com/kb/TS3406
    Ensure that your software is up to date:
    Check for a carrier settings update.
    Check for an iOS software update.
    Note: Some updates may require a Wi-Fi connection.
    If the iPhone has a SIM card, reseat the SIM card.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Have a nice day,
    Mario

  • Notifications for calls and text messages ONLY (turning off email and Facebook)

    Anyone one know how I can be notified for only call and text messages - How I can turn off email and Facebook notifications only?

    Does this help?
    http://crackberry.com/blackberry-101-how-set-and-edit-your-sound-profiles
    http://crackberry.com/blackberry-101-creating-and-editing-profiles-and-notifications
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • Lost (and found) JMS - messages

              Using WLS 6.1 and have experienced that JMS messages has not been delivered to
              its consumer correctly. We are interested in any suggestions to what has happend,
              what can be done to avoid the problem in the future, or perhaps how we can find
              out more about the problem.
              We have a message driven bean A which sends messages to the queue Q, of which
              the message driven bean B is the only consumer.
              What we recently have experienced is that some of the messages delivered by A
              to Q never are delivered to B. But the messages seems to be persisted correctly,
              because after a restart they reappear!
              Following is a more detailed description of the scenario:
              1. A message is sendt with DeliveryMode=PERSISTENT and TimeToLive=0. QueueSender.send
              is invoked and returns normally.
              2. The consumers never gets the message (B.onMessage i never invoked with this
              message).
              3. Point 1-2 is repeated for 13 different messages over a period when ~100 similar
              messages are delivered normally.
              4. The server is then restarted.
              5. In the starup log it is indicated that 44 records are found in the JMSStore.
              6. When the server restarts, the "lost" messages gets delivered to B.
              After the server restart we have not experienced the problem again.
              Logs does not show anything unusual about the previous restart.
              Other details:
              There is always exatly 1 instance of A running, and 5-20 instances of B. A implements
              and uses a pool of javax.jms.XAQueueSession instances, which shares a single instance
              of javax.jms.XAQueueConnection. The aknowledge-mode for B is "Auto-aknowledge".
              We're using Weblogic Server 6.1.3.0 / Red Hat Linux 7.3.
              Any help on this problem is appreciated!
              

              I believe we've seen just the behaviour you describe on 6.1 SP2, but only on a
              multi-cpu box (Solaris), and only under load. We can't reproduce the problem reliably,
              and get no error messages/warnings anywhere, so very little to send to customer
              support; by the time we notice this, the problem's long passed, so a thread dump's
              of no use.
              We're going to try and see how SP5 (which has loads of JMS fixes) pans out.
              But if you find anything out, could you post here?
              simon.
              "Harald Stendal" <[email protected]> wrote:
              >
              >Using WLS 6.1 and have experienced that JMS messages has not been delivered
              >to
              >its consumer correctly. We are interested in any suggestions to what
              >has happend,
              >what can be done to avoid the problem in the future, or perhaps how we
              >can find
              >out more about the problem.
              >
              >We have a message driven bean A which sends messages to the queue Q,
              >of which
              >the message driven bean B is the only consumer.
              >What we recently have experienced is that some of the messages delivered
              >by A
              >to Q never are delivered to B. But the messages seems to be persisted
              >correctly,
              >because after a restart they reappear!
              >
              >Following is a more detailed description of the scenario:
              >
              >1. A message is sendt with DeliveryMode=PERSISTENT and TimeToLive=0.
              >QueueSender.send
              >is invoked and returns normally.
              >2. The consumers never gets the message (B.onMessage i never invoked
              >with this
              >message).
              >3. Point 1-2 is repeated for 13 different messages over a period when
              >~100 similar
              >messages are delivered normally.
              >4. The server is then restarted.
              >5. In the starup log it is indicated that 44 records are found in the
              >JMSStore.
              >6. When the server restarts, the "lost" messages gets delivered to B.
              >
              >After the server restart we have not experienced the problem again.
              >
              >Logs does not show anything unusual about the previous restart.
              >
              >Other details:
              >There is always exatly 1 instance of A running, and 5-20 instances of
              >B. A implements
              >and uses a pool of javax.jms.XAQueueSession instances, which shares a
              >single instance
              >of javax.jms.XAQueueConnection. The aknowledge-mode for B is "Auto-aknowledge".
              >
              >We're using Weblogic Server 6.1.3.0 / Red Hat Linux 7.3.
              >
              >Any help on this problem is appreciated!
              >
              

Maybe you are looking for

  • Keyword Tags Won't Delete

    I am using Lightroom 1.4.1 on a Vista platform.<br /><br />When I delete keyword tags they disappear temporarily, only to reappear later. I have tried the Purge Unused Keywords function and I have tried to right click the keyword and select Delete. I

  • Windows 7 Home Premium 64bit in Lenovo K300 5316 1BU

    I would like to know the step by step procedure for being able to boot from my USB External Hard Drive. Thank you in advance, MateusMan

  • JAXB duplicates database records in the output XML file

    I am trying to export a database through XML file using JAXB. But i get an XML file having my records with the @XMLElement name i gave it (SMS_Database) and also another one following it with <list/> as the RootElement name. I don't know where it's c

  • Inserting & symbol to table through procedure

    I want to insert a data with & symbol into a table through the procedure. Is it possible. through the console i put set define off. it works fine on console. but in plsql i am unable to use set commands since it is a console command. please advice.

  • Mobile Drop-Down Menu

    By now we all know that we can put a Vertical Menu in an Accordion Widget and get a drop-down menu for our Phone layouts. But! there is trouble with this method when the phone layout is one long page and the links are to Anchors on the same page. Whe