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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:06:16+00:00 2026-05-27T06:06:16+00:00

So I am working on migration to JBoss7 … Know I am encountering bunch

  • 0

So I am working on migration to JBoss7 … Know I am encountering bunch of problems related to my XML (as expected). First was the

<acknowledge-mode>Auto-acknowledge</acknowledge-mode>

which was resolved from this thread

Now I am getting:

Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[39,10]
Message: Unexpected element 'message-driven-destination' encountered
        at org.jboss.metadat a.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)

This is due to my xml containing:

<message-driven-destination>
        <destination-type>javax.jms.Queue</destination-type>
        <subscription-durability>Durable</subscription-durability>
</message-driven-destination>

But I cant figure out how should I properly set up the destination-type.

The full ejb-jar.xml that I have as follow:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar >

   <description><![CDATA[Message Driven Bean for processing subscription.]]></description>
   <display-name>EJB Bean</display-name>

   <enterprise-beans>

  <!-- Message Driven Beans -->
  <message-driven >
     <description><![CDATA[Bean for processing subscription.]]></description>
     <display-name>EJB Subscription Bean</display-name>
     <ejb-name>EJBSubscriptionBean</ejb-name>
     <ejb-class>com.package.bean.EJBSubscriptionBean</ejb-class>
     <transaction-type>Container</transaction-type>

     <!-- To work with JBoss7 -->
     <!-- <acknowledge-mode>Auto-acknowledge</acknowledge-mode> -->

     <activation-config>
        <activation-config-property>
          <activation-config-property-name>acknowledgeMode</activation-config-property-name>
          <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
        </activation-config-property>
     </activation-config>

    <!-- -->

     <message-driven-destination>
        <destination-type>javax.jms.Queue</destination-type>
        <subscription-durability>Durable</subscription-durability>
     </message-driven-destination>

  </message-driven>
   <message-driven >
     <description><![CDATA[Bean for processing refunds.]]></description>
     <display-name>E Refund Bean</display-name>
     <ejb-name>EJBRefundBean</ejb-name>
     <ejb-class>com.package.bean.EJBRefundBean</ejb-class>
     <transaction-type>Container</transaction-type>

     <!-- To work with JBoss7 -->
     <!-- <acknowledge-mode>Auto-acknowledge</acknowledge-mode> -->

     <activation-config>
        <activation-config-property>
          <activation-config-property-name>acknowledgeMode</activation-config-property-name>
          <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
        </activation-config-property>
     </activation-config>


     <message-driven-destination>
        <destination-type>javax.jms.Queue</destination-type>
        <subscription-durability>Durable</subscription-durability>
     </message-driven-destination>


  </enterprise-beans>
</ejb-jar>

Thanks for your help 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-27T06:06:17+00:00Added an answer on May 27, 2026 at 6:06 am

    I’ve changed the ejb-jar.xml entirely to just:

    <!--?xml version="1.0"?-->  
    <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"  
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">  
      <interceptors>  
        <interceptor>  
          <interceptor-class>com.package.bean.EJBSubscriptionBean</interceptor-class>  
        </interceptor>  
        <interceptor>  
          <interceptor-class>com.package.bean.EJBRefundBean</interceptor-class>  
        </interceptor>  
      </interceptors>  
    
      <assembly-descriptor>  
        <interceptor-binding>  
          <ejb-name>EJBSubscriptionBean</ejb-name>  
          <interceptor-class>com.package.bean.EJBSubscriptionBean</interceptor-class>  
        </interceptor-binding>  
        <interceptor-binding>  
          <ejb-name>EJBRefundBean</ejb-name>  
          <interceptor-class>com.package.bean.EJBRefundBean</interceptor-class>  
        </interceptor-binding>  
      </assembly-descriptor>  
    </ejb-jar> 
    

    and add the settings through Annotations on the Beans themselves:

        //JBoss 7 / JDK 6  / EJB3 Annotations
    @MessageDriven(activationConfig = { 
            @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"), 
            @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),  
          //  @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/TEST_QUEUE"),  
            @ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable")  }) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Gem that contains a migration generator and a bunch of
I'm currently working on a data migration project and for performance-related issues, I want
I'm working on migration of data from a legacy system into our new app(running
I am working on database migration tool in java. The tool is copying database
I'm working on database migration program and I'm trying to migrate one database to
I'm working on a blog migration from a custom built blog to Wordpress. One
So I'm working on this VB to C# web application migration and came across
I am working on a migration platform to migrate web applications from a device
I'm working with the UUIDTools gem in Rails 3 and running into some problems.
I'm working more on my first live Rails app using 3.1.0 with M. Hartl's

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.