[jboss-user] [JBoss Messaging Users] - jBoss 4.2.3GA and Websphere MQ 7.0

2009-11-02 Thread sjunejo
Hi,

I think this is the closest forum to post my message on. 

Currently, I am configuring jBoss 4.2.3GA with IBM Websphere MQ Server 7.0. I 
am using following link to setup the configurations;

http://www.jboss.org/community/wiki/UsingWebSphereMQSeriesWithJBossASPart4#Overview

I followed the instructions step by step with no exception at all during 
startup. Also I deployed my web application successfully but when I tried to 
USE it I am having following error message on screen as well as on jBoss 
console;

Error Message

11:59:46,985 INFO  [STDOUT] 2009-11-02 11:59:46,985 [http-0.0.0.0-8080-1] ERROR 
com.temenos.t24browser.comms.JMSConnector  - Destination is not an instance of 
SpyDestination queue://T24QM/t24OFSQueue

Where T24QM is my Queue Manager and t24OFSQueue is local queue

What could be the reason for this error message?

Please help;

Thanks
--
SJunejo


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4263472
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: jBoss 4.2.3GA and Websphere MQ 7.0

2009-11-02 Thread sjunejo
I found the problem and resolved it. Actually I was looking for 'JNDI' name in 
incorect format.

I was using following in my jboss-web.xml (in web application) and jboss.xml 
(in mdb);

Incorrect Reference

resource-ref
  | res-ref-namejms/jmsConnectionFactory/res-ref-name
  | res-typejavax.jms.ConnectionFactory/res-type
  | jndi-namewmq/myFC/jndi-name
  | /resource-ref

Where 'wmq/myFC' is connection factory I defined to use MQ Server adaptor. I 
edited the above part in both (In Web application and MDB) jboss-web.xml and 
jboss.xml a follows and it worked;

Correct Reference

resource-ref
  | res-ref-namejms/jmsConnectionFactory/res-ref-name
  | res-typejavax.jms.ConnectionFactory/res-type
  | jndi-namejava:wmq/myFC/jndi-name
  | /resource-ref

Hope this will help someone in the future.

--
SJunejo

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4263512
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Websphere MQ 7.0 - jBoss 4.2.3 Clustering

2009-11-02 Thread sjunejo
Hi,

I just configured jBoss 4.2.3 GA to use WebSphere MQ Server as its JMS service 
provider successfully.

Now I want to implement the same on my jBoss Cluster (containg two application 
servers) that both application server instances should use WebSphere MQ Server 
as JMS provider. 

For that do I need to configure anything extra or just copy everything (new 
configuration releated to configure MQ Server only) from 'default' instnace to 
'all' and run these two instances on two machines and I am good to go???

If anyone knows a good tutorial to configure above setup (with optimisation) 
please provide a link here.

Thanks

--
SJunejo

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4263522
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering] - Websphere MQ 7.0 - jBoss 4.2.3 Clustering

2009-11-02 Thread sjunejo
Hi,

I just configured jBoss 4.2.3 GA to use WebSphere MQ Server as its JMS service 
provider successfully.

Now I want to implement the same on my jBoss Cluster (containg two application 
servers) that both application server instances should use WebSphere MQ Server 
as JMS provider.

For that do I need to configure anything extra or just copy everything (new 
configuration releated to configure MQ Server only) from 'default' instnace to 
'all' and run these two instances on two machines and I am good to go???

If anyone knows a good tutorial to configure above setup (with optimisation) 
please provide a link here.

Thanks

-- 
SJunejo

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4263523
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Websphere MQ 7.0 - jBoss 4.2.3 Clustering

2009-11-02 Thread sjunejo
Sure. No Prob!

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4263526
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: jBoss Cluster jvmRoute Value and HTTP Server Request Pro

2009-07-27 Thread sjunejo

I found my above huge descriptive problem working now. 

1) First of all I changed the entire machine because there are some netwroking 
issues with that as I can not access my jboss using IP and Tomcat status on web 
console was showing that jBoss is only bind with 127.0.0.1.

2) Secondly when I copied over the same setup to other machine with no network 
issues i had same issue. I just copied over my working server directory to 
other server and changed the name to Server2 with unique ServerPeerID and its 
start working. 

3) One more thing which is worth mentioning here is that I was using Service 
Binding Manager with port-01 settings which I just changed back to default.

saisurya_bhasker

I think you miss posted your above POST...anyway I am not a huge jboss geek 
like other people here but just copy your(part of) 'web.xml' where you have 
defined the distributable tag. It should be;



