[JBoss-user] [Messaging, JMS JBossMQ] - UIL2: How to tune it to stop client disconnected errors?

2004-06-24 Thread mylesJ
We constantly get client disconnected exceptions when using messaging. We use the UIL2 
connection layer on JBoss 3.2.1.

When we run JBoss and the messaging client on the same machine we never get the error 
but when they run on different machines, after about an hour or two the clients get 
disconnected.

The networks we run are terribly unresponsive and I believe that it is this that is 
causing the messaging to fail regularly.

UIL2 has two settings PingPeriod and ReadTimeout which are set to 6 and 7 
respectively. If I change PingPeriod to 6 then I can recreate the client 
disconnected error when running the client and JBoss locally.

What is the best way to tune the two settings to stop the client disconnected errors? 
Can they both be set to 0 such that no disconnection checks are performed at all? 
Should I increase the ReadTimeout value to a huge number whilst leaving PingPeriod on 
6?

Help would be appreciated. Thanks,

Stack trace follows:

org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested
throwable: (java.io.IOException: Client is not connected)
at org.jboss.mq.Connection.sendToServer(Connection.java:1251)
at org.jboss.mq.SpySession.sendMessage(SpySession.java:699)
at org.jboss.mq.SpyTopicPublisher.internalPublish(SpyTopicPublisher.java
:120)
at org.jboss.mq.SpyTopicPublisher.publish(SpyTopicPublisher.java:68)

Myles

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3839784#3839784

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839784


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: UIL2: How to tune it to stop client disconnected errors?

2004-06-24 Thread mylesJ
An additional question: does the message listener thread, the one that invokes 
onMessage() also respond to server keep alive ping requests? The reason I ask is 
that I have a sneaking suspicion that if the thread that invokes onMessage() is tied 
up with processing lots of business logic then it is not in a position to respond to 
ping messages thereby making JBoss think that the client is not responding and then 
closing the connection.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3839798#3839798

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839798


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Binding topic connection to JNDI

2004-06-03 Thread mylesJ
We are facing an awkward scenario when sending JMS messages from within an EJB. We 
want to be able to cache a topic connection and reuse it rather than create a new one 
each time an EJB publishes a message. The connection factory seems to create a new 
physical connection each time rather than reusing them which eats up loads of 
resources - thats why we want to cache the connection.

Obviously caching a connection in a static variable (the singleton pattern) is an 
obvious choice, but then this is subject to the vagaries of classloading by JBoss as 
to how many instances actually get created.

Therefore, I wonder whether it is feasible to create a topic connection and bind in to 
JNDI?

Are there any other options?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3837334#3837334

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837334


---
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Binding topic connection to JNDI

2004-06-03 Thread mylesJ
Thanks, sounds just the ticket. The FAQ entry is about accessing a remote connection 
pool, is there any differences in configuration if the EJBs that are accessing it 
local to the pool? Can one of those configuration changes be ditched?

Thanks,

Myles

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3837381#3837381

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837381


---
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - JAAS trust implementation

2004-05-25 Thread mylesJ
Hi,

Is anyone aware of an implementation of JAAS that provides a trust relationship 
between two applications? The purpose of this being that once a user is authenticated 
in one application they will by default be authenticated on any other trusted 
application.

I would much rather opt for a proven solution were one available than develop one from 
the ground up; the danger of opening up a major security flaw by a developing a naive 
JAAS implementaton troubles me. 

Should there not be an implementation of JAAS with trust available, are you aware of 
an appropriate trust protocol that would map well to JAAS and J2EE to give me a head 
start? 

Thanks, 

Myles 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3835702#3835702

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3835702



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Security context propagation between servers?

2004-05-24 Thread mylesJ
This is more in the realm of J2EE security than JBoss, but I would appreciate any 
guidance on it. How can a security context be propagated between two JBoss servers, or 
for that matter, any J2EE application server?

I presume the answer lies in JAAS and custom login modules. Are there any off the 
shelf solutions? Does JBoss support it directly?

I want to set up a trust relationship between two servers such that a succesful login 
in one server is trusted in the other by defualt. Note that these servers are not part 
of a cluster or share the same JVM. They are entirely indepenent.

Please help!

Thanks,

Myle

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3836059#3836059

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836059


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user