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 8171697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:32:24+00:00 2026-06-06T21:32:24+00:00

I make some tests of distributed JMS and I am currently stuck with the

  • 0

I make some tests of distributed JMS and I am currently stuck with the following issue.

I have two servers. The first one is JBoss 5.1 with JBoss Messaging 1.4.3, and the second one is JBoss 5.1 with two MDBs. One MDB is routing messages from queue A to B. The other is doing the opposite – routing from B to A. So the sum of the messages on the queues A and B should be constant. And it is as long as I shut down the servers properly.

But if I crash the process of one of the servers (using kill -9), I can observe message loss (not many but visible). I don’t understand why. It seems like it isn’t using XA after all.

I tried HSQLDB and Oracle as a persistence on JBM server, but the effect is the same.

I use JmsXA as ConnectionFactory.

Any ideas what is going on?

  • 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-06-06T21:32:25+00:00Added an answer on June 6, 2026 at 9:32 pm

    As I understand your question, you are attempting to coordinate XA transactions across multiple servers (JVMs) which requires that your servers be configured with JTS, and JBoss servers are typically configured for JTA only by default. Just to make sure we’re talking the same versions here, when I eyeball my console log on starting JBoss AS 5.1, it reports the following JBossTS version:

    08:46:59,678 INFO [TransactionManagerService] JBossTS Transaction
    Service (JTA version – tag:JBOSSTS_4_6_1_GA_CP07)

    Assuming that’s in the same general vicinity of the version you are running, you should review all the docs contained in the JBossTS documentation available in this download: jbossts-full-4.6.1.GA.zip. Specifically, look at the PDF titled JBossTS 4.6.0 Server Integration Guide, which amongst other things defines the different personalities of the Arjuna Transaction Manager as:

    JBossTS consists of a transaction engine, ArjunaCore, with multiple
    ‘personalities’ layered around it.

    JBossTS JTA provides a JTA 1.1
    compliant transaction manager for Java Enterprise Edition
    applications. Transaction scope is limited to a single JVM. This is
    suitable for use in applications that do not require transaction
    context propagation on business method calls between JVMs. For
    example, deployments in which only a single application server
    instance is used or where several such instances are used for load
    balancing only, with no transactional communication between them.

    JBossTS JTS provides CORBA based distributed transaction management
    that may be driven either though JTS native API or though the JTA
    interfaces. It is suitable for situations in which transaction context
    must span multiple JVMs, such as a Java EE application deployed on an
    application server cluster, or where interoperability is required for
    transactional business method calls between heterogeneous Java
    application servers, or Java and legacy applications written in
    another language with CORBA bindings.

    and also asserts:

    For transaction use cases involving multiple JVMs, JBossTS JTS is
    required.

    Also take a look at this proviso regarding JBoss Messaging XA Configuration. Make sure to follow the configuration directions outlined in the JTA docs in the section titled JBoss Messaging XA Recovery Configuration.

    That document provides a decent summary of what you need to do, but the details of installation and configuration of a standalone JBossTS instance are in the document titled JBoss Transactions 4.6.0 Installation Guide, while the replacement of the AS 5.1 JTA transaction services with JTS services is outlined in a document in the AS 5.1 distro itself in <jboss-home>\docs\examples\transactions\README.txt


    Having said all that, if there is any way you can implement your solution using one server, I suspect you will find that the preferable way to go.

    Cheers.

    //Nicholas

    P.S. Once you have JTS correctly installed, the console log will display something like this on startup:

    09:41:03,558 INFO [TransactionManagerService] JBossTS Transaction Service (**JTS version – tag:JBOSSTS_4_6_1_GA_CP07)**

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

Sidebar

Related Questions

I've finally decided to make some tests for my apps but I'm stuck on
i want to make some tests with the Oracle Business Intelligence Webservices. First i
I have trouble with MongoDB on Windows 7 (32 bit). I make some tests
I'm currently using the Graph API Explorer to make some tests. That's a good
For example I have make test # do other stuff 'make test' runs some
I did some tests about IList<T>.Aggregate() , but the answer does not make sense
I need to do some tests, and make DB out of the testing result.
Because I would like to make some tests with the libpcap and a small
I am trying to make some JUnit tests for my code. But the problem
I want to make some basic accessibility tests in RSpec (obviously, to be further

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.