That's it.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246120
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Making Cluster jBoss Messaging Scalable

2009-07-27 Thread sjunejo
I am sorry I made a mistake in writting. I mean messages should get processed 
by both app server.

When my browser put message onto queue jBoss should distribute that message 
according to load on each server or even round robin fashion or any recomneded 
policy. In short load balanacing on messaging level (JMS level).

Is it possible

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Making Cluster jBoss Messaging Scalable

2009-07-27 Thread sjunejo
Thanks very much.

So it means the jBoss messaging is by-default scalable??? 

We don't need to apply different settings to reroute messages to other nodes if 
local queue is not present and jboss messaging will do it auto matically for us.

I have two servers in a cluster both have their own distributed queues. Let say 
If I delete my request and response queue  from one of the node message will be 
redirected automatically to other node?... I dont have to set any clustered 
PostOffice or anything???

By the way how to delete a queue once deployed??Lately I was jut playing 
around and try to change the 'Clustered' attribute of a deployed and started 
queue to true and it gives me exception that (something like that)

 'Queue property Cluster = true can not be applied as the same queue has 
already been deployed as Cluster = false. Delete the queue first and then 
create again.'

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246152
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Making Cluster jBoss Messaging Scalable

2009-07-27 Thread sjunejo
hmmmthats make some sense..could you plz refer some good example for 
'Clustered POST Office' implementation as I have already tried one but :-(

Anyway...Thanks again for the clarificationcheers :-)

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246180
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - jBoss Messaging With Non-Transactional DLQ

2009-07-27 Thread sjunejo
Hi,
We have a clustered JBoss deployment with an MDB which takes messages from a 
queue and forwards them to an external EIS. We have also configured a second 
MDB which pulls messages from the DLQ. This works fine as long as we configure 
the MDBs to use container-managed XA transactions but when we use Bean managed 
(local) transaction then JBoss messaging does not forward messages to the DLQ 
when the MDB throws an exception. Is it possible to configure a jBoss messaging 
(1.4) to forward messages to a DLQ when the MDB causing the exception has been 
configured to use local transactions?

Many thanks


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246216
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - jBoss Cluster jvmRoute Value and HTTP Server Request Problem

2009-07-24 Thread sjunejo
Hi,

I am using jboss 4.2.3GA release for clustring with Apache 2.2 HTTP Server as a 
load balancer. I have cluster consist of two nodes. I deployed in the following 
way;

1) Installe jBoss messaging for clustring (MySQL as a shared database in nodes) 
using automated installtion using xml file in 'utils' folder.

ant -f release-admin.xml -Dmessaging.config.source=all 
-Dmessaging.config.name=LCHServer1

and complete the installtion with some extra steps.

2) Alter following attribute to true in 
C:\jboss-4.2.3.GA\server\LCHServer1\deploy\jboss-web.deployer\META-INF\jboss-service.xml
 for clustring jboss.

true

2) Edit following attribute with jvmRoute in 
C:\jboss-4.2.3.GA\server\LCHServer2\deploy\jboss-web.deployer\server.xml

 Engine name=jboss.web defaultHost=localhost jvmRoute=LCHServer1

3) I have configred both my app servers to use exactly the same TCP 
configuration to connect to each other as follows [both on windows so loopback 
is true.;


  | Config
  | TCP bind_addr=10.44.5.89 start_port=7800 loopback=true
  |  tcp_nodelay=true
  |  recv_buf_size=2000
  |  send_buf_size=64
  |  discard_incompatible_packets=true
  |  enable_bundling=false
  |  max_bundle_size=64000
  |  max_bundle_timeout=30
  |  use_incoming_packet_handler=true
  |  use_outgoing_packet_handler=false
  |  down_thread=false up_thread=false
  |  use_send_queues=false
  |  sock_conn_timeout=300
  |  skip_suspected_members=true/
  | TCPPING initial_hosts=10.44.5.83[7800] port_range=1
  |  timeout=3000
  |  down_thread=false up_thread=false
  |  num_initial_members=1/
  | MERGE2 max_interval=10
  | down_thread=false up_thread=false 
min_interval=2/
  | FD_SOCK/
  | !--down_thread=false up_thread=false/ Part of the FD_SOCK 
above but doesn't require fro low load setup--
  | FD timeout=1 max_tries=5 down_thread=false 
up_thread=false shun=true/
  | VERIFY_SUSPECT timeout=1500 down_thread=false 
up_thread=false/
  | pbcast.NAKACK max_xmit_size=6
  |use_mcast_xmit=true gc_lag=0
  |retransmit_timeout=300,600,1200,2400,4800
  |down_thread=false up_thread=false
  |discard_delivered_msgs=true/
  | pbcast.STABLE stability_delay=1000 desired_avg_gossip=5
  |down_thread=false up_thread=false
  |max_bytes=40/
  | pbcast.GMS print_local_addr=true join_timeout=3000
  | down_thread=false up_thread=false
  | join_retry_timeout=2000 shun=true
  | view_bundling=true/
  | pbcast.STATE_TRANSFER down_thread=false up_thread=false 
use_flush=false/
  |  /Config
  | 

4) I copied my MDB, destination-service.xml (holding clustered queues) and 
Browser application into '*\server\LCHServer1\farm' directory and sart the 
server (All application got deploye in the end if you notice in bold) and it 
got started properly with no errors [Some of the server startup output]


  | C:\jboss-4.2.3.GA\bincall run.bat -b 0.0.0.0 -c LCHServer1
  | 
