2

I have always used WebSphere, where we can set data source and have buses and queues. How to find those features in Apache Tomcat, if possible?

Gas
  • 17,601
  • 4
  • 46
  • 93
abhishek1030
  • 633
  • 6
  • 8

3 Answers3

3

Tomcat is a lightweight servlet server. In order to add some of JEE features like JMS provider, you have to integrate a third party solution like ActiveMQ and declare your resources (datasources, queues or topics) in context.xml file like this :

<Resource name="jms/ConnectionFactory" auth="Container"
            type="org.apache.activemq.ActiveMQConnectionFactory"/>

you can also use TomEE, which is a tomcat with JEE features. I think it's more suitable for you.

Hope it helped

Zava
  • 400
  • 3
  • 16
1

Tomcat is not a full-blown application server.

You can deploy / undeploy applications via tomcat.url:8080/manager

manager itself is a webapplication which ships with default installation.

To access it you will need to modify some config files. A complete guide for this can be found here

WeMakeSoftware
  • 9,039
  • 5
  • 34
  • 52
0

Unfortunately you are down to manually editing xml files.

If you considering switching to Apache Tomcat, try WebSphere Liberty Profile. It is as lightweight as Tomcat, but full Java EE 7 compatible, and have nice configuration editor in Eclipse provided by WebSphere Developer Tools plugin, so no looking for and typing xml configs.

Gas
  • 17,601
  • 4
  • 46
  • 93