[Resin-interest] Resin 4: JMS Queue Injection

2009-03-23 Thread Scott Hernandez
I'm developing a sample to test a few things and I have a simple question about injecting a Queue by name. I have a bit of xml in my resin-web.xml config like this: jms:JmsConnectionFactory/ jms:FileQueue NameduserUpdates/Named /jms:FileQueue ejb-message-bean

[Resin-interest] Using Hibernate as EntityManager in Resin 4

2009-03-25 Thread Scott Hernandez
I'd like to replace Amber with Hibernate. We are migrating an app from JBoss (Hibernate EntityManager) and there are lots of Hibernate annotations used for validation, and to hint for database optimizations. In the first pass getting things going we would like to just drop in (as best as we can)

Re: [Resin-interest] Using Hibernate as EntityManager in Resin 4

2009-03-25 Thread Scott Hernandez
It is always the moment after you send the email that you find the answer: http://wiki.caucho.com/Hibernate I will try that method. Are there any additional issues I should worry about? Sorry for the spam, Scott On Wed, Mar 25, 2009 at 1:47 PM, Scott Hernandez scotthernan...@hotmail.com wrote

Re: [Resin-interest] Using Hibernate as EntityManager in Resin 4

2009-03-25 Thread Scott Hernandez
No problem, I should have something to report in a few hours. Also, is there a way to annotate the persistence units (for EntityManager injection) like there was for the JMS stuff? Since the persistence stuff is in persistence.xml, will it too become a bean config driven system? for example, let

[Resin-interest] MBean Registration

2009-03-30 Thread Scott Hernandez
Is there an annotation based way to register Management Beans? I know I can do this in XML, but is there an annotation, or interface that will work the same way? resource mbean-name=subetha:name=Cleanup type=org.subethamail.core.admin.CleanupBean

[Resin-interest] Amber (JPA) Table Indexes

2009-03-30 Thread Scott Hernandez
Is there a way to hint to Amber that a column should be indexed? For example we will be doing a lot of queries like this: Select u from User where u.isActive == true ... And it would be nice if the isActive column is indexed. Thanks in advance, Scott

Re: [Resin-interest] Using Hibernate as EntityManager in Resin 4

2009-03-30 Thread Scott Hernandez
Well, I have configured a test app to use hibernate and I have a few problems (and a bit of success): I was able to get the same code working from a servlet, but when trying to get data I get an exception when running from a @Service (in the @PostConstruct method): [21:26:06.430] {main}

Re: [Resin-interest] Amber (JPA) Table Indexes

2009-03-31 Thread Scott Hernandez
Hibernate lets you add a @Index to entities/tables for this. http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#d0e2305 Since JPA is creating, and maintaining the schema it is nice to keep that config all in one place. I would say that for serious tuning you may need to do

Re: [Resin-interest] Using Hibernate as EntityManager in Resin 4

2009-03-31 Thread Scott Hernandez
Let me try this again from the beginning... I want to have services (that start with the application, and runs the length of the application lifetime) so I define a POJO with a @Service and a method with a @PostConstruct. Everything is going well so far. I define a persistenceunit in

Re: [Resin-interest] Using Hibernate as EntityManager in Resin 4

2009-03-31 Thread Scott Hernandez
Let me try this again from the beginning... I want to have services (that start with the application, and runs the length of the application lifetime) so I define a POJO with a @Service and a method with a @PostConstruct. Everything is going well so far. I define a persistenceunit in

Re: [Resin-interest] Using Hibernate as EntityManager in Resin 4

2009-03-31 Thread Scott Hernandez
wrote: On Mar 31, 2009, at 12:51 PM, Scott Hernandez wrote: I've added a bug report for this at http://bugs.caucho.com/view.php?id=3429 I didn't quite understand the situation.  The environment might not be properly setup at the @PostConstruct time for some reason

[Resin-interest] Class-loader problem?

2009-04-12 Thread Scott Hernandez
(working against 03/18/09 snapshot of resin) It seems like there is a class-loader problem in my definition for my Queue (and I expect any global bean with an annotation class from the webapp). The first time through everything seems to work just fine, but in subsequent updates (webapp reloads)

