E-mail template: sustainable configuration for the subscription

Create a topic
Identifier topicIdentifier = messagingSession.createTopic("my-topic");

Create a subscribers for the topic
Subscriber subscriber 1 = messagingSession.subscribe (topicIdentifier, TopicSubscriptionConfiguration
.newDurableConfiguration ('sustainable'));
Subscriber subscriber2 = messagingSession.subscribe (topicIdentifier, TopicSubscriptionConfiguration
.newDurableConfiguration ('sustainable'));

messagingSession.publishMessage (topicIdentifier, "" + 1);

* / / 1 Subscriber Gets the message "1."
System.out.println ("s1:" + (String) subscriber1.getMessage ());



* / / Try to read the messages in the topic and crashes? *
System.out.println ("s2:" + (String) subscriber2.getMessage ());


However purchase directly such as messagingSession.subscribe (topicIdentifier) works very well for me.
I'm missing something here?
Help, please.

Hello Manu,

Each subject 'sustainable' subscription requires a unique name. (Just like JMS).

Create a subscribers for the topic
Subscriber subscriber 1 = messagingSession.subscribe (topicIdentifier, TopicSubscriptionConfiguration
.newDurableConfiguration("*durable-1*"));

Subscriber subscriber2 = messagingSession.subscribe (topicIdentifier, TopicSubscriptionConfiguration
.newDurableConfiguration("*durable-2*"));

Currently, you have two subscribers using the same durable topic subscription. This is why the first Subscriber reads the message and second blocks a Subscriber waits for the next message.

Hope this helps

-Brian

PS: We probably need throw an exception when you attempt to save several durable subscribers on a single topic subscription.

Tags: Fusion Middleware

