[JBoss-user] [Messaging, JMS JBossMQ] - SocketException encountered when upgrade jboss from 3.2.3 to

2005-01-19 Thread jmer
Hi list;
We encountered java.net.SocketException : Sockect close  when we upgraded 
jboss from 3.2.3 to 3.2.5 on one of our production server. The application 
compose of a servlet (recieve request and jms client) and a mdb. Message are 
send a text message. Although request got process by mdb, yet this exception 
keep on occuring.Has anyone from the list have any idea why this is happening? 
Below are the log

2005-01-20 09:32:46,242 DEBUG 
[org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] Extracting 
SpyConnectionFactory from reference
2005-01-20 09:32:46,260 DEBUG 
[org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] The 
GenericConnectionFactory is: [EMAIL PROTECTED] 
connectionProperties={UIL_ADDRESS_KEY=172.16.17.28, UIL_CHUNKSIZE_KEY=100, 
UIL_TCPNODELAY_KEY=yes, 
ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, 
UIL_BUFFERSIZE_KEY=2048, PingPeriod=6}]
2005-01-20 09:32:46,260 DEBUG 
[org.jboss.mq.referenceable.SpyDestinationObjectFactory] 
SpyDestinationObjectFactory-getObjectInstance()
2005-01-20 09:32:46,273 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
2005-01-20 09:32:46,273 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
2005-01-20 09:32:46,274 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
2005-01-20 09:32:46,275 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
2005-01-20 09:32:46,275 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
2005-01-20 09:32:46,275 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
2005-01-20 09:32:46,276 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
2005-01-20 09:32:46,279 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
2005-01-20 09:32:46,282 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Starting
2005-01-20 09:32:46,286 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Setting up the UILClientIL Connection
2005-01-20 09:32:46,287 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
The UILClientIL Connection is set up
2005-01-20 09:32:46,408 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping
2005-01-20 09:32:46,408 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
WriteTask.run
2005-01-20 09:32:46,408 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
WriteTask.run
2005-01-20 09:32:46,412 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Exiting on IOE
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:162)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at 
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:67)
at 
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
at 
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
at 
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
at 
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:279)
at java.lang.Thread.run(Thread.java:534)
2005-01-20 09:32:46,412 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
ReadTask.run
2005-01-20 09:32:46,413 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
ReadTask.run

snipplet of the jms client

  | //jndi lookups on ConnectionFactory, QueueA
  | Context jndiContext = new InitialContext();
  | QueueConnectionFactory qConnFactory = 
(QueueConnectionFactory)jndiContext.lookup(ConnectionFactory);
  | Queue qMailSender = 
(Queue)jndiContext.lookup(queue/bbhd-MailSenderQueue);
  | 
  | //Create QueueConnection and QueueSession
  | QueueConnection qConnection = 
qConnFactory.createQueueConnection();
  | QueueSession qSession = 
qConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
  | 
  | //Create MapMessage, attach Transaction ID, 
MessageFormat and Other Data
  | TextMessage txtMsg = qSession.createTextMessage();
  | txtMsg.setStringProperty(MessageFormat,BBHD Version 
2.1.0.6);
  | //added oct 5,2004
  | String mymsgId = 
String.valueOf(data.getMsgID()).equals(0)?String.valueOf(msgId):String.valueOf(msgId);
  | txtMsg.setStringProperty(Pin, 
String.valueOf(data.getPin()));
  | txtMsg.setStringProperty(User, 
String.valueOf(data.getName()));

[JBoss-user] [Installation Configuration] - Re: does classloading/ repositoryselector works on jar?

2005-01-06 Thread jmer
Tried to use RepositorySelector on MDB

on my MDB i put this

  | public void setMessageDrivenContext(MessageDrivenContext _context)throws 
EJBException {
  | context = _context;
  | 
  | //initialized my own RepositorySelector class
  | MyBeanRepositorySelector.init(context);
  | 
  | log = Logger.getLogger(CrmIntergatorBean.class);
  | 
  | 
  | // For debugging purposes
  | log(Priority.DEBUG, 
CrmIntergatorBean.setMessageDrivenContext());
  | 
  | }