Re: [Resin-interest] Eclipse Plugin

2009-04-13 Thread Scott Hernandez
this week or early next. Emil On Sun, Apr 12, 2009 at 09:42:24PM -0700, Scott Hernandez wrote: I noticed there is an eclipse plugin in the svn tree (artifacts/eclipse) that has seen some recent checkins. The build instructions seem pretty straight forward and end with directions to post

[Resin-interest] Working from svn (Resin 4)

2009-04-13 Thread Scott Hernandez
To Caucho Devs, In an effort to get some of my problems diagnosed from the old snapshot I was using(3/18) I delved into the svn trunk. It seems like the snapshots (although listed as 03/04/09 in the download page) are actually nightly snapshots. This leads me to believe that going straight to

[Resin-interest] Namespace files (in META-INF)

2009-04-13 Thread Scott Hernandez
Hi all, I was looking through the source of resin and noticed the namespace files in META-INF/caucho. Is there a place to read up on the placement, and format of these files? I would guess, without seeing it described other than in the resin module, that it goes something like this: The class

Re: [Resin-interest] Namespace files (in META-INF)

2009-04-13 Thread Scott Hernandez
, Scott Hernandez wrote: Hi all, I was looking through the source of resin and noticed the namespace files in META-INF/caucho. Is there a place to read up on the placement, and format of these files? These are essentially obsolete.  Although Resin has been using an IoC/ DI style for its

Re: [Resin-interest] Working from svn (Resin 4)

2009-04-13 Thread Scott Hernandez
Okay, I will endeaver to work against the snapshots. Are the snapshots regression free then? On Mon, Apr 13, 2009 at 2:56 PM, Scott Ferguson f...@caucho.com wrote: On Apr 13, 2009, at 10:50 AM, Scott Hernandez wrote: To Caucho Devs, In an effort to get some of my problems diagnosed from

Re: [Resin-interest] Eclipse Plugin

2009-04-17 Thread Scott Hernandez
it does? Thanks, Aaron Hi Scott, The Eclipse update site isn't up just yet, but will be with the new release, due out this week or early next. Emil On Sun, Apr 12, 2009 at 09:42:24PM -0700, Scott Hernandez wrote: I noticed there is an eclipse plugin in the svn tree

[Resin-interest] ClusterSingleSignon typo

