• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Configure JBoss 7.1 to use standalone-full.xml

 
Ranch Hand
Posts: 970
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

I would like to

Configure JBoss 7.1 to use standalone-full.xml (instead of standalone.xml) at start up so that i can get the messaging capabilities of JBoss.
How can i achieve that. Do i need to do in command prompt. I am using eclipse keplon and configure jboss 7.1 on it. Can i directly configure above step on eclipse itself while staring Jboss 7.1.

Then i can Update standalone-full.xml to add the queue "testQueue14" which is used in MessagingMDBTest.java.


Here is what was configured in the jboss standalone-full.xml in its jms-destinations section:
<jms-queue name="destination">
<entry name="queue/testQueue14"/>
<entry name="java:jboss/exported/jms/queue/testQueue14"/>
</jms-queue>

please advice
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can start the server using the -c option and passing the filename of the configuration file. For example:



If you are on Windows, use the standalone.bat instead of standalone.sh
 
sai rama krishna
Ranch Hand
Posts: 970
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
I am on windows 7 laptop.
How and where do i give that command.
Do i need to start command prompt then
C:\Users\ganesha>cd C:\software\jboss-as-7.1.1.Final\standalone\configuration
then give command as below?
C:\software\jboss-as-7.1.1.Final\standalone\configuration>./standalone.bat -c standalone-full.xml





Please advice

I configured the queue in the file given as below
i configured the queue under C:\software\jboss-as-7.1.1.Final\standalone\configuration\standalone-full.xml as below

<jms-queue name="destination">
<entry name="queue/testQueue14"/>
<entry name="java:jboss/exported/jms/queue/testQueue14"/>
</jms-queue>

 
Marshal
Posts: 4600
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You would start the application server using a command line like:
C:\software\jboss-as-7.1.1.Final\bin\standalone.bat -c standalone-full.xml

Your queue would be defined in the standalone-full.xml file like this:
 
sai rama krishna
Ranch Hand
Posts: 970
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



You would start the application server using a command line like:
C:\software\jboss-as-7.1.1.Final\bin\standalone.bat -c standalone-full.xml



How to do this step from eclipse. I am using eclipse to start and stop jboss server and to deploy the application(by right clicking on the application and run on server) on my window7 laptop.


Also

In the server view I expanded JBoss 7.1 --->expanded XML Configuration--->expanded Ports--->double clicked JBoss Management.

I see server config file opened. I searched on mdb
I do not see specific mdb section like
<mdb>
.....
....
</mdb>



I see it opened standalone.xml.( i wonder why it did not open the standalone-full.xml) I do not see <jms-destination> tag as well with configured queue names.
I wonder why. How do i create it and see it. Please advice

please advice
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Did you get the answer for this ,please share, how we can start from eclipse using standalone-full.xml

 
Sheriff
Posts: 22802
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Open Window -> Preferences -> Server -> Runtime Environments. Edit the server you want, you can then modify the configuration file.
 
It's exactly the same and completely different as this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic