[jboss-user] [JBoss Remoting Users] - Problem with multiple ethernet adapters

2009-10-28 Thread mayankmit2002
Setup
-
Server Name : Server001

IBM Blade Server
-> Two Ethernet adapters eth0 (100 Mbps) and eth1 (1000 Mbps)
->  eth0: 150.158.73.49
->  eth1: 192.168.200.49

Debian 5 Installed
Jboss 4.2.3
Jboss Remoting 2.4.0 SP1
Jboss Messaging 1.4.2

Host file entry:

  | 127.0.0.1   localhost
  | 150.158.73.49   Server001   Server001
  | 

Scenario
---

Jboss is bound to "Server001" 

lookup Code 


  | final Properties props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  | props.put("jnp.sotimeout", "2000");
  | props.put("jnp.timeout", "2000");
  | props.put(Context.PROVIDER_URL, 
java.lang.System.getProperty("bind.address") + ":1100"); // HA-JNDI port.
  | 
  | 
  | String partitionName = 
java.lang.System.getProperty("jboss.partition.name", 
java.lang.System.getenv("COMPUTERNAME") + "_PARTITION");
  | partitionName = partitionName.toUpperCase();
  | 
  | // for auto discovery through partition name
  |  props.put(NamingContext.JNP_PARTITION_NAME, partitionName);
  |  props.put(NamingContext.JNP_DISCOVERY_GROUP, "230.0.0.4");// 
Default
  | props.put(NamingContext.JNP_DISCOVERY_PORT, "1102");// Default
  | props.put(NamingContext.JNP_DISABLE_DISCOVERY, "false");

Problem
-

now the problem is, some time we have seen that, Jboss starts normally without 
any exception and is looking at eth0 but suddently it starts looking up at 
eth1, thus unable to lookup deployed services.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262663#4262663

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262663
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA] - Re: Datasource Failover Notification

2009-10-27 Thread mayankmit2002

  | 
  | 
  | 
  | PostgresDS
  |   
org.postgresql.xa.PGXADataSource
  |   ${data.source}
  |   5432
  |   smd
  |   
  |   systemmgr
  |   cms10
  |   ServerName   
  |   , 
  |   
  |   
  | 
  |   
  |  PostgreSQL 8.0
  |   
  | 
  |   32
  |   5
  |   20
  |   0 
  |   3
  |   0 
  |   true
  |   select 
version()
  | 
  | 
  | 
  | ArgusDS
  |   
org.postgresql.xa.PGXADataSource
  |   ${data.source}
  |   5432
  |   smd
  |   
  |   systemmgr
  |   cms10
  |   ServerName   
  |   ,
  |   
  |   
  | 
  |   
  |  PostgreSQL 8.0
  |   
  | 
  |   32
  |   5
  |   20
  |   0 
  |   3
  |   0 
  |   true
  |   select 
version()
  | 
  | 
  | 
  | DefaultDS
  |   
org.postgresql.xa.PGXADataSource
  |   ${data.source}
  |   5432
  |   jms
  |   
  |   systemmgr
  |   cms10
  |   ServerName   
  |   ,
  | 
  |   
  | 
  |   
  |  PostgreSQL 8.0
  |   
  | 
  |   32
  |   5
  |   20
  |   0 
  |   3
  |   0 
  |   true
  |   select 
version()
  | 
  | 
  | 
  | BMSDS
  |   
org.postgresql.xa.PGXADataSource
  |   ${data.source}
  |   5432
  |   bms
  |   systemmgr
  |   cms10
  |   ServerName   
  |   ,
  | 
  |   
  | 
  |   
  |  PostgreSQL 8.0
  |   
  | 
  |   32
  |   5
  |   20
  |   0 
  |   3
  |   0 
  |   true
  |   select 
version()
  | 
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262395#4262395

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262395
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Remoting Users] - Re: Infinite lock in MicroSocketClientInvoker

2009-09-15 Thread mayankmit2002
Hello Ron,
   Thanks for correcting me, in my configuration "socket.check_connection" was 
set to true, after setting it to false. one of my problem is fixed.
   But till now, I'am just unable to set the socket time out at the client end 
when looking for the remote SLSB, even after setting the timeout value to 1 
ms 

I'm creating my connection in the following way.

  | private static Properties getContextProperties ()
  | {
  | final Properties props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  | props.put("jnp.sotimeout", "1");
  | //props.put("jnp.timeout", "1");
  | props.put("timeout", "1");
  | 
  | if (mActiveNetworkAddress != null)
  | {
  | props.put(NamingContext.JNP_LOCAL_ADDRESS, 
mActiveNetworkAddress);
  | }
  | 
  | // for HA-JNDI lookup
  |
  |String partitionName = 
java.lang.System.getProperty("cms.partition.name", 
java.lang.System.getenv("COMPUTERNAME") + "_PARTITION");
  | partitionName = partitionName.toUpperCase();
  | 
  | // for auto discovery through partition name
  | props.put(NamingContext.JNP_PARTITION_NAME, partitionName);
  | 
  | props.put(NamingContext.JNP_DISABLE_DISCOVERY, "false");
  | 
  | return props;
  | }
  | 

I am passing above properties in the inital context.
is am missing some thing?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255232#4255232

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255232
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Remoting Users] - Infinite lock in MicroSocketClientInvoker

2009-09-11 Thread mayankmit2002
I am running 2 Jboss Nodes (4.2.3GA) in a cluster with Jboss Messaging (1.4.2 
SP1) and Jboss remoting ( 2.4.0SP1).
  Now problem is that if I unplugs the network cable the clients get hanged. 
When I try to dig out the cause using JConsole. I found follwing thread dumps



  | ame: pool-3-thread-1
  | State: BLOCKED on java.util.linkedl...@2c1b1c owned by: Thread-29
  | Total blocked: 6  Total waited: 71
  | 
  | Stack trace: 
  | 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1058)
  | 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:757)
  | 
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:423)
  | 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:175)
  | 
org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:495)
  |- locked java.lang.obj...@caafcc
  | org.jboss.remoting.Client.setupClientLease(Client.java:1673)
  | org.jboss.remoting.Client.connect(Client.java:1575)
  | org.jboss.remoting.Client.connect(Client.java:487)
  | 
org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMSRemotingConnection.java:354)
  | java.security.AccessController.doPrivileged(Native Method)
  | 
org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:350)
  | 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:158)
  | 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
  | 
org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
  | 
org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
  | 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
  | 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
  | 
org.jboss.jms.client.container.ClusteringAspect.handleCreateConnectionDelegate(ClusteringAspect.java:134)
  | sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | java.lang.reflect.Method.invoke(Unknown Source)
  | org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
  | 
org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientClusteredConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
  | 
org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.createConnectionDelegate(ClientClusteredConnectionFactoryDelegate.java)
  | 
org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:129)
  | 
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:124)
  | 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | 
org.jboss.jms.client.delegate.ClientConsumerDelegate$close_N4742752445160157748.invokeNext(ClientConsumerDelegate$close_N4742752445160157748.java)
  | 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
  | 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | 
org.jboss.jms.client.delegate.ClientConsumerDelegate$close_N4742752445160157748.invokeNext(ClientConsumerDelegate$close_N4742752445160157748.java)
  | 
org.jboss.jms.client.delegate.ClientConsumerDelegate.close(ClientConsumerDelegate.java)
  | 
org.jboss.jms.client.container.ClosedInterceptor.maintainRelatives(ClosedInterceptor.java:306)
  | 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:165)
  | 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | 
org.jboss.jms.client.delegate.ClientSessionDelegate$closing_2473194355759371067.invokeNext(ClientSessionDelegate$closing_2473194355759371067.java)
  | 
org.jboss.jms.client.delegate.ClientSessionDelegate.closing(ClientSessionDelegate.java)
  | 
org.jboss.jms.client.container.ClosedInterceptor.maintainRelatives(ClosedInterceptor.java:305)
  | 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:165)
  | 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | 
org.jboss.jms.client.delegate.ClientConnectionDelegate$closing_2473194355759371067.invokeNext(ClientConnectionDelegate$c

[jboss-user] [Clustering] - Failover falied with network failure

2009-09-10 Thread mayankmit2002
I have 2 JBoss 4.2.3GA in a cluster with Jboss Messaging 1.4.2 SP1, on network 
failover following exceptions are comming:



  | 
  | 

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254489#4254489

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254489
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Failed to send changeRate message

2009-09-10 Thread mayankmit2002
I am experiencing the same problem,
I my case I've following scenario:
I have 2 nodes(JBOSS AS 4.2.3GA, on two machines) and client is on third 
machine, when I unplug the network cable of any of the server node, I an 
receiving following exception on the other server but there is no exception on 
the client.
   These exceptions are coming repeatedly untill JBOSS failover gets completed.




  | 
  | 

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254479#4254479

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254479
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA] - Datasource Failover Notification

2009-09-08 Thread mayankmit2002
my Environment


2 Postgres Servers v 8.3.1
1 JBoss AS 4.2.3

Setup
--

In my postgress-ds.xml, I've configured the datasource as HA-XA-datasource to 
use both servers.

Problem
-
Now I want to get notified when one data base is down to intimate the clients 
that database is down.


Is there any way to listen any such JMX notification that notifies about the 
database failover



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254079#4254079

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254079
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering] - HA Singleton service lookup in cluster

2009-08-24 Thread mayankmit2002
Setup
  2 instances of Jboss AS 4.2.3GA running on different machines
  One HA-Singleton (type Barrier) service is deployed on both nodes, and is 
responsible to perform some operation.
  One SLSB using our service to perform some operation and is clustered.
  One application, that calls the method of session bean.

Scenario
  My client is calling the session bean to fire an event and to perform some 
operations of my HA singleton service.

Problem
  Now my problem is that, when i tried to call the session beans method, on one 
of the node it says my HA service is not bound while on other it performs the 
operation.
  I even tried to look-up the HA service using RMIAdaper in my session bean but 
still it says service not bound.



  

  

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251126#4251126

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251126
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Missing messages after the failover of Jboss Node

2009-08-21 Thread mayankmit2002
Durable subscription didn't suites our requirement as, durable subscription 
supports only one active subscriber at a rime.
But, in our real scenario, we are targeting more than 1000 clients. 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250900#4250900

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250900
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Missing messages after the failover of Jboss Node