===
  | 
  |   JBoss Bootstrap Environment
  | 
  |   JBOSS_HOME: C:\jboss-4.2.3.GA
  | 
  |   JAVA: C:\jdk1.6.0_13\bin\java
  | 
  |   JAVA_OPTS: 
-Djava.util.logging.config.file=C:\jdk1.6.0_13\jre\lib\logging.properties 
-Dprogram.name=run.bat -server -Xms128m -Xmx512m 
-Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.ser
  | ver.gcInterval=360
  | 
  |   CLASSPATH: C:\jdk1.6.0_13\lib\tools.jar;C:\jboss-4.2.3.GA\bin\run.jar
  | 
  | 
===
  | 
  | 09:28:37,797 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 09:28:37,813 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: 
SVNTag=JBoss_4_2_3_GA date=200807181417)
  | 09:28:37,813 INFO  [Server] Home Dir: C:\jboss-4.2.3.GA
  | 09:28:37,813 INFO  [Server] Home URL: file:/C:/jboss-4.2.3.GA/
  | 09:28:37,813 INFO  [Server] Patch URL: null
  | 09:28:37,813 INFO  [Server] Server Name: LCHServer1
  | 09:28:37,813 INFO  [Server] Server Home Dir: 
C:\jboss-4.2.3.GA\server\LCHServer1
  | 09:28:37,828 INFO  [Server] Server Home URL: 
file:/C:/jboss-4.2.3.GA/server/LCHServer1/
  | 09:28:37,828 INFO  [Server] Server Log Dir: 
C:\jboss-4.2.3.GA\server\LCHServer1\log
  | 09:28:37,828 INFO  [Server] Server Temp Dir: 
C:\jboss-4.2.3.GA\server\LCHServer1\tmp
  | 09:28:37,828 INFO  [Server] Root Deployment Filename: jboss-service.xml
 

[jboss-user] [JBoss Messaging] - Message not re-delivered to Specified OR Default DLQ

2009-07-24 Thread sjunejo
Hi,

I have some strange problem here. I am using jboss 4.2.3GA with jboss messaging 
1.4.

I have defined deployed following destination using '/farm' method in my 
cluster consist of two nodes as follows

*-destination-service.xml


  | ?xml version=1.0 encoding=UTF-8?
  | server
  | 
  |   mbean code=org.jboss.jms.server.destination.QueueService
  |   name=jboss.messaging.destination:service=Queue,name=t24OFSQueue
  |   xmbean-dd=xmdesc/Queue-xmbean.xml
  | depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends
  | dependsjboss.messaging:service=PostOffice/depends
  | attribute name=Clusteredtrue/attribute
  | attribute name=MaxDeliveryAttempts1/attribute
  | attribute name=RedeliveryDelay0/attribute
  | attribute 
name=DLQjboss.messaging.destination:service=Queue,name=t24OFSDLQ/attribute
  |   /mbean
  | 
  |   mbean code=org.jboss.jms.server.destination.QueueService
  |name=jboss.messaging.destination:service=Queue,name=t24OFSDLQ
  |xmbean-dd=xmdesc/Queue-xmbean.xml
  | depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends
  | dependsjboss.messaging:service=PostOffice/depends
  | attribute name=Clusteredfalse/attribute
  |   /mbean
  |   
  |   mbean code=org.jboss.jms.server.destination.QueueService
  |   name=jboss.messaging.destination:service=Queue,name=t24OFSReplyQueue
  |   xmbean-dd=xmdesc/Queue-xmbean.xml
  | depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends
  | dependsjboss.messaging:service=PostOffice/depends
  | attribute name=Clusteredtrue/attribute
  |   /mbean
  | /server 
  | 
  | 

Above will successfuly deploy following three queues and my MDB's are  
successfuly binding to it.

Request Queue  :   t24OFSQueue
Response Queue:   t24OFSReplyQueue
Custom DLQ  :   t24OFSDLQ

Now problem is when my MDB fails to post message to destination the message 
should get redirected to my custom DLQ but its NOT and jboss console shows me 
following exception only in which there is not even name of redirection or 
anything. * Strange thing is the message is not even redirected to default 
DLQ (queue/DLQ) created by jboss messaging destination-service.xml**


  | 10:57:33,543 WARN  [JBossMessageProducer] JBoss Messaging does not support 
disabling message ID generation
  | 10:57:33,651 ERROR [STDERR] 24-Jul-2009 10:57:33 
com.jbase.jremote.io.JRemoteSocketConnection send
  | WARNING: Failed to write message
  | 10:57:33,655 WARN  [TxConnectionManager] Connection error occured: 
org.jboss.resource.connectionmanager.txconnectionmanager$txconnectioneventliste...@6755f302[state=normal
 mc=com.jbase.jremote.jc
  | a.jremotemanagedconnect...@66b378c2 handles=0 lastUse=1248428656709 
permit=false trackByTx=false 
mcp=org.jboss.resource.connectionmanager.jbossmanagedconnectionpool$onep...@10bd3d3b
 context=org.j
  | boss.resource.connectionmanager.internalmanagedconnectionp...@77fef512 
xaresource=org.jboss.resource.connectionmanager.txconnectionmanager$localxaresou...@38bae4a
 txSync=null]
  | com.jbase.jremote.JRemoteException: Failed to write message - Connection 
reset by peer: socket write error
  | at 
com.jbase.jremote.io.JRemoteSocketConnection.send(JRemoteSocketConnection.java:103)
  | at 
com.jbase.jremote.io.InterceptorConnection.send(InterceptorConnection.java:89)
  | at 
com.jbase.jremote.io.AbstractJRemoteConnection.sendWaitForResponse(AbstractJRemoteConnection.java:47)
  | at 
com.jbase.jremote.io.JConnectionImpl.time(JConnectionImpl.java:281)
  | at 
com.jbase.jremote.jca.JRemoteManagedConnection.isAlive(JRemoteManagedConnection.java:341)
  | at 
com.jbase.jremote.jca.JRemoteManagedConnectionFactory.matchManagedConnections(JRemoteManagedConnectionFactory.java:177)
  | at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:213)
  | at 
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:575)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)
  | at 
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
  | at 
com.jbase.jremote.jca.JRemoteConnectionFactoryImpl.getConnection(JRemoteConnectionFactoryImpl.java:121)
  | at 
com.jbase.jremote.jca.JRemoteConnectionFactoryImpl.getConnection(JRemoteConnectionFactoryImpl.java:104)
  | at 

[jboss-user] [JBoss Messaging] - Re: Message not re-delivered to Specified OR Default DLQ

2009-07-24 Thread sjunejo

Network Problem!!!

No...I failed my MDB INTENTIONALY... I mean i stoped my Database server listner 
on port 20005 so my MDB will fail to post message and mesage should get 
redirected to custom or even default DLQ where one more of my MDB is waiting to 
fetch message from DLQ and post it port 20003 on the same or anyother instance 
of database server on any port or address using my DLQ resource adaptor.

Above is one of my FailOver requirements when one of the database server goes 
down. 

Exception for connection to 127.0.0.1 on port 20005 is from my resource adaptor 
which is been used by my default MDB(Normal flow when everything is UP and 
running and HAPPY)

Hope this helps:-)

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245799
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message not re-delivered to Specified OR Default DLQ

2009-07-24 Thread sjunejo
hmmm thats something new.Where do I have to change my config

Following are my ejb-jar.xml and jboss.xml used in MDB.

ejb-jar.xml


  | ?xml version=1.0 encoding=UTF-8?
  | ejb-jar id=EJBJar_OfsMessageMDB version=2.1 
xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd;
  | display-nameOFSMessage/display-name
  | enterprise-beans
  | message-driven id=MessageDriven_OfsMessageMDB
  | display-nameOFSMessage Bean/display-name
  | ejb-nameOFSMessageMDB/ejb-name
  | ejb-classcom.temenos.ofsmessage.mdb.OFSMessageMDB/ejb-class
  | messaging-typejavax.jms.MessageListener/messaging-type
  | transaction-typeBean/transaction-type
  | 
message-destination-typejavax.jms.Queue/message-destination-type 
  | activation-config
  | activation-config-property
  | 
activation-config-property-nameacknowledgeMode/activation-config-property-name
  | 
activation-config-property-valueAuto-acknowledge/activation-config-property-value
  | /activation-config-property
  | /activation-config
  | resource-ref id=ResourceRef_jmsQueueConnectionFactory
  | descriptionT24 Queue Connection Factory/description
  | res-ref-namejms/jmsConnectionFactory/res-ref-name
  | res-typejavax.jms.QueueConnectionFactory/res-type
  | res-authContainer/res-auth
  | /resource-ref
  | resource-ref id=ResourceRef_t24ConnectionFactory
  | descriptionT24 JCA Connection Factory/description
  | res-ref-namejca/t24ConnectionFactory/res-ref-name
  | res-typecom.jbase.jremote.JConnectionFactory/res-type
  | res-authContainer/res-auth
  | /resource-ref
  | resource-ref id=ResourceRef_t24OFSReplyQueue
  | descriptionOFS reply queue/description
  | res-ref-namequeue/t24OFSReplyQueue/res-ref-name
  | res-typejavax.jms.Queue/res-type
  | res-authContainer/res-auth
  | /resource-ref
  | /message-driven
  |   
  |   message-driven id=MessageDriven_OfsMessageMDB_DLQ
  | display-nameOFSMessage Bean DLQ/display-name
  | ejb-nameOFSMessageMDB_DLQ/ejb-name
  | ejb-classcom.temenos.ofsmessage.mdb.OFSMessageMDB/ejb-class
  | messaging-typejavax.jms.MessageListener/messaging-type
  | transaction-typeBean/transaction-type
  | message-destination-typejavax.jms.Queue/message-destination-type
  | activation-config
  |   activation-config-property
  | 
activation-config-property-nameacknowledgeMode/activation-config-property-name
  | 
activation-config-property-valueAuto-acknowledge/activation-config-property-value
  |   /activation-config-property
  | /activation-config
  | resource-ref id=ResourceRef_jmsQueueConnectionFactory_DLQ
  |   descriptionT24 Queue Connection Factory/description
  |   res-ref-namejms/jmsConnectionFactory/res-ref-name
  |   res-typejavax.jms.QueueConnectionFactory/res-type
  |   res-authContainer/res-auth
  | /resource-ref
  | resource-ref id=ResourceRef_t24ConnectionFactory_DLQ
  |   descriptionT24 JCA Connection Factory/description
  |   res-ref-namejca/t24ConnectionFactory/res-ref-name
  |   res-typecom.jbase.jremote.JConnectionFactory/res-type
  |   res-authContainer/res-auth
  | /resource-ref
  | resource-ref id=ResourceRef_t24OFSReplyQueue_DLQ
  |   descriptionOFS reply queue/description
  |   res-ref-namequeue/t24OFSReplyQueue/res-ref-name
  |   res-typejavax.jms.Queue/res-type
  |   res-authContainer/res-auth
  | /resource-ref
  |   /message-driven
  | /enterprise-beans
  | /ejb-jar
  | 

jboss.xml


  | ?xml version=1.0 encoding=UTF-8?
  |  
  | !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 4.0//EN
  |   http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd;
  | 
  | jboss
  | enterprise-beans
  | message-driven
  | ejb-nameOFSMessageMDB/ejb-name
  | destination-jndi-namequeue/t24OFSQueue/destination-jndi-name
  | resource-ref
  | res-ref-namejms/jmsConnectionFactory/res-ref-name
  | jndi-namejava:/ConnectionFactory/jndi-name
  | /resource-ref
  | resource-ref
  | res-ref-namequeue/t24OFSReplyQueue/res-ref-name
  | !-- res-typejavax.jms.Queue/res-type
  | --
  | jndi-namequeue/t24OFSReplyQueue/jndi-name
  | /resource-ref
  | resource-ref
 

[jboss-user] [JBoss Messaging] - Re: Message not re-delivered to Specified OR Default DLQ

2009-07-24 Thread sjunejo
Hi Andy,

Thanks for you help. It solved the problem. 

I have to change following xml in my MDB to get this thing work.

jboss.xml to use 'java:/jmsXA' connection factory instead of 
'java:/ConnectionFactory'.

ejb-jar.xml

