• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Configure JBoss 7.1 to use standalone-full.xml

 
Ranch Hand
Posts: 542
1
  • Mark post as helpful
  • send pies
  • 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
  • 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: 542
1
  • Mark post as helpful
  • send pies
  • 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>

 
Saloon Keeper
Posts: 2615
329
Android Eclipse IDE Angular Framework MySQL Database TypeScript Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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: 542
1
  • Mark post as helpful
  • send pies
  • 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
  • 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: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open Window -> Preferences -> Server -> Runtime Environments. Edit the server you want, you can then modify the configuration file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!