NOTICE: This channel is no longer actively logged.
[00:03:23] *** pferraro has joined #jboss-as7[00:03:23] *** ChanServ sets mode: +v pferraro[00:03:45] *** kcbabo has joined #jboss-as7[00:03:45] *** ChanServ sets mode: +v kcbabo[00:16:40] *** ALR has quit IRC[00:17:48] *** jfclere has quit IRC[00:22:17] *** opalka has quit IRC[00:24:44] *** mbg has quit IRC[00:35:41] *** pferraro has quit IRC[00:37:02] *** pferraro has joined #jboss-as7[00:37:02] *** ChanServ sets mode: +v pferraro[00:42:43] *** frainone has quit IRC[00:42:43] *** tcrawley has quit IRC[00:45:33] *** tcrawley has joined #jboss-as7[00:45:34] *** ChanServ sets mode: +v tcrawley[00:50:08] *** tcrawley_ has joined #jboss-as7[00:50:08] *** ChanServ sets mode: +v tcrawley_[00:52:22] *** pferraro has left #jboss-as7[00:52:50] *** tcrawley has quit IRC[00:56:45] *** jwulf has joined #jboss-as7[01:05:40] *** asaldhan has left #jboss-as7[01:07:12] *** tcrawley has joined #jboss-as7[01:07:12] *** ChanServ sets mode: +v tcrawley[01:08:35] *** magesh1 has quit IRC[01:08:42] *** magesh has joined #jboss-as7[01:09:17] *** tcrawley_ has quit IRC[01:14:45] *** Nihility has quit IRC[01:14:46] *** jamezp has quit IRC[01:17:17] *** tcrawley_ has joined #jboss-as7[01:17:17] *** ChanServ sets mode: +v tcrawley_[01:19:26] *** tcrawley has quit IRC[01:24:50] *** pferraro has joined #jboss-as7[01:24:50] *** ChanServ sets mode: +v pferraro[01:27:06] *** jamezp has joined #jboss-as7[01:57:58] *** kcbabo has quit IRC[01:58:10] *** tcrawley_ is now known as tcrawle[01:58:12] *** tcrawle is now known as tcrawley[02:03:39] *** smcgowan has quit IRC[02:09:29] *** magesh has quit IRC[02:12:23] *** alexsmirnov has quit IRC[02:16:50] *** pferraro has left #jboss-as7[02:17:59] *** jamezp is now known as jamezp_afk[02:28:05] *** sgilda has quit IRC[02:57:37] *** kcbabo has joined #jboss-as7[02:57:39] *** kcbabo has joined #jboss-as7[02:57:40] *** ChanServ sets mode: +v kcbabo[03:03:01] *** jc3 has quit IRC[03:41:51] *** Nihility has joined #jboss-as7[03:41:51] *** Nihility has joined #jboss-as7[03:41:51] *** ChanServ sets mode: +v Nihility[03:43:09] <Nihility> bobmcw: no more betas planned so far[03:43:39] <Nihility> bobmcw: cutting releases tends to suck away time from hitting the real goal[03:49:21] *** ccrouch has quit IRC[03:50:26] *** jc3 has joined #jboss-as7[03:50:27] *** ChanServ sets mode: +v jc3[03:58:00] *** Nihility has quit IRC[04:03:46] *** smarlow has quit IRC[04:16:03] *** jwulf has quit IRC[04:16:11] *** jwulf has joined #jboss-as7[04:18:37] *** jc3 has quit IRC[04:54:33] <bobmcw> dmlloyd: can you remind me again how I turn a JNDI name into a ServiceName?[04:55:04] <stuartdouglas> The ContextNames class[04:55:19] <stuartdouglas> there are two at the moment, after the ejb branch is merged there will only be one[04:58:26] <bobmcw> find the context I need, and append( "the/name" ) to it?[04:58:38] *** jamezp_afk has quit IRC[04:59:33] *** jamezp has joined #jboss-as7[05:00:10] <stuartdouglas> There should be a static method on one of the classes, that takes the current app / module / component names, and the jndi name in question, and spits out the service name[05:00:21] *** liweinan has quit IRC[05:03:57] <bobmcw> stuartdouglas: cool, thanks[05:04:04] <bobmcw> stuartdouglas: dmlloyd also says you're the CDI guy...[05:04:09] <stuartdouglas> yes[05:04:11] <bobmcw> I'm injecting stuff into my Ruby bits[05:04:23] <bobmcw> with AS6, I just grabbed the BeanManager from the global context, and did lookups[05:04:34] <bobmcw> wondering if you have pointers for true MSC injection with CDI[05:04:51] <bobmcw> akin to JNDI injection, or different?[05:04:53] <stuartdouglas> you will need to get hold of the bean manager service[05:04:57] <stuartdouglas> very similar[05:05:39] <stuartdouglas> the bean manager is not actually bound to global JNDI in AS7 (not sure if it will be eventually)[05:06:14] <stuartdouglas> alternativly you can use the ContextNames thing to get hold of the service that binds the BM to JNDI[05:06:48] <bobmcw> I'm happy to grab it via ServiceName and fondle from there[05:06:49] <stuartdouglas> you just need to know the application name and the module name[05:07:27] <stuartdouglas> BeanManagerService.serviceName should do the trick[05:07:37] <bobmcw> excellent[05:07:54] <bobmcw> so, jndi, this looks "right" for a ServiceName? jboss.naming.context.java.global.java:comp/env/foo[05:08:11] <stuartdouglas> no[05:08:12] <bobmcw> given "comp/env/foo" as the string[05:08:42] <stuartdouglas> so are you trying to bind java:global/comp/env/foo ?[05:09:02] <stuartdouglas> because that is the service name for a java:global binding[05:09:09] <bobmcw> tbh, I dunno. just given ${string}, I'm trying to lookup, I guess, java:global/${string}[05:09:16] <bobmcw> we don't bind anything into JNDI ourselves[05:09:23] <bobmcw> we're just trying to inject queues and such via JNDI[05:09:36] <bobmcw> but I dunno exactly where they bind[05:09:44] <bobmcw> 'cuz I'm a JavaEE ignoramous[05:10:38] <stuartdouglas> I know there were quite a few changes to the ContextNames stuff in the EE branch, I'm just looking at the current one to refresh my memory[05:10:46] <bobmcw> I'm on Beta3 atm[05:12:38] <stuartdouglas> gah, every time I switch branches IDEA goes nuts for a few minutes[05:17:32] <stuartdouglas> so if you are after the java:global/comp/env/foo binding, the service name should be jboss.naming.context.java.global.comp/env/foo[05:18:04] <stuartdouglas> and you should get that from org.jboss.as.ee.naming.ContextNames.serviceNameOfContext[05:18:30] <bobmcw> return ContextNames.serviceNameOfContext( null, null, null, "java:global/" + getName() );[05:18:39] <stuartdouglas> but you have to give it the fully qualified jndi name[05:18:44] <stuartdouglas> that should do it[05:18:58] <bobmcw> and getName() might return "/queue/test" I guess[05:19:15] <stuartdouglas> in which case you will double up your slashes[05:19:27] <stuartdouglas> which will cause problems[05:19:45] <bobmcw> ah, right-o[05:21:43] <bobmcw> jboss.naming.context.java.global.java:global/queue/test[05:21:46] <bobmcw> there we go[05:21:50] <bobmcw> rightly slashed?[05:23:00] <stuartdouglas> I don't think the java:global bit was right[05:23:49] <stuartdouglas> it should be jboss.naming.context.java.global.queue/test[05:24:26] <bobmcw> serviceNameOfContext wants "java:global" on the front of the context, though, no?[05:24:36] <stuartdouglas> yes[05:24:45] <bobmcw> then it should trim it off, I reckon?[05:25:13] <bobmcw> I'm just println'ing the ServiceName it gives me back for (null, null, null, "java:global/queue/test" )[05:28:58] <bobmcw> hrm, the substring should do it[05:29:02] <bobmcw> I'll poke[05:29:10] <stuartdouglas> yea, that is what is confusing me[05:29:20] <stuartdouglas> I can't see how that code can give that output[05:29:50] <bobmcw> probably my buggy code feeding it; see note above about ignoramousness[05:31:45] <bobmcw> all good[05:31:48] <bobmcw> 23:33:17,996 ERROR [stderr] (MSC service thread 1-1) jndi string [java:global/queue/test][05:31:48] <bobmcw> 23:33:17,997 ERROR [stderr] (MSC service thread 1-1) service name[service jboss.naming.context.java.global.queue/test][05:32:00] <stuartdouglas> cool[05:32:04] <bobmcw> which fails, 'cuz I don't know how to actually deploy a queue[05:32:46] <stuartdouglas> afaik there is an example in the demos[05:32:50] *** bstansberry has quit IRC[05:33:22] <bobmcw> standalone.xml has a queue/test configured[05:33:32] *** kcbabo has quit IRC[05:33:42] <bobmcw> <queue name="testQueue">[05:33:42] <bobmcw> <entry name="queue/test"/>[05:33:42] <bobmcw> </queue>[05:34:06] <bobmcw> should that satisfy this addDep(...) on the previously-discussed ServiceName?[05:34:17] <bobmcw> New missing/unsatisfied dependencies:[05:34:17] <bobmcw> service jboss.naming.context.java.global.queue/test (missing)[05:34:48] <stuartdouglas> depends where the queue is being bound to[05:35:08] <bobmcw> any way to dump a jndi catalog?[05:35:11] <stuartdouglas> it may be bound to java:jboss rather than java:global, I am not 100% sure[05:35:35] <stuartdouglas> if you connect with jconsole, and have a look at the msc mbean[05:35:55] <stuartdouglas> you can see all the services that start with jboss.naming.context[05:36:09] <stuartdouglas> and they correspond to bindings[05:36:33] <bobmcw> java:queue/test, it seems[05:36:43] <bobmcw> https://gist.github.com/7817815260957e8fd3db[05:36:48] <bobmcw> am I reading that tree right?[05:37:02] <stuartdouglas> yes[05:41:23] <bobmcw> yay! it worked![05:41:28] <bobmcw> injected a queue into my ruby app[05:41:41] <bobmcw> stuartdouglas: thanks for you help. I owe you weak american beer next time you're up this way.[05:42:04] <stuartdouglas> no problem, although I have no idea when that might be[05:43:28] <bobmcw> so I'm holding a ValueManagedObject... I getReference().getInstance() to get the actual javax.jms.Queue, and release() when I'm done?[05:43:38] <stuartdouglas> yep[05:48:17] *** liweinan has joined #jboss-as7[05:51:12] *** sguilhen1 has left #jboss-as7[06:05:10] *** miclorb has joined #jboss-as7[06:25:44] *** miclorb has quit IRC[06:35:49] *** mbg has joined #jboss-as7[06:56:41] *** mbg has quit IRC[09:12:46] *** mlinhard has joined #jboss-as7[10:29:37] *** tcrawley has quit IRC[10:29:59] *** tcrawley has joined #jboss-as7[10:29:59] *** ChanServ sets mode: +v tcrawley[10:33:45] *** jfclere has joined #jboss-as7[10:49:04] *** tcrawley_ has joined #jboss-as7[10:49:04] *** ChanServ sets mode: +v tcrawley_[10:51:19] *** tcrawley has quit IRC[10:53:46] *** tcrawley_ has quit IRC[10:53:49] *** tcrawley has joined #jboss-as7[10:53:49] *** ChanServ sets mode: +v tcrawley[10:58:24] *** tcrawley_ has joined #jboss-as7[10:58:24] *** ChanServ sets mode: +v tcrawley_[11:00:04] *** tcrawley has quit IRC[11:26:00] *** tcrawley has joined #jboss-as7[11:26:00] *** ChanServ sets mode: +v tcrawley[11:28:46] *** tcrawley_ has quit IRC[11:33:39] *** mgoldmann has joined #jboss-as7[11:33:39] *** ChanServ sets mode: +v mgoldmann[11:33:40] *** tcrawley_ has joined #jboss-as7[11:33:40] *** ChanServ sets mode: +v tcrawley_[11:34:22] *** tcrawley has quit IRC[11:44:45] *** tcrawley has joined #jboss-as7[11:44:45] *** ChanServ sets mode: +v tcrawley[11:46:58] *** tcrawley_ has quit IRC[11:49:25] *** jfclere has quit IRC[12:54:46] *** jfclere has joined #jboss-as7[13:00:20] *** tcrawley_ has joined #jboss-as7[13:00:20] *** ChanServ sets mode: +v tcrawley_[13:01:43] *** vtunka has joined #jboss-as7[13:02:40] *** tcrawle__ has joined #jboss-as7[13:02:55] *** tcrawley has quit IRC[13:05:01] *** tcrawley_ has quit IRC[13:07:15] *** tcrawley has joined #jboss-as7[13:07:15] *** ChanServ sets mode: +v tcrawley[13:08:19] *** sannegrinovero has joined #jboss-as7[13:08:19] *** sannegrinovero has quit IRC[13:08:19] *** sannegrinovero has joined #jboss-as7[13:08:19] *** ChanServ sets mode: +v sannegrinovero[13:09:41] *** tcrawle__ has quit IRC[13:20:13] *** sannegrinovero has quit IRC[14:15:41] *** bstansberry has joined #jboss-as7[14:15:41] *** ChanServ sets mode: +v bstansberry[14:17:02] *** jwulf has quit IRC[14:17:17] *** vtunka has quit IRC[14:17:21] *** bstansberry has quit IRC[14:17:55] *** bstansberry has joined #jboss-as7[14:17:55] *** ChanServ sets mode: +v bstansberry[14:19:00] *** bstansberry has quit IRC[14:26:05] *** jfclere has quit IRC[14:37:57] *** sgilda has joined #jboss-as7[14:50:55] *** Nihility has joined #jboss-as7[14:50:56] *** Nihility has joined #jboss-as7[14:50:56] *** ChanServ sets mode: +v Nihility[14:53:33] *** Nihility has quit IRC[14:54:24] *** kcbabo has joined #jboss-as7[14:54:24] *** ChanServ sets mode: +v kcbabo[14:55:06] *** jfclere has joined #jboss-as7[14:55:25] *** jc3 has joined #jboss-as7[14:55:26] *** ChanServ sets mode: +v jc3[15:55:08] *** mgoldmann has quit IRC[15:55:32] *** mgoldmann has joined #jboss-as7[15:55:32] *** ChanServ sets mode: +v mgoldmann[15:58:38] *** mgoldmann has quit IRC[15:59:03] *** mgoldmann has joined #jboss-as7[15:59:03] *** ChanServ sets mode: +v mgoldmann[16:09:45] *** mgoldmann has quit IRC[16:23:05] *** kcbabo has quit IRC[16:40:40] *** pferraro has joined #jboss-as7[16:40:41] *** ChanServ sets mode: +v pferraro[16:46:14] *** bstansberry has joined #jboss-as7[16:46:15] *** ChanServ sets mode: +v bstansberry[16:55:30] *** pferraro has left #jboss-as7[17:04:38] *** pferraro has joined #jboss-as7[17:04:39] *** ChanServ sets mode: +v pferraro[17:05:02] *** pferraro has left #jboss-as7[17:07:27] *** jfclere1 has joined #jboss-as7[17:10:37] *** jfclere has quit IRC[17:11:10] *** pferraro has joined #jboss-as7[17:11:10] *** ChanServ sets mode: +v pferraro[17:17:00] *** pferraro has quit IRC[19:01:09] *** bstansberry has quit IRC[19:46:45] *** maxandersen has joined #jboss-as7[19:46:45] *** ChanServ sets mode: +v maxandersen[19:55:55] *** bstansberry has joined #jboss-as7[19:55:56] *** ChanServ sets mode: +v bstansberry[19:57:11] *** mlinhard has quit IRC[20:10:40] *** jfclere1 has quit IRC[20:45:31] *** jamezp is now known as jamezp_afk[21:24:05] *** jwulf has joined #jboss-as7[21:39:44] <bobmcw> dmlloyd: you around?[21:40:19] *** adietisheim has joined #jboss-as7[23:02:59] *** maxandersen has quit IRC[23:05:15] *** jc3 has quit IRC[23:56:09] <dmlloyd> what's up bobmcw[23:56:17] <bobmcw> I think I figured it out[23:56:43] <bobmcw> I've got a ThingRegistry in torquebox-core extension, and wanted torquebox-messaging to contribute an instance to the registry[23:56:55] <bobmcw> ended up copying jdbc driver registry stuffs, and ServiceLoader<T> bits