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
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)
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
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
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
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
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}
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
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
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
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
(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)
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
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
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
, 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
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
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
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
=
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
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
, 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
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
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
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
.
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
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
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
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
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
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)
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/.
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
33 matches
Mail list logo