and created a class file

  | import java.io.InputStream;
  | import java.util.HashMap;
  | import java.util.Map;
  | 
  | import javax.ejb.EJBException;
  | import javax.ejb.MessageDrivenContext;
  | import javax.xml.parsers.DocumentBuilderFactory;
  | 
  | import org.apache.log4j.Hierarchy;
  | import org.apache.log4j.Level;
  | import org.apache.log4j.LogManager;
  | import org.apache.log4j.spi.LoggerRepository;
  | import org.apache.log4j.spi.RepositorySelector;
  | import org.apache.log4j.spi.RootCategory;
  | import org.apache.log4j.xml.DOMConfigurator;
  | import org.w3c.dom.Document;
  | 
  | /**
  |  * @author jmer
  |  *
  |  */
  | public class MyBeanRepositorySelector implements RepositorySelector{
  | 
  |  private static boolean initialized = false;
  |  private static Object guard = new Object();
  |
  |  private static Map repositories = new HashMap();
  |  private static LoggerRepository defaultRepository;
  |  
  |  private MyBeanRepositorySelector() {
  |  }
  |  
  |  /**
  |   * Register MDB with repository selector
  |   * @param config
  |   * @throws EJBException
  |   */
  |  
  |  public static synchronized void init(MessageDrivenContext config) 
throws EJBException{
  | if( !initialized ) // set the global RepositorySelector
  |   {
  |  defaultRepository = LogManager.getLoggerRepository();
  |  RepositorySelector theSelector = new 
MyBeanRepositorySelector();
  |  LogManager.setRepositorySelector(theSelector, guard);
  |  initialized = true;
  |   }
  | 
  |  Hierarchy hierarchy = new Hierarchy(new 
RootCategory(Level.DEBUG));
  |  loadLog4JConfig(config, hierarchy);
  |  ClassLoader loader = 
Thread.currentThread().getContextClassLoader();
  |  repositories.put(loader, hierarchy);
  |  }
  |  
  |  
  |  /**
  |   * Load the log4jxml
  |   * @param config
  |   * @param hierarchy
  |   * @throws EJBException
  |   */
  |  private static void loadLog4JConfig(MessageDrivenContext config, 
Hierarchy hierarchy) throws EJBException {
  | try {
  | String log4jFile = /META-INF/log4j.xml;
  | InputStream log4JConfig = 
config.getClass().getResourceAsStream(log4jFile);
  | Document doc = DocumentBuilderFactory.newInstance()
  |  .newDocumentBuilder()
  |  .parse(log4JConfig);
  | DOMConfigurator conf = new DOMConfigurator();
  | conf.doConfigure(doc.getDocumentElement(), hierarchy);
  | } catch (Exception e) {
  | e.printStackTrace();
  | throw new EJBException(e);
  | }
  | }
  |  
  |  
  | /* (non-Javadoc)
  |  * @see org.apache.log4j.spi.RepositorySelector#getLoggerRepository()
  |  */
  | public LoggerRepository getLoggerRepository() {
  |  ClassLoader loader = 
Thread.currentThread().getContextClassLoader();
  |   LoggerRepository repository = 
(LoggerRepository)repositories.get(loader);
  |   
  |   if (repository == null) {
  |   return defaultRepository;
  |   } else {
  |   return repository;
  |   }
  | }
  | 
  | }
  | 
  | 

I also added log4j.xml on package to META-INF, When i deployed and test the 
code i got this error


anonymous wrote : 
  | 10:53:16,062 ERROR [LogInterceptor] TransactionRolledbackLocalException in 
method: public abstract void 
javax.jms.MessageListener.onMessage(javax.jms.Message), causedBy:
  | java.lang.IllegalArgumentException: Attempted to reset the LoggerFactory 
without possessing the guard.
  | at 
org.apache.log4j.LogManager.setRepositorySelector(LogManager.java:144)
  | at 
ph.net.mdi.crm.util.MyBeanRepositorySelector.init(MyBeanRepositorySelector.java:54)
  | at 