Add the following lines in the end of file.


  | assembly-descriptor
  | container-transaction
  |   method
  | ejb-nameOFSMessageMDB/ejb-name
  | method-name*/method-name
  |   /method
  |   !-- NotSupported|Supports|Required|RequiresNew|Mandatory|Never --
  |   trans-attributeRequired/trans-attribute
  | /container-transaction
  | 
  | container-transaction
  |   method
  | ejb-nameOFSMessageMDB_DLQ/ejb-name
  | method-name*/method-name
  |   /method
  |   !-- NotSupported|Supports|Required|RequiresNew|Mandatory|Never --
  |   trans-attributeRequired/trans-attribute
  | /container-transaction
  |   /assembly-descriptor
  | 

Thanks again :-)

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245837
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: jBoss Cluster jvmRoute Value and HTTP Server Request Pro

2009-07-24 Thread sjunejo
Now I found that even If I shutdown my Server1 and only Server2 is up and 
running.

I applied http://localhost/BrowserWeb/servlet/BrowserServlet in my address bar 
and it loads the main page. but when I submit my user name and password servlet 
got stuck and i have this exception on jboss console.


  | 14:25:59,059 ERROR [CoyoteAdapter] An exception or error occurred in the 
container during the request processing
  | java.lang.RuntimeException: JvmRouteValve.checkJvmRoute(): Tomcat JvmRoute 
is null. Need to assign a value in Tomcat serv
  | at 
org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:106)
  | at 
org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:81)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
  | at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
  | at 
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
  | at java.lang.Thread.run(Unknown Source)
  | 

please help this is happening even when its try to replicate the session in 
absence of other server :-(

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Making Cluster jBoss Messaging Scalable

2009-07-24 Thread sjunejo
Hi,

I have just implemented jBoss messaging in a cluster bearing High availability 
in mind and its working. I am using MySQL as my shared database. Now I want to 
scale my setup say If my browser put any message to my Queue (Clustered Queue) 
it should be get processed by both of my app servers running on different 
machines and when they get response back they put message back to response 
queue and my browser knows where to look for response message I have an 
idea about HAJNDI but i am not if this is the correct approach.

I am using Apache as my Web Server load balancing. What is a method from which 
I can load balance my JMS.

I was searching and found out about Clustered Post Office. Does this has 
anything to do with scalability. 

Can anyone please guide to proper setup or example to implement it???

Thanks

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245919
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossMQ] - Re: DLQ not recieving messages upon Exception

2009-07-23 Thread sjunejo
This is to support above post having complete setup details for better 
debugging the problem.

How to redirect message to default DLQ in jBoss AS 4.2.3GA?.

DLQ here is the one which is created by jBoss when we start it as run.bat -b 
0.0.0.0 -c all [Note: I want it to use cluster setup] along with some other 
default queues called A,B,C,D,ex... with two of my queues like t24OFSQueue and 
t24ReplyQueue. When My MDB fail to post message to server it gives an exception 
where I think by default the message resides in t24OFSQueue should get 
redirected to DLQ [jndi: queue/DLQ] where one other MDB is waiting and post 
message to some other instance of my server.

I have deployed following in my Jboss_Home/server/all/deploy directory;

1)  BrowserWeb.warSuccessfully deployed web application which is 
putting message on queue and fetching messages back from reply queue.
2)  Jremote-ra.rar   Successfully deployed resource adapter 
which provides connectivity to the database server on port 20005 using first 
connection factory in server-ds.xml below. If database server service goes down 
on port 20005 my primary MDB will give an exception here message should get 
redirected to jBoss default DLQ and my backup MDB_DLQ  should read message from 
DLQ and will try to use second connection factory which will try to connect on 
port 20003 where my database server is alive.

Server-ds.xml (Deployment Descriptor uses above resource adaptor)

?xml version=1.0 encoding=utf-8?
  | 
  | !-- 

 --
  | !--
  --
  | !--  JBoss Server Configuration
  --
  | !--
  --
  | !--  jRemote resource adapter deployment for JBoss, configured for local 
connection  --
  | !--
  --
  | !-- 

 --
  | 
  | connection-factories
  | 
  |   tx-connection-factory
  | jndi-namejca/t24ConnectionFactory/jndi-name
  | 
  | rar-namejremote-ra.rar/rar-name
  | 
connection-definitioncom.jbase.jremote.JConnectionFactory/connection-definition
  | 
  | config-property name=host 
type=java.lang.String10.44.5.138/config-property --
  | config-property name=port 
