Thanks for your fast response. Resin 3.1.5 is a big step forward for
some of our projects. Especially Webbeans help a lot, and of cause the
fix to the Authenticators that allow us now to use Webbeans and Entity
beans together make a lot of things easier :)
Only thing missing we look really forward to is that Visual JSF work
as JSF and Netbeans is our standard development system.
Regards,
Andreas Fischer
On Mar 3, 2008, at 5:30 PM, Scott Ferguson wrote:
On Mar 3, 2008, at 3:06 PM, Andreas Fischer wrote:
Its two different .jars as the authentication.jar is reused by
multiple applications.
Basically we have a directory server that holds information about
multiple available video streams, authentication.jar is shared
between the webservers, directory, video and audio servers as they
all require authentication.
Thanks. That's probably where it's getting confused.
There's a bug report at http://bugs.caucho.com/view.php?id=2490.
It will probably be a decent amount of work to fix since the
internal classes aren't properly organized.
At least for now I got a workarround by declaring all the things in
resin-web.xml. I understand that some tags are not standard but why
not make a resin-web-beans.xml ?
You can always use <resin:import> in the resin-web.xml. Actually,
since we just added a classpath: scheme in 3.1.5, you can use
<resin:import path="classpath:com/foo/beans.xml"/>
With a lot of beans resin-web can become rather crowded and like I
said when I had the same xml just in web-beans.xml it seems like it
got ignored.
Oh while I am at it: What is the easiest way to look up a webbean
in JSP if its not using @Named?
The classname of the bean, with the first character lowercased is
the default name for JSP/EL lookup.
So com.foo.TestBean is stored as "testBean". (If you have multiple
beans of the same type and no @Named, then it's not clear what's
returned.)
-- Scott
Regards,
Andreas Fischer
On Mar 3, 2008, at 4:48 PM, Scott Ferguson wrote:
On Mar 3, 2008, at 2:29 PM, Andreas Fischer wrote:
Actually one more note:
I got it to work by declaring every bean in the resin-web.xml.
But doesn't the resin doc say if there is a web-beans.xml in
a .jar file resin will automatically scan?
Are both components in the same .jar? There may be a timing
issue. That situation certainly should work, but the way the .jar
contexts interact with the main one is a bit tricky, and needs a
cleanup.
-- Scott
Also if I move the beans declaration into web-beans.xml it seems
to be ignored and it seems to be a better place to have all the
beans / components.
Regards,
Andreas Fischer
On Mar 3, 2008, at 4:16 PM, Andreas Fischer wrote:
I got a WebBean that represents a DirectoryService. The bean is
declared as following:
@Component
@Singleton
public class DirectoryService {
@In private AuthenticationService authentication;
...
Authentication services is declared as follows:
@Component
@Singleton
public class AuthenticationService {
Basically the directory relies on an authentication service to
make sure that only validated users can access the directory.
Now the @In in the directory services throws an exception:
com.caucho.config.ConfigException:
com.jmeeting.directory.service.DirectoryService.authentication:
Can't find a component for
'com.jmeeting.directory.service.AuthenticationService'
If I got the resin documentation right it states:
Any Resin-managed object can use the entire WebBeans dependency-
injection system and all of the managed objects, while objects
you create using new are still plain Java objects. Once you've
got a root object managed by the system, any futher WebBeans
components or singletons you bring in will also be managed. The
starting set of managed objects is pretty broad and includes: ...
This sounds like a Webbean looking up another Webbean should work.
Regards,
Andreas Fischer
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest