Re: JBoss Seam & Resin 3.0.19
Jan Heise <[email protected]> Mon, 22 May 2006 19:01:09 +0200
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Scott,
from my point of view, this is not very important. It was meant more
as a 'fyi'-e-mail. I posted it on the JBoss-Site too, and the problem
could be easily adressed in Seam. Or is the described behaviour
really a bug in regard to the specs?
Jan
Am 22.05.2006 um 18:27 schrieb Scott Ferguson:
>
> On May 22, 2006, at 9:11 AM, Jan Heise wrote:
>
>>
>> to get Seam CR2 running with Resin 3.0.19 I had to change the
>> lookup of the UserTransaction in
>> org.jboss.seam.util.Transaction.java. Resin seems to not throw a
>> NameNotFoundException but instead returns null if the name is not
>> found. I also had to extract the META-INF-dir from jsf-
>> facelets.jar and had to put it into WEB-INF/classes (Bug 1052?)
>
> I've added this as a bug report.
>
> Although, I believe it's actually a bit tricky, because changing
> the Context lookup behavior has the potential to break a number of
> things.
>
> So it might need to wait for something like 3.0.21 or even 3.1.
>
> -- Scott
>
>>
>> Perhaps this info is helpful to others.
>>
>> Jan
>>
>>
>>
>> public static UserTransaction getUserTransaction() throws
>> NamingException
>> {
>> try
>> {
>> UserTransaction t = (UserTransaction) Naming.getInitialContext
>> ().lookup(userTransactionName);
>> if( t == null ) t = (UserTransaction) Naming.getInitialContext
>> ().lookup(STANDARD_USER_TRANSACTION_NAME);
>> return t;
>> }
>> catch (NameNotFoundException nnfe)
>> {
>> return (UserTransaction) Naming.getInitialContext().lookup
>> (STANDARD_USER_TRANSACTION_NAME);
>> }
>> }
>