2009-04-29 Thread Scott Hernandez
I found a typo in ClusterSingleSignon in the log instantiation (it uses another class to construct the log; see below). package com.caucho.security; ... public class ClusterSingleSignon implements SingleSignon { private final static Logger log =

Re: [Resin-interest] Class-loader problem?

2009-04-29 Thread Scott Hernandez
suggestions? On Mon, Apr 13, 2009 at 9:13 AM, Scott Ferguson f...@caucho.com wrote: On Apr 12, 2009, at 6:27 PM, Scott Hernandez wrote: (working against 03/18/09 snapshot of resin) It seems like there is a class-loader problem in my definition for my Queue (and I expect any global bean

[Resin-interest] ResinDeploy Ant Task Error

2009-05-05 Thread Scott Hernandez
So, I'm trying to get the ant task deployed using the new fangled stuff; It seems to fail horribly :( Here is some of the (pertinent) output from the ant task: resin-deploy: BUILD FAILED com.caucho.bam.RemoteConnectionFailedException: Failed to upgrade to HMTP X at

Re: [Resin-interest] ResinDeploy Ant Task Error

2009-05-05 Thread Scott Hernandez
, 2009 at 12:14 AM, Scott Hernandez scotthernan...@hotmail.com wrote: So, I'm trying to get the ant task deployed using the new fangled stuff; It seems to fail horribly :( Here is some of the (pertinent) output from the ant task: resin-deploy: BUILD FAILED

Re: [Resin-interest] ResinDeploy Ant Task Error

2009-05-05 Thread Scott Hernandez
somehow.  Depending on which snapshot you got, it's also possible that CanDI didn't configure/start the deploy service even if you configured it.  In the newest versions, those problems have been fixed. Emil On Tue, May 05, 2009 at 12:30:23AM -0700, Scott Hernandez wrote: So, I played around

[Resin-interest] Stack overflow on resin-web.xml load

2009-05-05 Thread Scott Hernandez
I'm a little stumped on this one. I'm guessing that there is some kind of circular dep. in the classes (EJBs), but where is the question... [09-05-05 10:58:42.741] {main} resin:import 'c:\src\caucho\resin\webapps\subetha\WEB-INF\resin-web.xml' log4j:WARN No appenders could be found for logger

[Resin-interest] InjectManager not binding generified class?

2009-05-06 Thread Scott Hernandez
The inject manager isn't adding this class to the registered beans. I have seen a few issues with Generic classes with matching classes but this ones seems pretty straight forward. Does anything anyone know why this isn't picked up and registered in the inject manager? @New public class

Re: [Resin-interest] Stack overflow on resin-web.xml load

2009-05-06 Thread Scott Hernandez
. On Wed, May 6, 2009 at 8:48 AM, Scott Ferguson f...@caucho.com wrote: On May 5, 2009, at 11:08 AM, Scott Hernandez wrote: I'm a little stumped on this one. I'm guessing that there is some kind of circular dep. in the classes (EJBs), but where is the question... I've added a bug report at http

[Resin-interest] JavaMail Session Injection

2009-05-06 Thread Scott Hernandez
I'd like to inject a Session into a few of my beans. I believe the correct way to do this is to use the @Resource(name=java:comp/env/mail) annotation, but I would like to be less verbose (if possible), and just use @Current, so I have done the following: @ApplicationScoped public class Producers

[Resin-interest] WebApp context-path

2009-05-08 Thread Scott Hernandez
I'd like to set the context-path for my war (to be something other than the name of the war file). So that mywar.war deploys to http://localhost/someothername. It seems like setting the context-path of the web-app defined in resin-web.xml should be the

Re: [Resin-interest] MDB Config Using CanDI

2009-05-19 Thread Scott Hernandez
Right, and maybe then we will have support for @Current @MyQueue BlockingQueueMyQueueItem also. Yeah, the (remote) service/servlet stuff will be cleaner with that syntax. On Tue, May 19, 2009 at 9:13 AM, Scott Ferguson f...@caucho.com wrote: On May 18, 2009, at 10:51 PM, Scott Hernandez wrote

[Resin-interest] Messaging Config

2010-01-15 Thread Scott Hernandez
I was looking at the lastest 4.0.3 docs and it seems to indicate that I should do this for my configuration: web-app ... xmlns:queue=urn:my-package-path ... jms:JmsConnectionFactory / jms:FileQueue queue:DeliveryQueue/ Nameddelivery/Named /jms:FileQueue queue:DeliveryListener

Re: [Resin-interest] the response time

2010-01-16 Thread Scott Hernandez
It depends on what your services, performance, and bandwidth requirements are. Anyway, there are (a few) options. ldirectord - (low level) http://linux.die.net/man/8/ldirectord balance -- (low level) http://www.inlab.de/balance.html trafficmanager -- (yahoo lb turned open-source)

[Resin-interest] Bean as HessianServices Breaks Injection

2010-01-16 Thread Scott Hernandez
I noticed when I registered my class as a HessianService it was no longer able to inject it. Is this an expected behavior? I am working against 4.0.3. BTW. You can reproduce all the problems I'm find using our resin4.0.3 branch of subetha - http://subetha.googlecode.com/svn/branches/resin4.0.3/.

Re: [Resin-interest] Bean as HessianServices Breaks Injection

2010-01-19 Thread Scott Hernandez
Cool, (more below) On Tue, Jan 19, 2010 at 8:29 AM, Alex a...@caucho.com wrote: On 2010-01-16, at 6:47 PM, Scott Hernandez wrote: I noticed when I registered my class as a HessianService it was no longer able to inject it. Is this an expected behavior? This seems broken, I've added a bug