-
1. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
adrian.brock Aug 13, 2003 6:48 PM (in response to tomdee)None of these you should use java:/ConnectionFactory,
the JVM connection factory.
If you want to be included in the EJB transaction
you should java:/JMSXA, this also gives you XA session
pooling. Be aware this introduces the default 5 minute
transaction timeout and the default JAAS login of
guest/guest see conf/login-config.xml
Regards,
Adrian -
2. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
adrian.brock Aug 13, 2003 6:52 PM (in response to tomdee)Oops remotely, use either OIL or UIL2.
OIL2 is in my opinion a failed attempt to improve
the performance of OIL
OIL2 may be perform better for you (I can't see a differencein the general case)
but OIL is more tested.
UIL2 is much better than UIL which is deprecated.
The difference between OIL and UIL is the client connection.
With OIL the client connects to the server which connects
back the client using a different TCP connection
(more performant but it is not always allowed).
UIL uses the same connection for both directions.
Regards,
Adrian -
3. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
arabin Oct 21, 2003 2:06 PM (in response to tomdee)It looks like JMS works on default with OIL. How can I have UIL2 installed instead? I do not see that in configuration files.
-
4. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
stephanenicoll Oct 23, 2003 12:46 AM (in response to tomdee)Check the jbossmq-service.xml in server/deploy/jms. All invocation layers are defined there.
To use UIL2 you simply have to lookup for "UIL2ConnectionFactory" or "UIL2XAConnectionFactory" whether you need XA or not.
Regards,
Stephane -
5. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
arabin Oct 23, 2003 6:22 PM (in response to tomdee)Should I modify <!-- Used for backwards compatability with JBossMQ versions before 1.0.0 -->
XAConnectionFactory
QueueConnectionFactory
XAConnectionFactory
TopicConnectionFactory
to
<!-- Used for backwards compatability with JBossMQ versions before 1.0.0 -->
UIL2ConnectionFactory
QueueConnectionFactory
UIL2ConnectionFactory
TopicConnectionFactory
? -
6. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
stephanenicoll Oct 24, 2003 2:22 AM (in response to tomdee)No you have nothing to modify.
UIL2 is available. Just do
QueueConnectionFactory queueFactory = (QueueConnectionFactory) ctx.lookup("UIL2ConectionFactory");
Regards,
Stephane -
7. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
arabin Oct 24, 2003 8:33 AM (in response to tomdee)Anything special about topic instead of TopicConnectionFacory?
-
8. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
stephanenicoll Oct 24, 2003 8:35 AM (in response to tomdee)uh?
UIL2ConnectionFactory is both a QueueConnectionFactory and a TopicConnectionFactory if it was your question.
Regards,
Stephane -
9. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
arabin Oct 24, 2003 9:04 AM (in response to tomdee)I mean I did separate lookups for "QueueConnectionFactory" and for "TopicConnectionFactory".
Do I need to do now just one? -
10. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
arabin Oct 24, 2003 9:21 AM (in response to tomdee)I used to have this code:
QueueConnectionFactory queueFactory = (QueueConnectionFactory) ctx.lookup("QueueConectionFactory");
TopicConnectionFactory topicFactory = (TopicConnectionFactory) ctx.lookup("TopicConectionFactory"); -
11. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
stephanenicoll Oct 24, 2003 9:29 AM (in response to tomdee)Really? And it's working? I don't see any notion of QueueConnectionFactory in the JNDI tree of my 3.2.2 (default configuration).
There is not distinction between Topic and Queue connection's factories in JBoss AFAIK.
So you can Keep the orignal object and Cast it into QueueConnection or TopicConnectionFactory when needed.
lookup UIL2ConnectionFactory to use UIL2 as a recall ...
Regards,
Stephane -
12. Re: recommendation on InvocationLayer OIL vs UIL vs OIL2
arabin Oct 24, 2003 5:01 PM (in response to tomdee)I happened to have an alias in jbossmq-service.xml
They both are aliased to XAConnectionFactory. I did not realize that.