ph.net.mdi.crm.ejb.CrmIntergatorBean.setMessageDrivenContext(CrmIntergatorBean.java:99)
  | at 
org.jboss.ejb.MessageDrivenEnterpriseContext.(MessageDrivenEnterpriseContext.java:61)
  | at 
org.jboss.ejb.plugins.MessageDrivenInstancePool.create(MessageDrivenInstancePool.java:36

[JBoss-user] [Installation Configuration] - does classloading/ repositoryselector works on jar?

2005-01-04 Thread jmer
Hi all;
 Am using 2 box of redhat advance server with jboss-3.2.3 and jdk-1.4_02 on 
clustered and loadbalance(modjk) production enviroment. So far the application 
is running smoothly, we came to the point of adding additional application on 
it the only problem we expect to encounter once developement and testing is 
done is the logs. Reading on the forum and wiki i found classloading scoping 
and log4j repositoryselector as a suggested solution for webapps. How about 
mdb, session..etc..? Can this solution work too? Cause we intend to deploy a 
mdb as another application with a jyton client. An advice or comment is highly 
appriciated. Thank you and gooday

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

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


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: setsockopt IP_ADD_MEMBERSHIP failed

2004-09-10 Thread jmer
i found out that the 2 box run on diffrennt version of linux.  I formatted one of our 
dev server and load same os as the other dev server using redhat9. I also upgraded 
j2sdk1.4.0 to j2sdk1.4.2_05. When i started the two box it seems that they can find 
each other usign the default cluster-service.xml.


  | 2004-09-10 13:46:20,230 INFO  
[org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Initializing
  | 2004-09-10 13:46:20,278 DEBUG [DefaultPartition:ReplicantManager] 
registerRPCHandler
  | 2004-09-10 13:46:20,279 DEBUG [DefaultPartition:ReplicantManager] 
subscribeToStateTransferEvents
  | 2004-09-10 13:46:20,279 DEBUG [DefaultPartition:ReplicantManager] 
registerMembershipListener
  | 2004-09-10 13:46:24,016 INFO  [org.jboss.ha.framework.server.ClusterPartition] 
Starting channel
  | 2004-09-10 13:46:24,017 INFO  
[org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Number of cluster 
members: 1
  | 2004-09-10 13:46:24,017 INFO  
[org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Other members: 0
  | 2004-09-10 13:46:32,033 INFO  [org.jboss.ha.framework.server.ClusterPartition] 
Started ClusterPartition: DefaultPartition
  | 

I also disable iptables on both box, and added 


  | route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
  | 

but same thing happend. I modifed the cluster-service.xml usng TCPPING but same thing 
too.. did i miss something here




  | ?xml version=1.0 encoding=UTF-8?
  | server
  | classpath codebase=lib archives=jbossha.jar/
  | !--  --
  | !-- Cluster Partition: defines cluster   --
  | !--  --
  | mbean code=org.jboss.ha.framework.server.ClusterPartition 
name=jboss:service=DefaultPartition
  | !-- Name of the partition being built --
  | attribute name=PartitionNameDefaultPartition/attribute
  | !-- Determine if deadlock detection is enabled --
  | attribute name=DeadlockDetectionFalse/attribute
  | !-- The JGroups protocol configuration --
  | attribute name=PartitionConfig
  | Config
  | TCP start_port=7800/
  | TCPPING 
initial_hosts=192.168.40.55[7800],192.168.40.54[7800]  up_thread=true 
down_thread=true num_initial_members=2 port_range=5 timeout=3000/
  | VERIFY_SUSPECT timeout=1500 up_thread=false 
down_thread=false/
  | pbcast.NAKACK gc_lag=100 retransmit_timeout=3000 
up_thread=true down_thread=true/
  | pbcast.STABLE desired_avg_gossip=2  
up_thread=false down_thread=false/
  | pbcast.GMS join_timeout=5000 
join_retry_timeout=2000 shun=false print_local_addr=false up_thread=true 
down_thread=true/
  | /Config
  | /attribute
  | /mbean
  | !--  --
  | !-- HA Session State Service for SFSB--
  | !--  --
  | mbean code=org.jboss.ha.hasessionstate.server.HASessionStateService 
name=jboss:service=HASessionState
  | dependsjboss:service=DefaultPartition/depends
  | !-- Name of the partition to which the service is linked --
  | attribute name=PartitionNameDefaultPartition/attribute
  | !-- JNDI name under which the service is bound --
  | attribute name=JndiName/HASessionState/Default/attribute
  | !-- Max delay before cleaning unreclaimed state.
  |  Defaults to 30*60*1000 = 30 minutes --
  | attribute name=BeanCleaningDelay0/attribute
  | /mbean
  | !--  --
  | !-- HA JNDI  --
  | !--  --
  | mbean code=org.jboss.ha.jndi.HANamingService name=jboss:service=HAJNDI
  | dependsjboss:service=DefaultPartition/depends
  | !-- Name of the partition to which the service is linked --
  | attribute name=PartitionNameDefaultPartition/attribute
  | !-- bind address of HA JNDI RMI endpoint --
  | attribute name=BindAddress${jboss.bind.address}/attribute
  | !-- RmiPort to be used by the HA-JNDI service
  |  once bound. 0 = auto. --
  | attribute name=RmiPort0/attribute
  | !-- Port on which the HA-JNDI stub is made available --
  | attribute name=Port1100/attribute
  | !-- Backlog to be used for client-server RMI 
  |  invocations during 

[JBoss-user] [Clustering/JBoss] - Re: setsockopt IP_ADD_MEMBERSHIP failed

2004-09-10 Thread jmer
okay. i switch over to the default cluster-service.xml and restarted node1 and node2 
after node1 finishes booting up. But sitll they cant see each other.  and also added 
bind_addr=IP of node2  

node1


  | [EMAIL PROTECTED] deploy]# netstat -nr
  | Kernel IP routing table
  | Destination Gateway Genmask Flags   MSS Window  irtt Iface
  | 192.168.40.00.0.0.0 255.255.255.0   U 0 0  0 eth0
  | 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0 eth0
  | 127.0.0.0   0.0.0.0 255.0.0.0   U 0 0  0 lo
  | 224.0.0.0   0.0.0.0 240.0.0.0   U 0 0  0 eth0
  | 0.0.0.0 192.168.40.10.0.0.0 UG0 0  0 eth0
  | 
  | eth0  Link encap:Ethernet  HWaddr 00:06:5B:6D:19:A1
  |   inet addr:192.168.40.55  Bcast:192.168.40.255  Mask:255.255.255.0
  |   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  |   RX packets:3753 errors:0 dropped:0 overruns:1 frame:0
  |   TX packets:674 errors:0 dropped:0 overruns:0 carrier:0
  |   collisions:1 txqueuelen:100
  |   RX bytes:324079 (316.4 Kb)  TX bytes:122475 (119.6 Kb)
  |   Interrupt:11 Base address:0xec80
  | 
  | loLink encap:Local Loopback
  |   inet addr:127.0.0.1  Mask:255.0.0.0
  |   UP LOOPBACK RUNNING  MTU:16436  Metric:1
  |   RX packets:137 errors:0 dropped:0 overruns:0 frame:0
  |   TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
  |   collisions:0 txqueuelen:0
  |   RX bytes:21136 (20.6 Kb)  TX bytes:21136 (20.6 Kb)
  | 
  | 

node2


  | Kernel IP routing table
  | Destination Gateway Genmask Flags   MSS Window  irtt Iface
  | 192.168.40.00.0.0.0 255.255.255.0   U 0 0  0 eth0
  | 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0 eth0
  | 127.0.0.0   0.0.0.0 255.0.0.0   U 0 0  0 lo
  | 224.0.0.0   0.0.0.0 224.0.0.0   U 0 0  0 eth0
  | 0.0.0.0 192.168.40.10.0.0.0 UG0 0  0 eth0
  | 
  | [EMAIL PROTECTED] deploy]# /sbin/ifconfig -a
  | eth0  Link encap:Ethernet  HWaddr 00:B0:D0:B0:5C:32
  |   inet addr:192.168.40.54  Bcast:192.168.40.255  Mask:255.255.255.0
  |   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  |   RX packets:2891 errors:0 dropped:0 overruns:0 frame:0
  |   TX packets:1582 errors:0 dropped:0 overruns:0 carrier:0
  |   collisions:26 txqueuelen:100
  |   RX bytes:228352 (223.0 Kb)  TX bytes:294965 (288.0 Kb)
  |   Interrupt:11 Base address:0xecc0 Memory:fe2ff000-fe2ff038
  | 
  | eth1  Link encap:Ethernet  HWaddr 00:B0:D0:B0:5C:33
  |   BROADCAST MULTICAST  MTU:1500  Metric:1
  |   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  |   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  |   collisions:0 txqueuelen:100
  |   RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  |   Interrupt:10 Base address:0xec80 Memory:fe2fe000-fe2fe038
  | 
  | loLink encap:Local Loopback
  |   inet addr:127.0.0.1  Mask:255.0.0.0
  |   UP LOOPBACK RUNNING  MTU:16436  Metric:1
  |   RX packets:203 errors:0 dropped:0 overruns:0 frame:0
  |   TX packets:203 errors:0 dropped:0 overruns:0 carrier:0
  |   collisions:0 txqueuelen:0
  |   RX bytes:33599 (32.8 Kb)  TX bytes:33599 (32.8 Kb)
  | 
  | 
  | 
  | 

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

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


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - farming and clustering not working

2004-09-09 Thread jmer
Hi list;
Im trying to set up HTTP session replication as Load Balace scheme for our 
application, clustering and farming on two linux box using jboss3.2.3 and jdk1.4.0. 
From the payed PDF file its very straigth forward to setup HTTP session replication 
and but i lacks content on the Farming Section. From what i undestand when you run 
jboss run -c all clustering and farming are enabled by default. I started both node1 
 2 without touching anything on the all config file. When i try to deploy an ear 
file on the {JBOSS_HOME}/server/all/deploy on node1 it does get farm on node2? Reading 
form the previous posting files to be farmed must be deployed on /farm folder. ANd 
tried to put the file on {JBOSS_HOME}/server/all/farm, but same thing happened. Did i 
miss anything? or should jboss supposedly create a /farm folder inside /deploy 
directory cause mine does'nt?...any help would be appreciated.

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

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


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - setsockopt IP_ADD_MEMBERSHIP failed

2004-09-09 Thread jmer
HI list tried to start one node and i get this error? whats causing this. Im using 
jboss-3.2.3 and jdk1.4.0 on top linox RDhat 9

2004-09-09 16:53:59,017 DEBUG [org.javagroups.DefaultPartition] [Thu Sep 9 16:53:59 
PHT 2004] [ERROR] JChannel.connect(): exception: java.net.SocketException
: setsockopt IP_ADD_MEMBERSHIP failed: No such device
2004-09-09 16:53:59,024 ERROR [org.jboss.ha.framework.server.ClusterPartition] 
Starting failed
ChannelException: java.net.SocketException: setsockopt IP_ADD_MEMBERSHIP failed: No 
such device
at org.jgroups.JChannel.connect(JChannel.java:224)
at 
org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:291)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)


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

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


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: setJMSExpiration() dont seem to work