Similar Questions

  • Thunderbird 38.3.0: No writable calendars are configured for the invitations with the provider for Google Calendar 1.0.4

    Hello

    I searched many hours today in the internet and your forums, but it seems that this problem is not solved yet:

    No writable calendars are configured for the invitations with the provider for Google Calendar.

    My Thunderbird is 38.3.0 and the provider for Google Calendar 1.0.4.

    I put calendar.google.enableEmailInvitations; true but it did not help. I also tried [email protected]... @googlemail.com. Calendar works fine, it syncs, I see all the entries etc. But I can't accept invitations even IF she must have write access.

    What can I do? Is there a solution for this?

    Thank you!
    Daniel

    Use CalDAV here to access Google Calendar via lightning. I have no experience with the add-on of the provider.
    In any case, it is my understanding that you must assign an e-mail address to a calendar in order to be able to accept the invitations for this calendar. I see that in your screenshot.
    You can try to remove the Google calendar in lightning and re-create it. Given that all the data is on the server nothing will get lost.
    Or you may want to try CalDAV.
    https://blog.Mozilla.org/calendar/2013/09/Google-is-changing-the-location-URL-of-their-CalDAV-calendars/

  • Configuration for the Exchange Server issue

    I have a question on an Exchange Server, I noticed that one of my Exchange servers has 4 partitions spanning 2 hard drives and a parition of M which is 55GO, but that does not appear in disk management. M partition contains the domain folder, the mailbox databases are on the D: drive. How will I know how much I really voicemails of disk space? And this configuration is supported?

    Chris

    The "M" 'virtual' drive that resides on Exchange (55 additional GB, its representation is not just messages of real exchange located on who will drive you have configured for the mail store).

    Another pattern on this drive "M":

    The default for this reader is the reader of 'm', but if you manually created a "M" drive before installing Exchange will change to another drive available. It is now recommended to 'disable' this disc.

    Run the "Best Practices Analyzer Tool" on the Exchange Server and it will find any question you should change. To turn off virtual drive is one he'll find and indicate what registry entry to change:

    http://www.Microsoft.com/technet/prodtechnol/exchange/downloads/2003/analyzers/default.mspx

  • I paid for the subscription of three years last year and I was not able to use the progam... currently I moved I don't know if I can find my serial number, even if I can have pilled upward through my bank statements

    last year, I paid for the subscription of three years, I have used or been able to use the program, even if it was paid because I moved from the place where I myself was when I bought the program and I've lost my serial number, or can I get a refund because she was taken out of my account.

    Hi christineg24805464,

    You can check under your active subscription account: Adobe ID

    Serial key is not required to activate the subscription.

    It can be activated using your e-mail address with which you bought the subscription and the Adobe password.

    Kind regards

    Claes

  • How can I remove guest account configured for the administrator?

    I tried to add a second user account on my computer and I blew it. My main user account is now defined as a standard account and no matter how many times I click the button to set it as an administrator account that he will not save these settings. The guest account (which I want to delete) is defined as an administrator account and it wont let me save it as a standard account, because there is no other administrator accounts. Even when I try to create a new account just to see what he would do he tells me that he cannot accept some of the characters that I use for the name of the account, even if it's just 5 letters, so I can't even create the new account.

    I have no idea what's going on with my user settings, but I want to just that everything back to how it was before... with a single main account configured for the administrator.

    Can someone help me?

    I bet that your administrator account is an admin account and your guest account is a regular account. Buttons that you look at don't tell you the State of the special consideration, but the change that you can apply. In other words, looking at the administrator account, the 'Administrator' button is highlighted not because it's already an admin account!

    Now you should do this, in the following order:
    1. Create a CD to repair Windows via Control Panel / backup and restore. People like you who make their own PC maintenance need.
    2. Test the CD.
    3. Create, test, and document an admin account to spare, even you have a spare House key.
    4. Disable the guest account.
  • Paid for the subscription and is written in LK - trial version

    Paid for the subscription and is written in LK - trial version
    Number: 14.03.2016

    [personal information... [Mod - https://forums.adobe.com/docs/DOC-3731]

    [This is an open forum, not the Adobe support, please do not post personal information]

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • Invalid configuration for the device 3

    Hi all

    I have set up a lab nested with three hosts esxi and two warehouses of data connected with the Microsoft iscsi target server. I know nested vm is not supported, but I'm trying to implement this workshop because I support a real VMware environment and I wish I could test some things before I break anything, so it's important. I get this error when you try to create a virtual machine "invalid configuration for the device 3.  Someone knows how can I know where is the problem?

    Thank you

    I think I can find the answer, it seems that it could be a windows problem causing data corruption. Somehow I created a VM but get all kinds of error trying to create an another VM.  Iscsi targets set up using windows server 2012 and it seems that there is a fix from Microsoft below which deals with corruption LUNs in windows 2012.  I have not yet tested, but this seems to be the right direction. http://support.Microsoft.com/kb/2908783

  • Why can I not use office (trial expired) even if I paid for the subscription?

    I just bought the subscription student and teacher a year ago 10 minutes, and when I open Photoshop and Flash it does not detect that I've already paid for the subscription (trial has already expired). Any help would be appreciated, I'm sorry if this has already been posted. I have not received an email confirming my purchase and I signed as long as the same ID adobe like when I paid for the subscription.

    Hello

    I can't pull the top and recent details of the order with the email address used to log in to the forums. Could you help me with the order number, I can check in the system for you.

    ^ Ani

  • paid for the subscription, but Muse CC does not work, he asks me the serial number

    paid for the subscription, but Muse CC does not work, he asks me the serial number, any help?

    Hello

    Depending on your operating system, please try the following steps

    Windows

    • Click on the start"" menu. Select "All programs" and then "accessories."
    • Right click on "Notepad" and select "run as Administrator"
    • Click "Continue" on the "Windows needs your permission" dialog box
    • When Notepad opens, click file, and then select open
    • In the file name field, type the following text:
    • C:\Windows\System32\Drivers\etc\hosts
    • If all of the entries in the host file include keywords such as "adobe", remove these entries. These are used for the purchase of licenses Adobe.
    • From the menu, select 'file', 'save' after changing
    • Restart the Muse

    Macintosh

    • Click the "Finder". Select the folder "Applications".
    • Open the "Utilities" folder and select "Terminal".
    • Type the following command:
    • sudo nano/etc/hosts
    • Enter the password associated with the user of the OS when prompted
    • If all of the entries in the host file include keywords such as "adobe", remove these entries. These are used for the purchase of licenses Adobe.
    • Press CTRL + o to save the file
    • Press Ctrl + x to close the file
    • Restart the Muse

    Let me know the result

  • OfficeJet Pro 8500: Officejet Pro 8500 A910 - unable to access configuration for the network folder screen.

    I can't access my webpage "network folder Setup.

    I can access my page main printer very well using the IP of the printer.   I click on Scan up fine, I then click on "configuration of the network folder" and it tries to load and then goes to a screen "ERR_CONNECTION_TIMED_OUT".

    He warned me the first time that he has been using HTTPS and I approved that.  I currently records on my printer set up awhile back and they work fine but must modify and add a little more.

    I tried multiple computers and devices with the same results.

    Thank you

    Chris Gaines

    MALVERN, AR

    Hello @Cgaines78,

    Thanks for dropping by the HP's Support Forums! I see that you run into issues trying to set up a folder network for your HP Officejet 8500 A910.

    Please continue troubleshooting here: scan to a computer, the e-mail, the device memory or the network folder

    This aid? You are now able to set up a network folder?

    Let me know the results. If this resolves the problem please let others know to mark this message as "accept as Solution".  Just say thank you, please click the ' Thumbs Up ' button. If you need more assistance let me know and I will gladly do whatever I can to help.

  • Configuration for the Extension of the airport by using ' 09 Extreme

    My Airport Extreme Base Station, model A1354, does not offer adequate coverage of my house. Instead of buying a Netgear N600 Extender, I bought an Airport Express, model A1382, to replace the base station with the intention of using the 1354 as expansion connected wireless station.  People at OKC Apple store assured me it is possible, but without knowing how. They said that I could depend on the support line Apple help me configure this system.  So... "' Help me please.

    (a) should what camera I use for the base station? The new device extreme Express or 2009?

    (b) should what steps I take to the rendering system a full-coverage protected WEP?

    (a) should what camera I use for the base station? The new device extreme Express or 2009?

    For your 'main' base station, one directly connected to the Internet by Ethernet modem, I suggest that you use your older AirPort Extreme Base Station, and then use the new Airport Express to extend.

    (b) should what steps I take to the rendering system a full-coverage protected WEP?

    WEP is an outdated wireless security method and has practically no value. Are you sure this is what you want or can go you with the safer: WPA2 for your Wi - Fi network?

  • How can I change the configuration for the output channels analog on a PXI-6704?

    I can't seem to understand how to access the configuration of the channels to the outputs analog (channel 33 and 35) for PXI-6704.

    This piece of test equipment is out of tolerance and must be calibrated.

    I have followed the procedure of calibration http://www.ni.com/pdf/manuals/374081b.pdf, but am getting hung up on step 8, where it is said to repeat steps 4-7 when changing the _cal_ao_current_offset. I can't figure out how to open this channel because it is not listed as a physical channel for step 5.

    I'm using Labview 7.1

    Thank you

    Hello! What you need to do is to add 'Internal channels' to your list of channels, so you can choose the _cal_ao_current_offset or _cal_ao_voltage_offset.  This is done through the drop-down list channel right click and select "I/o name of screening...". ».  There will be a check box that says 'Internal channels' and will provide you with all available internal channels to enter your vi Create Channel.  I have attached some photos illustrating how to do. See you soon!

  • CPL configuration for the handling of source on VCS - E

    Hi all
    When we tried to have a video call with an external company on the VCS - E, the address IP of CUCM appear in the distant field rather end when making external calls.

    It occurs because the SIP URI field on the sx device interface has completed our IP CUCM ( [email protected]/ * /)

    We are discussing with the TAC engineer, this problem can be solved by making one of these options below
    • 1-) field of sets for the CUCM so the field will not appear the IP address.
    • 2-) save endpoint on the VCS.
    • 3-) script on CUCM to change the SIP header and standardization for more details you can check out the link below:
    • 4-) - write scripts CPL on the VCS.
    • According to above choice, the only way to solve this problem for us applies a CPL
    • as much as I did research it is also not possible to change the source with the CPL on VCS - E. is it good?

    anyone can share me a CPL configuration for this manipulation? What I would do is this show get [email protected] / * / instead of [email protected] / * / address.

    [email protected]/ * / > [email protected] / * /

    our topology is device SX > CUCM > VCS - C > VCS-E > Internet

    VCS version is X8.7.1

    I would send me a CPL config for it.

    Thanks in advance

    Halit

    Can you provide a copy of your rules of research of VCS and a search for the call history failed.

  • Using configuration for the 2nd link of lan to lan vpn

    Hello

    Successfully, I configured a connection of lan to lan vpn between two offices. I try to add another link to a 3rd office to my office at home, but have some difficulty. I have attached my setup and hope someone can help me solve my problem. Right now I have a working vpn to the 172.16.0.0/24 network and putting in place the link to 172.16.3.0/24 so. For the new vpn connection, I can ping the external interfaces, but can't ping anything in-house.

    Thanks for your time and help,

    Jason

    Jason

    There is a major mistake that's easy to fix. You have successfully created a second instance of the encryption card to create a VPN tunnel for the second site. But as currently configured two instances of the encryption card use the same access list:

    1 ipsec-isakmp crypto map clientmap

    match address 100

    5 ipsec-isakmp crypto map clientmap

    match address 100

    But each session/tunnel VPN needs its own access list. So, I suggest that you make the following changes:

    5 ipsec-isakmp crypto map clientmap

    match address 101

    no access list 100

    access-list 100 permit ip 192.168.0.0 0.0.0.255 172.16.0.0 0.0.0.255

    access-list 101 permit ip 192.168.0.0 0.0.0.255 172.16.3.0 0.0.0.255

    This provides a list of separate for each session/tunnel access and should solve this problem. Try it and tell us the result.

    HTH

    Rick

  • Access Configuration for the Windows 7 system

    How can I get to the configuration of the system from the control panel in windows 7?

    Thanks for posting your question on the Microsoft Community.

    To start the configuration of the system = button start the SSPE and type "SystemConfiguration.

    It will be the first to come programt.

    To view your information & system properties on your desktop / laptop =.

    Press start - right click computer downstairs. properties

    I hope this helps, please feel free to post back here or start a new question.

    Thank you very much

    Francis.

Maybe you are looking for