Java Deployment in TorqueBox

I am new to TorqueBox. I created one RESTEasy application that currently runs on tomcat. Now I want to deploy it to a TorqueBox. To do this, I created a yml file in the torque application folder. File contents

  ---
 application: 
   root: C: / torqueApp / java / RESTEasyTorque
   env: development 
 web: 
   context: / hellojava

My problem is that when I start the server, it does not deploy my application. What should I do?

+6
source share
2 answers

Bob answered this on the mailing list, but I will also add it here:

You can deploy pure Java applications to TorqueBox, but you are not using powerbox.yml (or * -knob.yml).

To deploy a Java application to TorqueBox, just drop your .war file into the apps / directory (I accept TorqueBox 1.x)

fwiw, if you are deploying a Ruby application, you can install powerbox.yml inside your application, but the files in the application / will be a * -knob.yml file or archive version of your application with the extension .knob.

When we talk about "handles", we mean either * -knob.yml or * .knob archives, which are used in the apps / folder. torquebox.yml - mainly used in your own directory tree of your application.

For Java applications, ignore everything related to TorqueBox, and you can claim that our distribution is like JBoss AS6 (for TorqueBox 1.x) or just like JBoss AS7 (for TorqueBox 2.x). Our changes are purely additive, building on top of the JBoss JavaEE container.

from: http://markmail.org/message/zhjwhbgxarjsvdz7

+3
source

For torquebox-2.3.x and above, you need jboss-clent.jar to be available in your Java application library library, automatically search for a JBOSS instance JBOSS and deploy to it. However, if you need to use Torquebox queues, you must bind JBOSS to IP using JVM runtime parameters, for example.

 JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=192.168.100.101 -Djboss.bind.address.management=192.168.100.101 -Djboss.bind.address.unsecure=192.168.100.101 

Then using the JMS API you can use Torquebox queues

0
source

Source: https://habr.com/ru/post/895480/


All Articles