2004-07-22 Thread jmer
I agree when you say  anonymous wrote : You can also provide the expiration time as 
part of the user message headers, which do get copied over to the DLQ message.. So by 
changing the TTL on the DLQ the original message expiration increment by what is set 
in the TTL seconds so the message never get expired. How do i make it the message go, 
cause in reality this will eat a lot of resources.

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

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


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: weird hang-ups

2004-05-20 Thread jmer
i had experience this too on linux box 9, so i make a watch dog script to restart 
jboss is things when down. but anyway thanks to the environment export its all hone 
now. On windows we have'nt experience such things.

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

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


---
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] [Installation Configuration] - Re: SyslogAppender for Application not working

2004-05-11 Thread jmer
here is my config, but still i get mo logs /var/log/smart.log

log4j.xml:

  | appender name=SmartSQL class=org.apache.log4j.net.SyslogAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  param name= Facility  value= local6/ 
  |  param name= SyslogHost  value= localhost/ 
  |  param name=Threshold value=info/
  |  param name= FacilityPrinting  value= true/ 
  |  layout class=org.apache.log4j.PatternLayout
  |   param name=ConversionPattern value=[%-1p] %c %m%n/
  |  /layout
  | /appender

  | root
  |  appender-ref ref=SmartSQL/
  |  appender-ref ref=CONSOLE/
  | appender-ref ref=FILE/
  | /root
  | 

