How do I configure a Fuse container that uses fabric as a service?

Solution Verified - Updated -

Issue

  • Is there a simple way of configuring the container JVMs to start as a service so that they will start automatically when the machine restarts?
  • How to run JBoss Fuse in fabric mode as a Windows Service?
  • Can you please confirm how we can run Fuse 6.2 (managed by Fabric) as service on Windows OS.
  • I have used the following steps in setting up a wrapper script for the fuse servers and containers I have created.

    JBossFuse:karaf@fabric-server-01> fabric:container-list
    [id] [version] [connected] [profiles] [provision status]
    fabric-server-01* 1.0 true fabric, jboss-fuse-full, fabric-ensemble-0001-1 success
    fabric-container-01 1.0 true default, MyCamelTest success
    fabric-server-02 1.0 true default, fabric-ensemble-0001-2 success
    fabric-server-04 1.0 true fabric, fabric-ensemble-0001-3 success
    fabric-container-02 1.0 true default, MyCamelTest success

Steps followed below:

4)Create a profile for the wrapper feature and apply it the containers:

   JBossFuse:admin@root> fabric:profile-display wrapper
   Profile id: wrapper
   Version   : 1.0
   Attributes: 
       parents: 
   Containers: root rc1

   Container settings
   ----------------------------
   Repositories : 
       mvn:org.apache.karaf.assemblies.features/standard/2.3.0.redhat-610379/xml/features

   Features : 
       wrapper

Configuration details


Other resources


JBossFuse:admin@root>

5) Install the wrapper on each container:

   JBossFuse:karaf@root> wrapper:install
   JBossFuse:admin@rc1> wrapper:install

6) Stop both instances of the running containers and start them using the wrapper:

   ./bin/karaf-service start
   ./instances/rc1/bin/karaf-service start

7) Connect to the root container using the client script:

./bin/client -u admin

Issue:

After running the steps you have mentioned below I am unable to connect to the container using the client script.

./bin/client -u admin

I have tried giving the Zookeeper username and password I have created for the fabric but it does not seem to work. I tried uncommentiing the admin=admin.admin in etc/user.properties but this does not work either.

I also do not see the ssh port 8101 running.

Environment

  • Red Hat JBoss Fuse
    • 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content