type=java.lang.Integer20005/config-property
  | 
  | config-property name=allowInput 
type=java.lang.Booleantrue/config-property
  | 
  | config-property name=compression 
type=java.lang.Booleantrue/config-property
  | config-property name=compressionThreshold 
type=java.lang.Integer2048/config-property
  | 
  | !--pooling parameters--
  | min-pool-size1/min-pool-size
  | max-pool-size10/max-pool-size
  | prefilltrue/prefill
  | 
  |   /tx-connection-factory
  | 
  |   tx-connection-factory
  | jndi-namejca/t24ConnectionFactory_DLQ/jndi-name
  | 
  | rar-namejremote-ra.rar/rar-name
  | 
connection-definitioncom.jbase.jremote.JConnectionFactory/connection-definition
  | 
  | config-property name=host 
type=java.lang.String10.44.5.138/config-property --
  | config-property name=port 
type=java.lang.Integer20003/config-property
  | 
  | config-property name=allowInput 
type=java.lang.Booleantrue/config-property
  | 
  | config-property name=compression 
type=java.lang.Booleantrue/config-property
  | config-property name=compressionThreshold 
type=java.lang.Integer2048/config-property
  | 
  | !--pooling parameters
  | min-pool-size1/min-pool-size--
  | 
  | max-pool-size10/max-pool-size
  | 
  | !--prefilltrue/prefill--
  | 
  |   /tx-connection-factory
  |  
  | /connection-factories

Destination-service.xml (For JMS)


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | !-- $Id: jbossmq-destinations-service.xml 25907 2004-11-16 04:32:39Z ejort 
$ --
  | 
  | !-- 
  || This file defines the default Queues and Topics that JBossMQ
  || ships with.  The default Queues and Topics are used by the 
  || JBoss test suite and by the sample jms programs.
  ||
  || You can add other destinations to this file, or you can create other
  || *-service.xml files to contain your application's destinations.
  |  --
  | 
  | server
  |   !-- Destination without a configured SecurityManager or without a 
  |a SecurityConf will default to role guest with read=true, write=true,
  |create=false.
  |   --
  |   mbean code=org.jboss.mq.server.jmx.Queue
  |name=jboss.mq.destination:service=Queue,name=t24OFSQueue
  | depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends
  |   /mbean
  |   mbean code=org.jboss.mq.server.jmx.Queue
  |

[jboss-user] [JBoss Messaging] - Re: DLQ Question

2009-07-20 Thread sjunejo
Hi jgilbert,

I have seen this post of yours and wondring ow did you manage to transfer the 
message to DLQ at first place??

I have a defualt DLQ created in jboss 4.2.3 and I am using jboss:mq (jboss 
builtin) but upon exception my message is resting in RequestQueue rather then 
redirected to DLQ where I have MDB for processing.

Any Idea how to configure atleast that

Thanks

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244613
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: DLQ not recieving messages upon Exception

2009-07-20 Thread sjunejo
Thanks I have posted it there as well. Any suggestions and comments will be 
appreciated anywhere :)

Admin: Please close this topic if its not relevant here.

Thanks :)

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossMQ] - DLQ not recieving messages upon Exception

2009-07-20 Thread sjunejo
Hi All, 

I posted the following issue on Jboss Messaging earlier. Am I in right place 
this time??? :)

For now I am running single jBoss 4.2.3GA (which is going to be part of a jBoss 
cluster). I want to test the JMS FailOver. I am using two Queues called 'Queue' 
where my browser will put message and MDB will post it to my remote app server 
let say port '20005' using Resource Adaptor and 'ReplyQueue' from where 
response will be fetched and give it back to browser. 

Now I have stoped my app server on 20005 and started back on 20003. In the 
meantime I have deployed one more MDB called MDB-DLQ which will get activated 
when default DLQ will recieve message when my first MDB should get failed to 
post message. 

I have check the jBoss console and it shows that my Queue depth is '1' but 
after failure message is not re-directed to defaul jBoss DLQ (DLQ depth= 0) 
where my other MDB is waiting??? 

My configuartions are... 