syslog.conf

  | local6.*/var/log/smart.log
  | 

/etc/rc.d/init/syslog:

  | SYSLOGD_OPTIONS=-r -m 0
  | 
did i miss something?


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

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


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: JbossMQ Error at Heavly load

2004-05-11 Thread jmer
Thank you the reply , greatly appricaited. 

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

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


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - JbossMQ Error at Heavly load

2004-05-07 Thread jmer
Hi list;
   Im using jboss-3.2.2 as server. Im doing a load testing my MDB using Jmeter.My 
MDB does is read a Object message from a queue and query a stored procedure on sql 
server(select) and  dump the result to a mysql database and finally create a message 
and send to another on which another application listened. Having configured my Thread 
threshold to 100 and 0 ramp-up period on Jmeter, i notice that i exncounter error 
during the testing. Attached is the error

.jboss.mq.Connection] Connection failure:
org.jboss.mq.SpyJMSException: Connection Failed; - nested throwable: 
(java.io.IOException: ping timeout.)
at org.jboss.mq.Connection.asynchFailure(Connection.java:718)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1311)
at 
EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.IOException: ping timeout.
at org.jboss.mq.Connection$PingTask.run(Connection.java:1303)
... 2 more
2004-05-07 17:37:23,242 WARN  [org.jboss.mq.Connection] Connection failure:
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: 
(java.io.EOFException)
at org.jboss.mq.Connection.asynchFailure(Connection.java:718)
at 
org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:394)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:331)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2591)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:837)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:278)
... 1 more

below are my *-ds.xml config 

no-tx-datasource
jndi-nameMSSQLDS/jndi-name

connection-urljdbc:microsoft:sqlserver://192.168.40.166:1433;SelectMethod=cursor;DatabaseName=Blackberry/connection-url

driver-classcom.microsoft.jdbc.sqlserver.SQLServerDriver/driver-class
user-namesa/user-name

!-- sql to call when connection is created
new-connection-sqlsome arbitrary sql/new-connection-sql
--
!-- sql to call on an existing pooled connection when it is obtained 
from pool 
check-valid-connection-sqlsome arbitrary sql/check-valid-connection-sql
--
/no-tx-datasource


 and 


no-tx-datasource
jndi-nameMySqlDS/jndi-name
connection-urljdbc:mysql://192.168.80.211:3306/smart/connection-url
driver-classorg.gjt.mm.mysql.Driver/driver-class
user-nameopenjms/user-name
openjms
/no-tx-datasource
no-tx-datasource
jndi-nameMyUtil/jndi-name

connection-urljdbc:mysql://192.168.80.211:3306/SmartApp/connection-url
driver-classorg.gjt.mm.mysql.Driver/driver-class
user-nameopenjms/user-name
openjms
/no-tx-datasource


Help!!!

Many thanks;
joseph





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

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


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: JbossMQ Error at Heavly load

2004-05-07 Thread jmer
We are deleveloping our codes on windows platform and deployed them on Linux box. Just 
an add, a servlet receives incoming xml and send it to QueueA on which MyMDB consumes 
it. The sqlserver reside from other box while mysql and jboss reside on same box. I 
also assumed that the server (linux) is not responding beacause error appearead 
overnight on the logs,but when i try to send another message it got process. By the 
way i check on the destination queue from jmx-console and i saw 3 message stuck, maybe 
this is causing the error on the log. Will extending the ping period resolved this 
issue? 

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

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


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - SyslogAppender for Application not working

