Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3933950
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:39:35+00:00 2026-05-19T23:39:35+00:00

All in context of Tibco EMS 5.* and .NET API I’ve to work along

  • 0

All in context of Tibco EMS 5.* and .NET API

I’ve to work along existing model of message processing, in which in a loop:

  • connection is created / open
  • session is created / open
  • message consumer is created
  • receive method is called

if message != null then we consume it and either commit or rollback the transaction (on underlying session). System pulls every x sec in that model.

I’ve created a connection factory that assures that only new sessions are created (if the previous session is still in use). In that way system works on the same connection.

However, I’ve run into issue with pre-fetch as each Receive call (by .NET interface) returns one message and puts several (pre-fetch-1) to local queue.
So I should reuse the same session next time really in order to read messages that are already pulled.
I’ve put in wrappers to reuse the session & message consumer as long as there is something there (Receive won’t return null).
This approach kind of works, but it seems that I might have get null on Receive, even though there is still something fetched locally.
It also seems that as long as I’m on the same connection fetched messages will be marked as delivered (even if session is explicitly closed).

Would someone have any idea how to either open connection / session with pre-fetch = 1?
Or there is better solution?

Thanks in advance,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:39:36+00:00Added an answer on May 19, 2026 at 11:39 pm

    Workaround: turn-off prefetching on the queue level.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I'm making this context menus, which looks great in all major browsers, even
This is all in the context of a larger program, so Im going to
We all know to set canvas's context property like this: ctx.textBaseline = top; ctx.shadowColor
Title said it all. Some context: I got a search mechanism - search view,
First of all, the context of this question is: Cannot install psycopg2 on OSX
All, I have the following code: $context = stream_context_create(array( 'http' => array( 'timeout' =>
I'm catching exceptions in context managers, however I don't see all levels of reraised
I want to be able to match against all elements in a given context
First, a bit of context: web.xml: I match all /app/* requests to my dispatcher:
I'm using this code for get all news: List<aspnet_News> allNews = context.aspnet_News.OrderByDescending(i => i.NewsId).ToList();

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.