destinations-service.xml 


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | !-- $Id: jbossmq-destinations-service.xml 25907 2004-11-16 04:32:39Z ejort 
$ --
  | 
  | !-- 
  || This file defines the default Queues and Topics that JBossMQ
  || ships with.  The default Queues and Topics are used by the 
  || JBoss test suite and by the sample jms programs.
  ||
  || You can add other destinations to this file, or you can create other
  || *-service.xml files to contain your application's destinations.
  |  --
  | 
  | server
  |   !-- Destination without a configured SecurityManager or without a 
  |a SecurityConf will default to role guest with read=true, write=true,
  |create=false.
  |   --
  |   mbean code=org.jboss.mq.server.jmx.Queue
  |  name=jboss.mq.destination:service=Queue,name=Queue
  | depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends
  |   /mbean
  |   mbean code=org.jboss.mq.server.jmx.Queue
  |  name=jboss.mq.destination:service=Queue,name=ReplyQueue
  | depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends
  |   /mbean
  |   /server 
  | 

For More Info: there is default DLQ present when I start my jBoss using 
following command with above custom queues.

run.bat -b 0.0.0.0 -c all

Note: -c all -- because I am going to start my other instance when I am going 
to finish testing this one to make it cluster.

Any help and suggestions will be appreciated :)

Regards,

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - DLQ not recieving messages upon Exception

2009-07-15 Thread sjunejo
Hi All,

For now I am running single jBoss 4.2.3GA (which is going to be part of a jBoss 
cluster). I want to test the JMS FailOver. I am using two Queues called 'Queue' 
where my browser will put message and MDB will post it to my remote app server 
let say port '20005' using Resource Adaptor and 'ReplyQueue' from where 
response will be fetched and give it back to browser.

Now I have stoped my app server on 20005 and started back on 20003. In the 
meantime I have deployed one more MDB called MDB-DLQ which will get activated 
when default DLQ will recieve message when my first DLQ should get failed to 
post message.

I have check the jBoss cosole and it shows that my Queue depth is '1' but after 
failure message is not re-directed to defaul jBoss DLQ (DLQ depth= 0) where my 
other MDB is waiting???

My configuartions are...

destinations-service.xml

?xml version=1.0 encoding=UTF-8?
  | 
  | !-- $Id: jbossmq-destinations-service.xml 25907 2004-11-16 04:32:39Z ejort 
$ --
  | 
  | !-- 
  || This file defines the default Queues and Topics that JBossMQ
  || ships with.  The default Queues and Topics are used by the 
  || JBoss test suite and by the sample jms programs.
  ||
  || You can add other destinations to this file, or you can create other
  || *-service.xml files to contain your application's destinations.
  |  --
  | 
  | server
  |   !-- Destination without a configured SecurityManager or without a 
  |a SecurityConf will default to role guest with read=true, write=true,
  |create=false.
  |   --
  |   mbean code=org.jboss.mq.server.jmx.Queue
  |  name=jboss.mq.destination:service=Queue,name=Queue
  | depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends
  |   /mbean
  |   mbean code=org.jboss.mq.server.jmx.Queue
  |  name=jboss.mq.destination:service=Queue,name=ReplyQueue
  | depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends
  |   /mbean
  |   
  | /server 
  | 

Do I have to specify to redeliver the message to DLQ??? or whats missing 
here...???...jBoss should redeliver the message by itself...how to configure 
it

Thanks

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243806
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: ORA-12519 on jboss-4.2.3.GA cluster

2009-07-14 Thread sjunejo
Hi,

Could it possible to have document which you have followed to even create a 
cluster using jBoss 4.2.3GA. I didn't find any guid where to even start.

Thanks



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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243483
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Implementation JMS Failover (Clustring) In jBoss 4.2.3 GA

2009-06-29 Thread sjunejo
Hi All,

I search through internet and this forum but couldn't find a complete guid 
through which I can even start. Some of the documents mention on 'Home Page' of 
jBoss Clustring talking about some cluster-service.xml and cluster folder in my 
deploy directiry but i dont have anything here.can anyone please provide me 
some inof on how to setup a clusterw ith four jboss server instances. I am 
attaching a failover diagram in this post for better understanding.

[img]http://img37.imageshack.us/i/ideak.png/%5D%5BIMG%5Dhttp://img37.imageshack.us/img37/962/ideak.th.png[/img]

Server 1 and Server 2 will hold my Web Application and possible targets of each 
other in case of failure where Server 3 and Server 4 will hold my Message MDB 
and possible targets for each other in case of failure. All three Queues should 
be distributed destinations cluster wide.

FYI: I have already implemeted the same using WebLogic 10.3.

Is it going to be simillar using jBoss.

Your help will be appreciated.

Thanks  Regards,

Sheeraz

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240774
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security JAAS/JBoss] - Re: How to configure

2009-03-03 Thread sjunejo
Same problem with me...:(

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214587
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user