2009-08-21 Thread mayankmit2002
plz. find below my receiver code



  |   private void createJMSClient ()
  | {
  | final Properties props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  | props.put(Context.PROVIDER_URL, 
"NOICLT13274:1100,NOICLT22560:1100,NOICLT13407:1100");
  | props.put("jnp.timeout", "1000");
  | props.put("jnp.sotimeout", "1000");
  | props.put("jnp.disablediscovery", "true");
  | props.put("jnp.partitionName", "NOICLT22560_PARTITION");
  | 
  | try
  | {
  | final Context context = new InitialContext(props);
  | ConnectionFactory mTopicConnectionFactory = (ConnectionFactory) 
context.lookup("ClusteredConnectionFactory");
  | System.out.println(mTopicConnectionFactory);
  | Topic mTopic = (Topic) context.lookup("topic/CMSPublic");
  | 
  | Connection mTopicConnection = 
mTopicConnectionFactory.createConnection();
  | Session mTopicSession = mTopicConnection.createSession(false, 
Session.AUTO_ACKNOWLEDGE);
  | 
  | // Create subscriber
  | MessageConsumer mSubscriber = 
mTopicSession.createConsumer(mTopic);
  | mSubscriber.setMessageListener(this);
  | mTopicConnection.setExceptionListener(this);
  | 
  | mTopicConnection.start();
  | isConnected = true;
  | }
  | catch (final CommunicationException anException)
  | {
  | // anException.printStackTrace();
  | System.err.println("Server is not avaliable!!! \n Trying to 
reconnect the server!!  " + anException.getMessage());
  | }
  | catch (final NamingException anException)
  | {
  | // anException.printStackTrace();
  | System.err.println("Server is not avaliable!!! \n Trying to 
reconnect the server!!  " + anException.getMessage());
  | }
  | 
  | catch (final JMSException anException)
  | {
  | // anException.printStackTrace();
  | System.err.println("Server is not avaliable!!! \n Trying to 
reconnect the server!!  " + anException.getMessage());
  | }
  | catch (Exception finalException)
  | {
  | // finalException.printStackTrace();
  | System.err.println("Exception while starting JMS event 
listener. You may not be able to receive event, please restart your 
application");
  | }
  | 
  | }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250896#4250896

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250896
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Missing messages after the failover of Jboss Node

2009-08-21 Thread mayankmit2002
Configuration:
  Jboss 4.2.3 GA
  Jboss Messaging 1.4.2-SP1 

  ClusteredConnectionFactory is loadbalanced and failover enabled
  Clustered and FailoverOnNodeLeave is set to true in PostOffice Service

  Setup:
  2 Nodes
  1 Sender ( invoking calls to session bean, resulting in JMS events to 
clustered topic)
 1 Receiver (Listing to the clustered topic, with ClusteredConnectionFactory)

Scenario:
  We are running a sender, which is placing the call to the session bean on 
every 500ms. This call results in three events every time. 
   We are also running the receiver  which is continuously listing to those 
events from the topic.

Problem:
  When i terminate one of my JBoss node in cluster, client pauses for few 
seconds and then resumes events from other node. But, some events are missed 
during this process.

plz. suggest 
 
   



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250894#4250894

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Receiving Messages from multiple nodes in a Cluster

2009-08-18 Thread mayankmit2002
The only problem in the approach described in the doc. is that i need to 
recompile my client every time i add any new node to my cluster. Instead I am 
looking for a solution, in which I just provide the partition name of the 
cluster and client itself detects all available nodes of that cluster. This 
approach avoids recompilation of the client if there is any change in the 
cluster; except the partition name.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250287#4250287

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250287
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Receiving Messages from multiple nodes in a Cluster

2009-08-17 Thread mayankmit2002
For whole setup, Iam using Jboss AS 4.2.3GA with Jboss Messaging 1.4.2-SP1

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250042#4250042

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250042
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Receiving Messages from multiple nodes in a Cluster

2009-08-17 Thread mayankmit2002
My application is that, in which I've a session bean which is called by the 
client and an event is fired from that bean on a topic. My JMS remote client is 
listening to that topic and performs some operations on the type of event 
fired. 
  The whole solution works fine if we have a single node in the cluster, 
but problem occurs when we have multiple nodes in the cluster. The scenario is :
   1.  Multiple nodes in the cluster, NOICLT22560 and NOICLT13294 and partition 
name is NOICLT22560_PARTITION.
   2.  The session bean responsible for firing the event is clustered and is 
firing the events on the topic using JmsXA.
  
Being clustered, the call from the client can be executed on any of the node 
and thus, event can be fired from any node.
   But now, what I want is a type of client that can bound to the partition 
name, instead of the node name to receive events from any of the node in the 
cluster.
   I tried a lot, but my client gets connected to any one of the node and 
listen events from that node only.

Here is my client code:

   
  | 
  | package com.abc.jbmtest.client;
  | 
  | 
  | import java.util.Properties;
  | 
  | import javax.jms.Connection;
  | import javax.jms.ConnectionFactory;
  | import javax.jms.ExceptionListener;
  | import javax.jms.JMSException;
  | import javax.jms.Message;
  | import javax.jms.MessageConsumer;
  | import javax.jms.MessageListener;
  | import javax.jms.ObjectMessage;
  | import javax.jms.Session;
  | import javax.jms.TextMessage;
  | import javax.jms.Topic;
  | import javax.naming.CommunicationException;
  | import javax.naming.Context;
  | import javax.naming.InitialContext;
  | import javax.naming.NamingException;
  | 
  | 
  | public class MessageListenerClient
  | implements MessageListener, ExceptionListener
  | {
  | 
  |   
  | public MessageListenerClient()
  | {
  | final Properties props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  | props.put(Context.PROVIDER_URL, 
"NOICLT13274:1100,NOICLT22560:1100");
  | //props.put("jnp.partitionname", "NOICLT22560_PARTITION");
  | //props.put(Context.PROVIDER_URL, 
"jnp://NOICLT13274:1099,jnp://NOICLT22560:1099 ");
  | 
  | try
  | {
  | final Context context = new InitialContext(props);
  | ConnectionFactory mTopicConnectionFactory = (ConnectionFactory) 
context.lookup("ConnectionFactory");
  | System.out.println(mTopicConnectionFactory);
  | Topic mTopic = (Topic) context.lookup("topic/CMSPublic");
  | 
  | 
  | Connection mTopicConnection = 
mTopicConnectionFactory.createConnection();
  | Session mTopicSession = mTopicConnection.createSession(true, 
Session.AUTO_ACKNOWLEDGE);
  | 
  | // Create subscriber
  | MessageConsumer mSubscriber = 
mTopicSession.createConsumer(mTopic);
  | mSubscriber.setMessageListener(this);
  | mTopicConnection.setExceptionListener(this);
  | 
  | mTopicConnection.start();
  | }
  | catch (final CommunicationException anException)
  | {
  | System.err.println("Server is not avaliable!!! \n Trying to 
reconnect the server!!  " + anException.getMessage());
  | }
  | catch (final NamingException anException)
  | {
  | System.err.println("Server is not avaliable!!! \n Trying to 
reconnect the server!!  " + anException.getMessage());
  | // stopJMSEvents();
  | // startJMSEvents();
  | }
  | catch (final JMSException anException)
  | {
  | System.err.println("Server is not avaliable!!! \n Trying to 
reconnect the server!!  " + anException.getMessage());
  |
  | }
  | 
  | catch (Exception finalException)
  | {
  | System.err.println("Exception while starting JMS event 
listener. You may not be able to receive event, please restart your 
application");
  | finalException.printStackTrace();
  | }
  |   
  | 
  | }
  | 
  | 
  |
  | @Override
  | public void onMessage (Message aMessage)
  | {
  | 
  | try
  | {
  | if (aMessage instanceof TextMessage)
  | {
  | TextMessage message;
  | message = (TextMessage) aMessage;
  | System.out.println("Message Reciieved -- " + 
message.getText());
  | }
  | else if (aMessage instanceof ObjectMessage)
  | {
  | ObjectMessage message = (ObjectMessage) aMessage;
  | System.out.println("Message Reciieved -- " + 
message.getObject());
  | }
  | else
  | {
  |

[jboss-user] [EJB/JBoss] - Jboss Cache in cluster

2009-07-14 Thread mayankmit2002
Hello All,
   I'am using Jboss Cache 1.4.1 SP9 with Jboss 4.2.3 and JDK 6.0 U 11, to 
replicate some of my date over different nodes in the cluster. 
now the problem is that,if any node comes back in the cluster, all other of my 
nodes looses their data. I just go through the Wiki and clustering guide to 
solve this issue, but just of no use.

my Cache configuration is 

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | jboss:service=Naming
  | jboss:service=TransactionManager
  |   
  | 
  | org.jboss.cache.JBossTransactionManagerLookup
  | 
  | 
  | 
  | REPEATABLE_READ
  | 
  | 
  | REPL_ASYNC
  | 
  |   
  |
  |
  |true
  | 
  |
  |1000
  | 
  |
  |0
  | 
  | 
  | 
  | TreeCache-Cluster
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | true
  | 
  | 
  | 5000
  | 
  | 
  | 1
  | 
  | 
  | 15000
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | false
  | 
  | /Session
  | 
  | true
  | 
  | 
  | 
  | 
  | org.jboss.cache.loader.ClusteredCacheLoader
  | 
  | 
  | timeout=3000
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243476#4243476

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243476
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Using ClusterPartitionMBean

2009-07-10 Thread mayankmit2002
I want to inject ClusterPartitionMBean into an another MBean to pull out 
cluster related information.
 But if I'm using 
 
  |@Resource
  |ClusterPartitionMBean mBean;
  |  

it is returning null, Can anyone help me, in finding out how to use this bean 
to pull out the required information

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242923#4242923

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242923
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: org.jboss.aop.NotFoundInDispatcherException under heavy

2009-07-09 Thread mayankmit2002
Hello,
 can u let me know to to release the memory acquired by the JBossMQ

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242748#4242748

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242748
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - MBean in Cluster

2009-07-02 Thread mayankmit2002
Hello All,
   I'm a newbie to Jboss Clustering service. I want to configure my MBean for 
clustering support, but dont know how to do it.
   is there any document which guide us to do so. I'm using annotations to to 
deploy the bean as MBean 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241465#4241465

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241465
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Binding Jboss to multiple IPs

2009-06-17 Thread mayankmit2002
Hello All,
  I have an application that run on Jboss AS 4.2.3 and running in a clustered 
environment, with SWT GUI client. 
  The applications works fine if there exists single LAN connection, but as 
soon we connect the Video LAN ( on this connection, high speed video data is 
coming) on other interface, client stops looking up the server. 
   But our requirement is that, we need both LAN's at same moment, 
  So, is it possible to bind the Jboss AS to multiple IP's with same post on 
same machine.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238215#4238215

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238215
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Transaction Commit Message

2009-03-05 Thread mayankmit2002
Hello All,
   I'm working on a module, in which some operations are to be performed only 
when transaction commit, 
   Is there any way to receive transaction related messages from Jboss

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215571#4215571

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215571
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - SOAP not working with Jboss 5

2009-03-05 Thread mayankmit2002
Hello All,

   We've an application that is exposed to the third party as a web service, 
Right now we are using Jboss 4.2.2 with JDK 1.6.0_11 on Windows XP machine.
   For test purpose, we've a .Net client, that connects to our service through 
SOAP. But now the problem is, when we deploy the same application on Jboss 
5.0.0 GA, our .Net client is unable to connect to our service. Although, wsdl 
is published well, and is accessible on the web ( we didn't make any changes in 
the context path or wsdl publish location). Whenever, our .Net clients now try 
to connect the service, following exception is thrown on the 
   
  | See the end of this message for details on invoking 
  | just-in-time (JIT) debugging instead of this dialog box.
  | 
  | ** Exception Text **
  | System.Security.SecurityException: Request for the permission of type 
'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089' failed.
  |at System.Security.CodeAccessSecurityEngine.Check(Object demand, 
StackCrawlMark& stackMark, Boolean isPermSet)
  |at System.Security.CodeAccessPermission.Demand()
  |at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)
  |at System.Net.HttpRequestCreator.Create(Uri Uri)
  |at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
  |at System.Net.WebRequest.Create(Uri requestUri)
  |at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)
  |at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri 
uri)
  |at 
System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri)
  |at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
methodName, Object[] parameters)
  |at 
CMS_API_Test.perspectiveService.PerspectiveMgtAPI.endSession(sessionId arg0)
  |at CMS_API_Test.Form1.cB_Connect_CheckedChanged(Object sender, EventArgs 
e)
  |at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
  |at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
  |at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
  |at CMS_API_Test.Form1.cB_Connect_CheckedChanged(Object sender, EventArgs 
e)
  |at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
  |at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
  |at System.Windows.Forms.CheckBox.OnClick(EventArgs e)
  |at System.Windows.Forms.CheckBox.OnMouseUp(MouseEventArgs mevent)
  |at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons 
button, Int32 clicks)
  |at System.Windows.Forms.Control.WndProc(Message& m)
  |at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  |at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  |at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  |at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, 
IntPtr wparam, IntPtr lparam)
  | The action that failed was:
  | Demand
  | The type of the first permission that failed was:
  | System.Net.WebPermission
  | The Zone of the assembly that failed was:
  | Intranet

but the same application is working fine with Jboss 4.2.2, 
Is there any change in the security attributes of Jboss WS, if any, how to 
modify them.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215570#4215570

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215570
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Custom MBean on JBoss 5.0.0 GA

2009-03-03 Thread mayankmit2002
Thnx Jaikiran, 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214467#4214467

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214467
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Custom MBean on JBoss 5.0.0 GA

2009-03-02 Thread mayankmit2002
Hello,
   I'm trying to migrate my application from Jboss 4.2.2 to Jboss 5.0.0 GA. My 
Application is like that, it has a MBean which initiates some threads that 
keeps listing to some socket, along with that, it also has a MDB, which needs 
to perform some task on receiving some messages from my another application.

Now the problem is that, when I try to deploy the existing application on this 
new AS ( 5.0.0 GA), MBean is not getting deployed, along with that, MDB gets 
deployed, but still it is not visible in JMX console.
  But, the same application is working fine on Jboss AS 4.2.2.

Following is the code:
package com.barco.cms.tcpip;
  | 
  | 
  | /**
  |  * TODO: Documentation to be done for type 'TelNetMBean'..
  |  * 
  |  */
  | 
  | public interface TelNetMBean
  | {
  | 
  | /**
  |  * This method is one of the life cycle method of MBean, will be 
invoked automatically while starting this service.
  |  * 
  |  * @throws Exception
  |  */
  | public void start ()
  | throws Exception;
  | 
  | 
  | /**
  |  * This method is one of the life cycle method of MBean, will be 
invoked automatically while stoping this service.
  |  * 
  |  * @throws Exception
  |  */
  | public void stop ()
  | throws Exception;
  | 
  | 
  | /**
  |  * This method is used to set the port of the TCP\IP server by JMX 
console.
  |  * 
  |  * @param aPort
  |  * @throws Exception
  |  */
  | public void setPort (String aPort)
  | throws Exception;;
  | 
  | 
  | }
  | 

  | package com.barco.cms.tcpip;
  | 
  | 
  | import java.io.IOException;
  | import java.net.InetSocketAddress;
  | import java.nio.charset.Charset;
  | 
  | import javax.jms.Session;
  | import javax.jms.Topic;
  | import javax.jms.TopicConnection;
  | import javax.jms.TopicConnectionFactory;
  | import javax.jms.TopicPublisher;
  | import javax.jms.TopicSession;
  | import javax.naming.InitialContext;
  | 
  | import org.apache.mina.common.ByteBuffer;
  | import org.apache.mina.common.IoAcceptor;
  | import org.apache.mina.common.SimpleByteBufferAllocator;
  | import org.apache.mina.filter.LoggingFilter;
  | import org.apache.mina.filter.codec.ProtocolCodecFilter;
  | import org.apache.mina.filter.codec.textline.TextLineCodecFactory;
  | import org.apache.mina.transport.socket.nio.SocketAcceptor;
  | import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
  | import org.jboss.annotation.ejb.Management;
  | import org.jboss.annotation.ejb.Service;
  | 
  | import com.barco.cms.foundation.logging.Logger;
  | 
  | 
  | /**
  |  * This is main class which acts as a TCP/IP Server for the clients.
  |  * 
  |  * @author srgk
  |  */
  | @Service(objectName = "com.barco.cms.tcpip:service=TelnetService", name = 
"com.barco.cms.tcpip:service=TelnetService")
  | @Management(TelNetMBean.class)
  | public class TelNetServer
  | implements TelNetMBean
  | {
  | 
  | // Member Variables
  | // 

  | 
  | private static int PORT = 4585; // Default Port 4585
  | private static Logger mLogger = null;
  | private IoAcceptor mAcceptor = null;
  | private InetSocketAddress mInetAddress = null;
  | private SocketAcceptorConfig mSktActConf = null;
  | 
  | static
  | {
  | mLogger = Logger.getLogger(TelNetServer.class);
  | }
  | 
  | 
  | /**
  |  * Main Method for starting the TCP/IP Server.
  |  * 
  |  * @param args
  |  * @throws IOException
  |  */
  | 
  | 
  | public static void main (final String[] args)
  | {
  | try
  | {
  | new TelNetServer().start();
  | }
  | catch (final Exception anException)
  | {
  | 
  | }
  | }
  | 
  | 
  | // /**
  | // * @see org.jboss.system.ServiceMBeanSupport#startService()
  | // */
  | // @Override
  | // protected void startService ()
  | // throws Exception
  | // {
  | // // TODO Auto-generated method stub
  | // super.startService();
  | // }
  | /**
  |  * @see com.barco.cms.tcpip.TelNetMBean#start()
  |  */
  | @Override
  | public void start ()
  | throws Exception
  | {
  | System.out.println("Hello");;
  | // Just to initiate the session threads for first time
  | ServerRequestHandler lServerRequestHandler = new 
ServerRequestHandler();
  | mInetAddress = new InetSocketAddress(System.getenv("COMPUTERNAME"), 
PORT);
  | 
  | ByteBuffer.setUseDirectBuffers(false);
  | ByteBuffer.setAllocator(new SimpleByteBufferAllocator());
  | 
  | mAcceptor = new SocketAcceptor();
  | 
  | mSktActConf = new SocketAcceptorConfig();
  | mSktActConf.getFilterChain().addLast("logger", new LoggingFilter());
  | mSktActConf.getFilterChain().addLast

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Topics messaging in Jboss 5.0.0 GA

2009-02-26 Thread mayankmit2002
Hello All,  
 I'm trying to configure JBoss 5.0.0 GA to provide Topic Messaging. As our 
product is already running on Jboss 4.2.2 and is working fine, but when I tried 
to make it compatible to Jboss 5.0.0, I'm getting following stack trace.

  | 16:29:27,078 WARN  [config] Unable to process deployment descriptor for 
context '/cms'
  | 16:29:28,890 INFO  [WSDLFilePublisher] WSDL published to: 
file:/D:/temp/mayank/softwares/jboss-5.0.0.GA/server/default/data/wsdl/PerspectiveManagement.jar/Persp
  | ectiveMgtAPI2741479052503334033.wsdl
  | 16:29:29,078 ERROR [ExceptionUtil] Topic[events] startService
  | java.lang.IllegalStateException: Cannot set paging params when active
  | at 
org.jboss.messaging.core.impl.PagingChannelSupport.setPagingParams(PagingChannelSupport.java:184)
  | at 
org.jboss.jms.server.destination.TopicService.startService(TopicService.java:90)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
  | at org.jboss.mq.server.jmx.Topic.start(Topic.java:277)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | at 
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
  | at $Proxy36.start(Unknown Source)
  | at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
  | at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
  | at 
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
  | at 
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
  | at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  | at 
org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  | at 
org.jboss.system.ServiceController.doChange(ServiceController.java:688)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:460)
  | at 
org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
  | at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
  | at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  | at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
  | at 
org.jboss.de

[jboss-user] [Management, JMX/JBoss] - Notifications in MBean

2009-01-13 Thread mayankmit2002
Hi All,
  I'm facing a unique problem, Basically i'm trying to send & recieve 
notifications from and within multiple MBean's. 
  For this, i tried a lot and even follow the steps specified on wiki ( 
http://www.jboss.org/community/docs/DOC-9713) . but failed to listen anything. 
I'm using JDK 1.6.0_03 and JBoss 4.2.3. The code is 


  | package com.aa.trial.mbean;
  | 
  | 
  | import java.util.Date;
  | 
  | import javax.management.Notification;
  | import javax.management.NotificationListener;
  | import javax.management.ObjectName;
  | 
  | import org.apache.log4j.Logger;
  | import org.jboss.annotation.ejb.Management;
  | import org.jboss.annotation.ejb.Service;
  | import org.jboss.monitor.services.NotificationListenerMBean;
  | import org.jboss.system.ListenerServiceMBeanSupport;
  | import org.jboss.system.ServiceMBeanSupport;
  | import org.jboss.varia.scheduler.Schedulable;
  | 
  | 
  | /**
  |  * TODO: Documentation to be done for type 'Trial'..
  |  * 
  |  * @author maym
  |  */
  | @Service(objectName = "com.aa.trial.mbean:service=TrialMBeanService")
  | @Management(TrialMBean.class)
  | public class TrialMBeanService
  | extends ListenerServiceMBeanSupport
  | implements TrialMBean, NotificationListenerMBean
  | {
  | 
  | 
  | private static Logger aLogger = null;
  | private ObjectName anObjectName = null;
  | 
  | static
  | {
  | aLogger = Logger.getLogger(TrialMBeanService.class);
  | }
  | 
  | 
  | /**
  |  * TODO: Documentation to be done for constructor 'TrialMBeanService', 
by 'maym'..
  |  */
  | public TrialMBeanService()
  | {
  | 
  | }
  | 
  | 
  | /**
  |  * @see com.aa.trial.mbean.TrialMBean#test()
  |  */
  | @Override
  | public void test ()
  | {
  | System.out.println("Hello !!! ");
  | 
  | }
  | 
  | 
  | /**
  |  * @see org.jboss.system.ServiceMBeanSupport#startService()
  |  */
  | @Override
  | protected void startService ()
  | throws Exception
  | {
  | // TODO Auto-generated method stub
  | super.subscribe(true);
  | }
  | 
  | 
  | /**
  |  * @see 
org.jboss.system.ListenerServiceMBeanSupport#handleNotification2(javax.management.Notification,
 java.lang.Object)
  |  */
  | @Override
  | public void handleNotification2 (Notification anNotification, Object 
anHandback)
  | {
  | // TODO Auto-generated method stub
  | log.debug("Notification Recieved!!!");
  | test();
  | }
  | 
  | 
  | /**
  |  * @see org.jboss.system.ServiceMBeanSupport#stopService()
  |  */
  | @Override
  | protected void stopService ()
  | throws Exception
  | {
  | // TODO Auto-generated method stub
  | super.unsubscribe();
  | }
  | 
  | 
  | /**
  |  * @see 
org.jboss.monitor.services.NotificationListenerMBean#getDynamicSubscriptions()
  |  */
  | @Override
  | public boolean getDynamicSubscriptions ()
  | {
  | // TODO Auto-generated method stub
  | return true;
  | }
  | 
  | 
  | /**
  |  * @see 
org.jboss.monitor.services.NotificationListenerMBean#getLogLevel()
  |  */
  | @Override
  | public String getLogLevel ()
  | {
  | // TODO Auto-generated method stub
  | return "DEBUG";
  | }
  | 
  | 
  | /**
  |  * @see 
org.jboss.monitor.services.NotificationListenerMBean#getNotificationCount()
  |  */
  | @Override
  | public long getNotificationCount ()
  | {
  | // TODO Auto-generated method stub
  | return super.getNextNotificationSequenceNumber() - 1;
  | 
  | }
  | 
  | 
  | /**
  |  * @see 
org.jboss.monitor.services.NotificationListenerMBean#getNotificationListener()
  |  */
  | @Override
  | public ObjectName getNotificationListener ()
  | {
  | return anObjectName;
  | }
  | 
  | 
  | /**
  |  * @see 
org.jboss.monitor.services.NotificationListenerMBean#setDynamicSubscriptions(boolean)
  |  */
  | @Override
  | public void setDynamicSubscriptions (boolean anArg0)
  | {
  | 
  | 
  | }
  | 
  | 
  | /**
  |  * @see 
org.jboss.monitor.services.NotificationListenerMBean#setLogLevel(java.lang.String)
  |  */
  | @Override
  | public void setLogLevel (String anArg0)
  | {
  | // TODO Auto-generated method stub
  | 
  | }
  | 
  | /**
  |  * @see 
org.jboss.monitor.services.NotificationListenerMBean#setNotificationListener(javax.management.ObjectName)
  |  */
  | @Override
  | public void setNotificationListener (ObjectName anArg0)
  | {
  | try
  | {
  | this.anObjectName = anArg0;
  | getServer().addNotificationListener(anArg0, this, null, null);
  | }
  | catch (Exception exception)
  | {
  | 

[jboss-user] [JNDI/Naming/Network] - Quartz service lookup

2008-10-23 Thread mayankmit2002
Hi,
I'm working on a project (I'm using JBoss 5.0.0 RC2) , where I need to 
schedule different tasks for different time. For that I'want to use Quartz 
scheduler, but I'm unable to trace its JNDI Name.
 Please, help me out.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184353#4184353

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184353
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Using Quartz Scheduler in JBoss 5.0.0 RC2

2008-10-10 Thread mayankmit2002
Hi All,
I'm developing an application, in which user can schedule number of task, 
tasks can be scheduled on the bases of time or day or both. For example,  User 
can configure a task that should run on every 4th hour on 
Friday of every week. For that I want to use Quartz, as I know it is provided 
with JBoss 5.0.0. But the problem is this I dont know how to use it, also I 
want to know that can we JNDI lookup the Quarts Scheduler service, like wise we 
have JNDI lookup for TimerService.
Can anybody help me??




  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181497#4181497

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181497
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuring JBoss 5.0.0 CR1 for MySQL

2008-09-29 Thread mayankmit2002
Hi Peter,
 i'm posting the complete stack trace for deployment of EJB jar.

==

  JBoss Bootstrap Environment

  JBOSS_HOME: E:\jboss-5.0.0.CR1

  JAVA: c:\program files\java\jdk1.6.0_10\bin\java

  JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m 
-XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=360 
-Dsun.rmi.dgc.server.gcInterval=360

  CLASSPATH: E:\jboss-5.0.0.CR1\bin\run.jar

===

09:40:41,863 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
09:40:41,863 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: 
SVNTag=JBoss_5_0_0_CR1 date=200806301254)
09:40:41,879 INFO  [ServerImpl] Home Dir: E:\jboss-5.0.0.CR1
09:40:41,879 INFO  [ServerImpl] Home URL: file:/E:/jboss-5.0.0.CR1/
09:40:41,879 INFO  [ServerImpl] Library URL: file:/E:/jboss-5.0.0.CR1/lib/
09:40:41,879 INFO  [ServerImpl] Patch URL: null
09:40:41,879 INFO  [ServerImpl] Server Name: default
09:40:41,879 INFO  [ServerImpl] Server Home Dir: 
E:\jboss-5.0.0.CR1\server\default
09:40:41,879 INFO  [ServerImpl] Server Home URL: 
file:/E:/jboss-5.0.0.CR1/server/default/
09:40:41,879 INFO  [ServerImpl] Server Data Dir: 
E:\jboss-5.0.0.CR1\server\default\data
09:40:41,879 INFO  [ServerImpl] Server Temp Dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:41,879 INFO  [ServerImpl] Server Config URL: 
file:/E:/jboss-5.0.0.CR1/server/default/conf/
09:40:41,879 INFO  [ServerImpl] Server Library URL: 
file:/E:/jboss-5.0.0.CR1/server/default/lib/
09:40:41,879 INFO  [ServerImpl] Root Deployment Filename: jboss-service.xml
09:40:42,854 INFO  [ServerImpl] Starting Microcontainer, 
bootstrapURL=file:/E:/jboss-5.0.0.CR1/server/default/conf/bootstrap.xml
09:40:44,127 INFO  [CopyMechanism] VFS temp dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:44,127 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
09:40:48,953 INFO  [ServerInfo] Java version: 1.6.0_10-beta,Sun Microsystems 
Inc.
09:40:48,953 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
11.0-b11,Sun Microsystems Inc.
09:40:48,953 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
09:40:49,173 INFO  [JMXKernel] Legacy JMX core initialized
09:40:51,516 INFO  [MetaDataAwareProfile] Using profile 
root:E:\jboss-5.0.0.CR1\server\default
09:40:56,106 INFO  [WebService] Using RMI server codebase: 
http://127.0.0.1:8083/
09:41:14,153 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader 
repository config: jboss.console:sar=console-mgr.sar for  
vfsfile:/E:/jboss-5.0.0.CR1/server/default/deploy/management/console-mgr.sar/ 
use classloading metadata not loader repository config
09:41:15,395 INFO  [AspectDeployer] Deploying xml into [EMAIL PROTECTED] for 
[EMAIL 
PROTECTED]:/E:/jboss-5.0.0.CR1/server/default/deploy/ejb3-interceptors-aop.xml}
09:42:18,041 INFO  [JMXConnectorServerService] JMX Connector server: 
service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
09:42:18,482 INFO  [MailService] Mail Service bound to java:/Mail
09:42:18,544 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY 
RISK. It has been detected that the MessageSucker component which sucks 
messages from one node to another has not had its password changed from the 
installation default. Please see the JBoss Messaging user guide for instru
ctions on how to do this.
09:42:19,598 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA 
version) - JBoss Inc.
09:42:19,598 INFO  [TransactionManagerService] Setting up property manager 
MBean and JMX layer
09:42:20,352 INFO  [TransactionManagerService] Starting recovery manager
09:42:20,793 INFO  [TransactionManagerService] Recovery manager started
09:42:20,808 INFO  [TransactionManagerService] Binding TransactionManager JNDI 
Reference
09:42:22,113 INFO  [AprLifecycleListener] The Apache Tomcat Native library 
which allows optimal performance in production environments was not found on 
the java.library.path: c:\program 
files\java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS
;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\Program 
Files\Java\jdk1.6.0_10\bin
09:42:22,239 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-127.0.0.1-8080
09:42:22,239 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
09:42:22,255 INFO  [Catalina] Initialization processed in 337 ms
09:42:22,255 INFO  [StandardService] Starting service jboss.web
09:42:22,255 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR3
09:42:22,380 INFO  [Catalina] Server startup in 127 ms
09:42:22,805 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-5.0.0.CR1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
09:42:22,820 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuring JBoss 5.0.0 CR1 for MySQL

2008-09-29 Thread mayankmit2002
Hi Peter,
 i'm posting the complete stack trace for deployment of EJB jar.

==

  JBoss Bootstrap Environment

  JBOSS_HOME: E:\jboss-5.0.0.CR1

  JAVA: c:\program files\java\jdk1.6.0_10\bin\java

  JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m 
-XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=360 
-Dsun.rmi.dgc.server.gcInterval=360

  CLASSPATH: E:\jboss-5.0.0.CR1\bin\run.jar

===

09:40:41,863 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
09:40:41,863 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: 
SVNTag=JBoss_5_0_0_CR1 date=200806301254)
09:40:41,879 INFO  [ServerImpl] Home Dir: E:\jboss-5.0.0.CR1
09:40:41,879 INFO  [ServerImpl] Home URL: file:/E:/jboss-5.0.0.CR1/
09:40:41,879 INFO  [ServerImpl] Library URL: file:/E:/jboss-5.0.0.CR1/lib/
09:40:41,879 INFO  [ServerImpl] Patch URL: null
09:40:41,879 INFO  [ServerImpl] Server Name: default
09:40:41,879 INFO  [ServerImpl] Server Home Dir: 
E:\jboss-5.0.0.CR1\server\default
09:40:41,879 INFO  [ServerImpl] Server Home URL: 
file:/E:/jboss-5.0.0.CR1/server/default/
09:40:41,879 INFO  [ServerImpl] Server Data Dir: 
E:\jboss-5.0.0.CR1\server\default\data
09:40:41,879 INFO  [ServerImpl] Server Temp Dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:41,879 INFO  [ServerImpl] Server Config URL: 
file:/E:/jboss-5.0.0.CR1/server/default/conf/
09:40:41,879 INFO  [ServerImpl] Server Library URL: 
file:/E:/jboss-5.0.0.CR1/server/default/lib/
09:40:41,879 INFO  [ServerImpl] Root Deployment Filename: jboss-service.xml
09:40:42,854 INFO  [ServerImpl] Starting Microcontainer, 
bootstrapURL=file:/E:/jboss-5.0.0.CR1/server/default/conf/bootstrap.xml
09:40:44,127 INFO  [CopyMechanism] VFS temp dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:44,127 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
09:40:48,953 INFO  [ServerInfo] Java version: 1.6.0_10-beta,Sun Microsystems 
Inc.
09:40:48,953 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
11.0-b11,Sun Microsystems Inc.
09:40:48,953 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
09:40:49,173 INFO  [JMXKernel] Legacy JMX core initialized
09:40:51,516 INFO  [MetaDataAwareProfile] Using profile 
root:E:\jboss-5.0.0.CR1\server\default
09:40:56,106 INFO  [WebService] Using RMI server codebase: 
http://127.0.0.1:8083/
09:41:14,153 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader 
repository config: jboss.console:sar=console-mgr.sar for  
vfsfile:/E:/jboss-5.0.0.CR1/server/default/deploy/management/console-mgr.sar/ 
use classloading metadata not loader repository config
09:41:15,395 INFO  [AspectDeployer] Deploying xml into [EMAIL PROTECTED] for 
[EMAIL 
PROTECTED]:/E:/jboss-5.0.0.CR1/server/default/deploy/ejb3-interceptors-aop.xml}
09:42:18,041 INFO  [JMXConnectorServerService] JMX Connector server: 
service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
09:42:18,482 INFO  [MailService] Mail Service bound to java:/Mail
09:42:18,544 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY 
RISK. It has been detected that the MessageSucker component which sucks 
messages from one node to another has not had its password changed from the 
installation default. Please see the JBoss Messaging user guide for instru
ctions on how to do this.
09:42:19,598 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA 
version) - JBoss Inc.
09:42:19,598 INFO  [TransactionManagerService] Setting up property manager 
MBean and JMX layer
09:42:20,352 INFO  [TransactionManagerService] Starting recovery manager
09:42:20,793 INFO  [TransactionManagerService] Recovery manager started
09:42:20,808 INFO  [TransactionManagerService] Binding TransactionManager JNDI 
Reference
09:42:22,113 INFO  [AprLifecycleListener] The Apache Tomcat Native library 
which allows optimal performance in production environments was not found on 
the java.library.path: c:\program 
files\java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS
;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\Program 
Files\Java\jdk1.6.0_10\bin
09:42:22,239 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-127.0.0.1-8080
09:42:22,239 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
09:42:22,255 INFO  [Catalina] Initialization processed in 337 ms
09:42:22,255 INFO  [StandardService] Starting service jboss.web
09:42:22,255 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR3
09:42:22,380 INFO  [Catalina] Server startup in 127 ms
09:42:22,805 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-5.0.0.CR1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
09:42:22,820 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuring JBoss 5.0.0 CR1 for MySQL

2008-09-29 Thread mayankmit2002
Hi Peter,
 i'm posting the complete stack trace for deployment of EJB jar.

==

  JBoss Bootstrap Environment

  JBOSS_HOME: E:\jboss-5.0.0.CR1

  JAVA: c:\program files\java\jdk1.6.0_10\bin\java

  JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m 
-XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=360 
-Dsun.rmi.dgc.server.gcInterval=360

  CLASSPATH: E:\jboss-5.0.0.CR1\bin\run.jar

===

09:40:41,863 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
09:40:41,863 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: 
SVNTag=JBoss_5_0_0_CR1 date=200806301254)
09:40:41,879 INFO  [ServerImpl] Home Dir: E:\jboss-5.0.0.CR1
09:40:41,879 INFO  [ServerImpl] Home URL: file:/E:/jboss-5.0.0.CR1/
09:40:41,879 INFO  [ServerImpl] Library URL: file:/E:/jboss-5.0.0.CR1/lib/
09:40:41,879 INFO  [ServerImpl] Patch URL: null
09:40:41,879 INFO  [ServerImpl] Server Name: default
09:40:41,879 INFO  [ServerImpl] Server Home Dir: 
E:\jboss-5.0.0.CR1\server\default
09:40:41,879 INFO  [ServerImpl] Server Home URL: 
file:/E:/jboss-5.0.0.CR1/server/default/
09:40:41,879 INFO  [ServerImpl] Server Data Dir: 
E:\jboss-5.0.0.CR1\server\default\data
09:40:41,879 INFO  [ServerImpl] Server Temp Dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:41,879 INFO  [ServerImpl] Server Config URL: 
file:/E:/jboss-5.0.0.CR1/server/default/conf/
09:40:41,879 INFO  [ServerImpl] Server Library URL: 
file:/E:/jboss-5.0.0.CR1/server/default/lib/
09:40:41,879 INFO  [ServerImpl] Root Deployment Filename: jboss-service.xml
09:40:42,854 INFO  [ServerImpl] Starting Microcontainer, 
bootstrapURL=file:/E:/jboss-5.0.0.CR1/server/default/conf/bootstrap.xml
09:40:44,127 INFO  [CopyMechanism] VFS temp dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:44,127 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
09:40:48,953 INFO  [ServerInfo] Java version: 1.6.0_10-beta,Sun Microsystems 
Inc.
09:40:48,953 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
11.0-b11,Sun Microsystems Inc.
09:40:48,953 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
09:40:49,173 INFO  [JMXKernel] Legacy JMX core initialized
09:40:51,516 INFO  [MetaDataAwareProfile] Using profile 
root:E:\jboss-5.0.0.CR1\server\default
09:40:56,106 INFO  [WebService] Using RMI server codebase: 
http://127.0.0.1:8083/
09:41:14,153 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader 
repository config: jboss.console:sar=console-mgr.sar for  
vfsfile:/E:/jboss-5.0.0.CR1/server/default/deploy/management/console-mgr.sar/ 
use classloading metadata not loader repository config
09:41:15,395 INFO  [AspectDeployer] Deploying xml into [EMAIL PROTECTED] for 
[EMAIL 
PROTECTED]:/E:/jboss-5.0.0.CR1/server/default/deploy/ejb3-interceptors-aop.xml}
09:42:18,041 INFO  [JMXConnectorServerService] JMX Connector server: 
service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
09:42:18,482 INFO  [MailService] Mail Service bound to java:/Mail
09:42:18,544 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY 
RISK. It has been detected that the MessageSucker component which sucks 
messages from one node to another has not had its password changed from the 
installation default. Please see the JBoss Messaging user guide for instru
ctions on how to do this.
09:42:19,598 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA 
version) - JBoss Inc.
09:42:19,598 INFO  [TransactionManagerService] Setting up property manager 
MBean and JMX layer
09:42:20,352 INFO  [TransactionManagerService] Starting recovery manager
09:42:20,793 INFO  [TransactionManagerService] Recovery manager started
09:42:20,808 INFO  [TransactionManagerService] Binding TransactionManager JNDI 
Reference
09:42:22,113 INFO  [AprLifecycleListener] The Apache Tomcat Native library 
which allows optimal performance in production environments was not found on 
the java.library.path: c:\program 
files\java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS
;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\Program 
Files\Java\jdk1.6.0_10\bin
09:42:22,239 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-127.0.0.1-8080
09:42:22,239 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
09:42:22,255 INFO  [Catalina] Initialization processed in 337 ms
09:42:22,255 INFO  [StandardService] Starting service jboss.web
09:42:22,255 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR3
09:42:22,380 INFO  [Catalina] Server startup in 127 ms
09:42:22,805 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-5.0.0.CR1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
09:42:22,820 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuring JBoss 5.0.0 CR1 for MySQL

2008-09-29 Thread mayankmit2002
Hi Peter,
 i'm posting the complete stack trace for deployment of EJB jar.

==

  JBoss Bootstrap Environment

  JBOSS_HOME: E:\jboss-5.0.0.CR1

  JAVA: c:\program files\java\jdk1.6.0_10\bin\java

  JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m 
-XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=360 
-Dsun.rmi.dgc.server.gcInterval=360

  CLASSPATH: E:\jboss-5.0.0.CR1\bin\run.jar

===

09:40:41,863 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
09:40:41,863 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: 
SVNTag=JBoss_5_0_0_CR1 date=200806301254)
09:40:41,879 INFO  [ServerImpl] Home Dir: E:\jboss-5.0.0.CR1
09:40:41,879 INFO  [ServerImpl] Home URL: file:/E:/jboss-5.0.0.CR1/
09:40:41,879 INFO  [ServerImpl] Library URL: file:/E:/jboss-5.0.0.CR1/lib/
09:40:41,879 INFO  [ServerImpl] Patch URL: null
09:40:41,879 INFO  [ServerImpl] Server Name: default
09:40:41,879 INFO  [ServerImpl] Server Home Dir: 
E:\jboss-5.0.0.CR1\server\default
09:40:41,879 INFO  [ServerImpl] Server Home URL: 
file:/E:/jboss-5.0.0.CR1/server/default/
09:40:41,879 INFO  [ServerImpl] Server Data Dir: 
E:\jboss-5.0.0.CR1\server\default\data
09:40:41,879 INFO  [ServerImpl] Server Temp Dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:41,879 INFO  [ServerImpl] Server Config URL: 
file:/E:/jboss-5.0.0.CR1/server/default/conf/
09:40:41,879 INFO  [ServerImpl] Server Library URL: 
file:/E:/jboss-5.0.0.CR1/server/default/lib/
09:40:41,879 INFO  [ServerImpl] Root Deployment Filename: jboss-service.xml
09:40:42,854 INFO  [ServerImpl] Starting Microcontainer, 
bootstrapURL=file:/E:/jboss-5.0.0.CR1/server/default/conf/bootstrap.xml
09:40:44,127 INFO  [CopyMechanism] VFS temp dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
09:40:44,127 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
09:40:48,953 INFO  [ServerInfo] Java version: 1.6.0_10-beta,Sun Microsystems 
Inc.
09:40:48,953 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
11.0-b11,Sun Microsystems Inc.
09:40:48,953 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
09:40:49,173 INFO  [JMXKernel] Legacy JMX core initialized
09:40:51,516 INFO  [MetaDataAwareProfile] Using profile 
root:E:\jboss-5.0.0.CR1\server\default
09:40:56,106 INFO  [WebService] Using RMI server codebase: 
http://127.0.0.1:8083/
09:41:14,153 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader 
repository config: jboss.console:sar=console-mgr.sar for  
vfsfile:/E:/jboss-5.0.0.CR1/server/default/deploy/management/console-mgr.sar/ 
use classloading metadata not loader repository config
09:41:15,395 INFO  [AspectDeployer] Deploying xml into [EMAIL PROTECTED] for 
[EMAIL 
PROTECTED]:/E:/jboss-5.0.0.CR1/server/default/deploy/ejb3-interceptors-aop.xml}
09:42:18,041 INFO  [JMXConnectorServerService] JMX Connector server: 
service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
09:42:18,482 INFO  [MailService] Mail Service bound to java:/Mail
09:42:18,544 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY 
RISK. It has been detected that the MessageSucker component which sucks 
messages from one node to another has not had its password changed from the 
installation default. Please see the JBoss Messaging user guide for instru
ctions on how to do this.
09:42:19,598 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA 
version) - JBoss Inc.
09:42:19,598 INFO  [TransactionManagerService] Setting up property manager 
MBean and JMX layer
09:42:20,352 INFO  [TransactionManagerService] Starting recovery manager
09:42:20,793 INFO  [TransactionManagerService] Recovery manager started
09:42:20,808 INFO  [TransactionManagerService] Binding TransactionManager JNDI 
Reference
09:42:22,113 INFO  [AprLifecycleListener] The Apache Tomcat Native library 
which allows optimal performance in production environments was not found on 
the java.library.path: c:\program 
files\java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS
;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\Program 
Files\Java\jdk1.6.0_10\bin
09:42:22,239 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-127.0.0.1-8080
09:42:22,239 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
09:42:22,255 INFO  [Catalina] Initialization processed in 337 ms
09:42:22,255 INFO  [StandardService] Starting service jboss.web
09:42:22,255 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR3
09:42:22,380 INFO  [Catalina] Server startup in 127 ms
09:42:22,805 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-5.0.0.CR1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
09:42:22,820 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuring JBoss 5.0.0 CR1 for MySQL