2004-05-07 Thread jmer
Hi list;
Im trying to point my Application log to syslog. Currently i define this on 
jboss-3.2.3 log4j.xml. jboss running on Linux box 9

 

param name= Facility  value= local6/ 
param name= FacilityPrinting  value= true/ 
param name= SyslogHost  value= localhost/ 

  and
  

appender-ref ref=SmartSQL/


on my Linux box i added -r on syslogd start/stop and added level6.* 
/var/log/test.log on syslog.conf. But when i restarted the server,  test.log was 
created on /var/log.I called log4j via logger on my application


Logger smartlog = Logger.getLogger(smart);


 but when i try to test my application on jboss, System out is showed on the console 
but no logs on test.log? am i missing something?




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

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


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: setJMSExpiration() dont seem to work

2004-04-20 Thread jmer
Thanks fot the help i modified the standardjboss.xml and set 

invoker-proxy-binding
message-driven-bean
invoker-mbeandefault/invoker-mbean

proxy-factoryorg.jboss.ejb.plugins.jms.JMSContainerInvoker/proxy-factory
proxy-factory-config
DefaultJMSProvider
StdJMSPool
15
1

10

queue/DLQ
10
6


/proxy-factory-config
/invoker-proxy-binding

i also change the Quesender on my servlet to:
search.send(tm,DeliveryMode.PERSISTENT, 4, 6);

from my comsumer (MDB1) ,I now get the JMSExpiration. My problem now is when i force 
exception to occur and message is delivered to DLQ. Another MDB (DLQMDBean) consumes 
the message and redeliver to message to queA.  I got another JMSExpiration on my 
(MDB1) not the old JMSExpiration set by the sender(servlet) and when i just use 
send_buff_info.send(msg) i get 0. how do i get the old JMSExpiration set by my 
servlet? or im missing something ?

//get connection lookup
Context iniCtx = getInitialContext();
QueueConnectionFactory factory = 
(QueueConnectionFactory) iniCtx.lookup(ConnectionFactory);
Queue queA = (Queue) 
iniCtx.lookup(queue/SmartQueueA);
conn = factory.createQueueConnection();
session = 
conn.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
conn.start();   
 
//Send a  msgs to queB
QueueSender send_buff_info = 
session.createSender(queA);
ObjectMessage mydoc = session.createObjectMessage();
//mydoc.setObject((Serializable) doc);

//mydoc.setStringProperty(MessageFormat,FromQueueA);
//send_buff_info.send(msg);
send_buff_info.send(msg,DeliveryMode.PERSISTENT, 4, 
6);

send_buff_info.close();
conn.stop();
session.close();
conn.close();

Many thanks;
jmer

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: setJMSExpiration() dont seem to work

2004-04-20 Thread jmer
Thank you once again for the enlightenment. By the way i use 
messageDrivenContext.setRollbackOnly().  

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - setJMSExpiration() dont seem to work

2004-04-19 Thread jmer
Hi list;
I using the following on my development env.: jboss-3.2.2 server, window2000 OS, 
jbossIDE for eclipse. Currently in using a servlet a to send and ObjectMessage to a 
queue(A) which is cosumed by an MDB bean. The Message is rollback to the queue(A) 
incase  exception is encountered on the MDB and will be send to the DLQ on the 10th 
retry(default config on jboss).  To handle the DLQ i created another MDB bean to 
resend message back to the queue(A). The senario now is a never ending 
rollback-to-queue(A)-on-10th try-to--DLQ-and-back-to-queue(A) until all thing when 
well. To resolved this i added setJMSExpiration(6) on my ObjectMessage before 
sending it to queue(A). I was expecting the message to expired but setJMSExpiration 
seems not to be working. I tried to print the JMSExpiration() on the MDB side but i 
get 0. Did i miss something???

Many thanks;
jmer

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

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


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user