Author: jmesnil
Date: 2010-08-31 11:46:14 -0400 (Tue, 31 Aug 2010)
New Revision: 9616
Modified:
trunk/docs/user-manual/en/embedding-hornetq.xml
Log:
doc update
* update code snippet to create a new HornetQServer
Modified: trunk/docs/user-manual/en/embedding-hornetq.xml
===================================================================
--- trunk/docs/user-manual/en/embedding-hornetq.xml 2010-08-31 15:22:50 UTC (rev 9615)
+++ trunk/docs/user-manual/en/embedding-hornetq.xml 2010-08-31 15:46:14 UTC (rev 9616)
@@ -66,18 +66,18 @@
<para>You need to instantiate and start HornetQ server. The class
<literal
org.hornetq.api.core.server.HornetQ</literal> has a few static
methods for creating
servers with common configurations.</para>
- <programlisting>import org.hornetq.api.core.server.HornetQ;
-import org.hornetq.core.server.HornetQServer;
+ <programlisting>import org.hornetq.core.server.HornetQServer;
+import org.hornetq.core.server.HornetQServers;
+
...
-HornetQServer server = HornetQ.newHornetQServer(config);
+HornetQServer server = HornetQServers.newHornetQServer(config);
server.start();</programlisting>
<para>You also have the option of instantiating
<literal>HornetQServerImpl</literal>
directly:</para>
- <programlisting>HornetQServer server =
- new HornetQServerImpl(config);
+ <programlisting>HornetQServer server = new HornetQServerImpl(config);
server.start();</programlisting>
</section>
<section>