2008-09-27 Thread mayankmit2002
Hi Peter,
 First of all I would like to answer your question anonymous wrote : are 
attempting to replace the hsqldb with MySQL?
Yes, I waz trying to replace hssqldb with MySQL
Also, PU, here doesn't means Public Utilites, in this context PU stands for 
Persistent Unit (persistent.xml).
  yes, I tried both, i.e. deploying EJB before and after AS startup. In both 
cases I got the same result.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179206#4179206

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuring JBoss 5.0.0 CR1 for MySQL

2008-09-27 Thread mayankmit2002
Thnx Peter, 
this helped me a lot, but still I'm unable to deploy my existing EJB 3.0 
Jar on this 5.0 CR1, whenever I try to deploy the Jar, Jboss is unable to find 
the PU, but the same jar is working fine with JBoss 4.2.1
I'm putting my persistence.xml in META-INF folder.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179172#4179172

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179172
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Configuring JBoss 5.0.0 CR1 for MySQL

2008-09-25 Thread mayankmit2002
Hi All,
   I would like to use JBoss 5.0.0 for my development  with MySql5.1, but when 
on configuring the server I got following error:

===

  JBoss Bootstrap Environment

  JBOSS_HOME: E:\jboss-5.0.0.CR1

  JAVA: c:\program files\java\jdk1.6.0_10\bin\java

  JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m 
-XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=360 
-Dsun.rmi.dgc.server.gcInterval=360

  CLASSPATH: E:\jboss-5.0.0.CR1\bin\run.jar

===

21:24:32,618 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
21:24:32,618 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR1 (build: 
SVNTag=JBoss_5_0_0_CR1 date=200806301254)
21:24:32,618 INFO  [ServerImpl] Home Dir: E:\jboss-5.0.0.CR1
21:24:32,618 INFO  [ServerImpl] Home URL: file:/E:/jboss-5.0.0.CR1/
21:24:32,618 INFO  [ServerImpl] Library URL: file:/E:/jboss-5.0.0.CR1/lib/
21:24:32,618 INFO  [ServerImpl] Patch URL: null
21:24:32,618 INFO  [ServerImpl] Server Name: default
21:24:32,618 INFO  [ServerImpl] Server Home Dir: 
E:\jboss-5.0.0.CR1\server\default
21:24:32,618 INFO  [ServerImpl] Server Home URL: 
file:/E:/jboss-5.0.0.CR1/server/default/
21:24:32,618 INFO  [ServerImpl] Server Data Dir: 
E:\jboss-5.0.0.CR1\server\default\data
21:24:32,618 INFO  [ServerImpl] Server Temp Dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
21:24:32,868 INFO  [ServerImpl] Server Config URL: 
file:/E:/jboss-5.0.0.CR1/server/default/conf/
21:24:32,868 INFO  [ServerImpl] Server Library URL: 
file:/E:/jboss-5.0.0.CR1/server/default/lib/
21:24:32,868 INFO  [ServerImpl] Root Deployment Filename: jboss-service.xml
21:24:33,930 INFO  [ServerImpl] Starting Microcontainer, 
bootstrapURL=file:/E:/jboss-5.0.0.CR1/server/default/conf/bootstrap.xml
21:24:35,288 INFO  [CopyMechanism] VFS temp dir: 
E:\jboss-5.0.0.CR1\server\default\tmp
21:24:35,304 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
21:24:40,658 INFO  [ServerInfo] Java version: 1.6.0_10-beta,Sun Microsystems 
Inc.
21:24:40,658 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
11.0-b11,Sun Microsystems Inc.
21:24:40,658 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
21:24:41,174 INFO  [JMXKernel] Legacy JMX core initialized
21:24:43,469 INFO  [MetaDataAwareProfile] Using profile 
root:E:\jboss-5.0.0.CR1\server\default
21:24:48,480 INFO  [WebService] Using RMI server codebase: 
http://127.0.0.1:8083/
21:25:09,478 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader 
repository config: jboss.console:sar=console-mgr.sar for  
vfsfile:/E:/jboss-5.0.0.CR1/server/default/deploy/management/console-mgr.sar/ 
use classloading metadata not loader repository config
21:25:10,680 INFO  [AspectDeployer] Deploying xml into [EMAIL PROTECTED] for 
[EMAIL 
PROTECTED]:/E:/jboss-5.0.0.CR1/server/default/deploy/ejb3-interceptors-aop.xml}
21:26:20,161 INFO  [JMXConnectorServerService] JMX Connector server: 
service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
21:26:20,489 INFO  [MailService] Mail Service bound to java:/Mail
21:26:20,598 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY 
RISK. It has been detected that the MessageSucker component which sucks 
messages from one node to another has not had its password changed from the 
installation default. Please see the JBoss Messaging user guide for instru
ctions on how to do this.
21:26:21,770 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA 
version) - JBoss Inc.
21:26:21,770 INFO  [TransactionManagerService] Setting up property manager 
MBean and JMX layer
21:26:22,598 INFO  [TransactionManagerService] Starting recovery manager
21:26:23,035 INFO  [TransactionManagerService] Recovery manager started
21:26:23,035 INFO  [TransactionManagerService] Binding TransactionManager JNDI 
Reference
21:26:24,269 INFO  [AprLifecycleListener] The Apache Tomcat Native library 
which allows optimal performance in production environments was not found on 
the java.library.path: c:\program 
files\java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS
;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Program 
Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\Program 
Files\Java\jdk1.6.0_10\bin
21:26:24,394 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-127.0.0.1-8080
21:26:24,410 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
21:26:24,410 INFO  [Catalina] Initialization processed in 1003 ms
21:26:24,410 INFO  [StandardService] Starting service jboss.web
21:26:24,410 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR3
21:26:24,535 INFO  [Catalina] Server startup in 130 ms
21:26:25,004 INFO  [RARDeployment] Required license terms exist, view 
vfszip:/E:/jboss-5.0.0.CR1/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
21:26:25,035 INFO  [RARD