On 31/05/13 08:11, Edward Capriolo wrote:
> The archetype does not install.
Are you using snapshot from oss.sonatype?
We haven't released the archetype yet to MC (again 2.0 stuff still in
development)
Most probably the dependency versions need updating
>
> It seems like this archetype generates a Verticle. Seems odd because I
> thought the advice was generate modules not verticles.
It creates a module which contains a verticle
>
>
> On Fri, May 31, 2013 at 2:59 AM, Tim Fox <
timv...@gmail.com> wrote:
>
>> On 31/05/13 07:53, Edward Capriolo wrote:
>>
>>> I know I am making things so hard...Just about as hard as finding the
>>> vertx
>>> wiki.
>>>
>>> Lets see, not a single reference to the word wiki on the front page of
>>> vertx.io...
>>>
>> That's because this stuff is all new in 2.0 and the site
vertx.io refers
>> to vert.x 1.x
>>
>>> Like when you search google:
>>> site:
vertx.io wiki
>>> You get two results:
>>>
>>> One takes takes you to a page that makes no mention of maven.
>>>
>>> The other has a link to the vertx wiki that goes here.
>>>
>>>
https://github.com/vert-x/**vert.x/wiki<
https://github.com/vert-x/vert.x/wiki>
>>>
>>> And unless you guess that a blank front page means you should click on the
>>> pages button above you would have no idea that there were any documents at
>>> all.
>>>
>>>
>>> On Fri, May 31, 2013 at 2:30 AM, Tim Fox <
timv...@gmail.com> wrote:
>>>
>>> You're making life much more complicated that in needs be. Please take a
>>>> look at the wiki pages about how to get started with Maven and Gradle and
>>>> how to run tests with Vert.x.
>>>>
>>>> The example Gradle/Maven projects contain examples of how to write and
>>>> test a module. I recommend you start from there.
>>>>
>>>> On 31/05/13 07:11, Edward Capriolo wrote:
>>>>
>>>> Ok so I have been playing around with this for a couple of days now. So
>>>>> I
>>>>> just upgraded to 2.0.0-beta4.
>>>>>
>>>>> I have this test:
>>>>> @Test
>>>>> public void bla() throws Exception {
>>>>>
>>>>> final CountDownLatch latch = new CountDownLatch(1);
>>>>>
>>>>> //new AsyncResultHandler<String>() {
>>>>> //new
>>>>> PlatformLocator().factory.****createPlatformManager().**
>>>>> deployModule("com.jointhegrid~****setmodule~1.0",
>>>>> config, 10, new AsyncResultHandler<String>() {
>>>>>
>>>>> JsonObject config = new JsonObject();
>>>>>
>>>>> //config.putString("address", "operations.set");
>>>>> config.putString("worker", "true");
>>>>>
>>>>>
>>>>> new PlatformLocator().factory.****createPlatformManager()
>>>>> .deployModuleFromClasspath("****com.jointhegrid~setmodule~1.0"*
>>>>> ***,
>>>>> config,
>>>>> 10, new URL[0] , new AsyncResultHandler<String>() {
>>>>> @Override
>>>>> public void handle(AsyncResult<String> event) {
>>>>> if (event.succeeded()) {
>>>>> System.out.println("event suc "+event.succeeded());
>>>>> latch.countDown();
>>>>> } else {
>>>>>
>>>>> event.cause().printStackTrace(****);
>>>>> latch.countDown();
>>>>> }
>>>>> }
>>>>> });
>>>>>
>>>>>
>>>>> final CountDownLatch latch2 = new CountDownLatch(1);
>>>>>
>>>>> PlatformLocator.factory.****createPlatformManager().vertx(****
>>>>> ).eventBus().send("operations.****set",
>>>>> new JsonObject(), new Handler<Message<JsonObject>>()****{
>>>>>
>>>>>
>>>>> @Override
>>>>> public void handle(Message<JsonObject> event) {
>>>>> System.out.println( event.body() );
>>>>> latch2.countDown();
>>>>> }
>>>>>
>>>>> });
>>>>> latch2.await(5, TimeUnit.SECONDS);
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>> And this module:
>>>>> public class SetModule extends BusModBase implements
>>>>> Handler<Message<JsonObject>>{
>>>>> public SetModule(){
>>>>> super();
>>>>> System.out.println("loaded");
>>>>> }
>>>>>
>>>>> public void start(){
>>>>> System.out.println("start");
>>>>> super.start();
>>>>> eb.registerHandler("****operations.set", this);
>>>>> May 31, 2013 2:03:59 AM org.vertx.java.core.logging.****
>>>>> impl.JULLogDelegate
>>>>> info
>>>>> INFO: deploy succeeded? true
>>>>>
>>>>> So I am seeing vertx load this module, but when I send events to the
>>>>> address it is registered at,I get no reply. It must be something simple
>>>>> butI can not see it.
>>>>>
>>>>>
>>>>>
>>>>> On Wed, May 29, 2013 at 11:46 AM, bytor99999 <
bytor...@gmail.com>
>>>>> wrote:
>>>>>
>>>>> You will need to post a bit more. Like what does the sending code look
>>>>>
>>>>>> like. What are you listening on for the main verticle? Looks like
>>>>>> SetVerticle is the main verticle, but where is the listen code? I think
>>>>>> there is code missing that either you didn't post or didn't write that
>>>>>> needs to be there. Have you looked at the simple examples in the github
>>>>>> repo? Or the documentation for the simple app?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Mark
>>>>>>
>>>>>> On Saturday, May 25, 2013 3:54:22 PM UTC-7, Eddie C wrote:
>>>>>>
>>>>>> Is this the correct way to load up a verticle?
>>>>>>> Vertx x = Vertx.newVertx();
>>>>>>> VerticleManager vm = new VerticleManager((******VertxInternal) x);
>>>>>>> Container c = new Container(vm);
>>>>>>> c.deployVerticle("x.******SetVerticle", 10);
>>>>>>>
>>>>>>> package xxx;
>>>>>>> import org.vertx.java.deploy.******Verticle;
>>>>>>> public class SetVerticle extends Verticle {
>>>>>>> public void start() throws Exception {
>>>>>>> System.out.println("lets do this");
>>>>>>> this.getVertx().eventBus().******registerHandler("operations.**
>>>>>>> ****set",
>>>>>>> new
>>>>>>> SetHandler());
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> This code produces no error but when I put messages on the evenbus for
>>>>>>> this handler I do not receive them. I put a langs.properties and a
>>>>>>> cluster.xml in the project still no luck.
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups
>>>>>> "vert.x" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>>> an
>>>>>> email to vertx+unsubscribe@**googlegrou**
ps.com<
http://googlegroups.com>
>>>>>> <vertx%2Bunsubscribe@**
googlegroups.com<
vertx%252Buns...@googlegroups.com>
>>>>>> .
>>>>>> For more options, visit
https://groups.google.com/****groups/opt_out<
https://groups.google.com/**groups/opt_out>
>>>>>> <
https://groups.**
google.com/groups/opt_out<
https://groups.google.com/groups/opt_out>
>>>>>> .
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>> You received this message because you are subscribed to the Google Groups
>>>> "vert.x" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an
>>>> email to vertx+unsubscribe@**googlegrou**
ps.com<
http://googlegroups.com>
>>>> <vertx%2Bunsubscribe@**
googlegroups.com<
vertx%252Buns...@googlegroups.com>
>>>> .
>>>> For more options, visit
https://groups.google.com/****groups/opt_out<
https://groups.google.com/**groups/opt_out>
>>>> <
https://groups.**
google.com/groups/opt_out<
https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>>
>>>>
>>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "vert.x" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to vertx+unsubscribe@**
googlegroups.com<
vertx%2Bunsu...@googlegroups.com>