[jboss-user] [JBoss Messaging] - Re: Exception coming in creating our own Connection Factory

2009-02-19 Thread siddharth_2279
Hi, 

anonymous wrote : You can drop this file to 
jboss-5.0.0.GA\server\default\deploy and start the server. Please refer to the 
http example that comes up with jbm 1.4.1.GA.

I dropped the file at the said location at then I started the server. It 
worked. The server started without any exception. Thanks a lot. 

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

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


[jboss-user] [JBoss Messaging] - Re: Exception coming in creating our own Connection Factory

2009-02-18 Thread siddharth_2279
Hi, 
anonymous wrote : 
  | bisocket is the default transport JBM uses. you can find 
remoting-http-service.xml under 5.0.0.GA/docs/examples/jms directory. 

I found the file at this path. Now what do I do ? Do I copy this file at 
location (jboss-5.0.0.GA\server\default\deploy\messaging). Do I need to do 
anything else.? Now should I start the server ?

Please Help. Thanks in advance. 

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

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


[jboss-user] [JBoss Messaging] - Re: Exception coming in creating our own Connection Factory

2009-02-17 Thread siddharth_2279
Hi, 

anonymous wrote : You need to deploy the http remoting transport. There should 
be an example, remoting-http-service.xml.
  | 
  | The Remoting docs will have instructions on how to do this.

What do I need to do to deploy the http remoting transport. Where is this file 
: remoting-http-service.xml? I am able to see only the file 
remoting-bisocket-service.xml in the path 
(jboss-5.0.0.GA\server\default\deploy\messaging). 

Where are the remoting docs? Please tell me the path. 

Do I need to specifically deploy http remoting transport for the messaging 
examples.  We weren't required to do this in JBoss-4.2.2.G.A 

Please guide me. I am not able to proceed because of this. Thanks in advance. 


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

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


[jboss-user] [JBoss Messaging] - Re: Exception coming in creating our own Connection Factory

2009-02-17 Thread siddharth_2279
Hi, 

anonymous wrote : 
  | It looks like you configure the factory to use http transport but you 
didn't deploy it accordingly. If so you need to deploy the http transport. You 
can find in http example the sample http configure file. 

How do we do this? Where is the http example in the sample http configure 
file?. Do we need to deploy for http transport specially? 

I just uncommented the entry in the 
jboss-5.0.0.GA\server\default\deploy\messaging\connection-factories-service.xml 
for creating our own connection factory. I just uncommented the entry from here 
and started the server. When I started the server I got the trace which I just 
pasted in this post. 

How do I solve this exception? Please guide me. 

Thanks in advance. 

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

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


[jboss-user] [JBoss Messaging] - Re: Exception coming in creating our own Connection Factory

2009-02-15 Thread siddharth_2279
Hi All, 

Any update on my post. Please help me in solving this. I am not able to proceed 
because of this exception. I am again printing the whole console trace. 

===
  | 
  |   JBoss Bootstrap Environment
  | 
  |   JBOSS_HOME: C:\Softwares\jboss-5.0.0.GA
  | 
  |   JAVA: C:\Program Files\Java\jdk1.5.0_14\bin\java
  | 
  |   JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m 
-XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true 
-Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360
  | 
  |   CLASSPATH: C:\Softwares\jboss-5.0.0.GA\bin\run.jar
  | 
  | 
===
  | 
  | 23:22:36,687 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
  | 23:22:36,750 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA 
(build: SVNTag=JBoss_5_0_0_GA date=200812041714)
  | 23:22:36,750 INFO  [ServerImpl] Bootstrap URL: null
  | 23:22:36,750 INFO  [ServerImpl] Home Dir: C:\Softwares\jboss-5.0.0.GA
  | 23:22:36,750 INFO  [ServerImpl] Home URL: file:/C:/Softwares/jboss-5.0.0.GA/
  | 23:22:36,750 INFO  [ServerImpl] Library URL: 
file:/C:/Softwares/jboss-5.0.0.GA/lib/
  | 23:22:36,750 INFO  [ServerImpl] Patch URL: null
  | 23:22:36,750 INFO  [ServerImpl] Common Base URL: 
file:/C:/Softwares/jboss-5.0.0.GA/common/
  | 23:22:36,750 INFO  [ServerImpl] Common Library URL: 
file:/C:/Softwares/jboss-5.0.0.GA/common/lib/
  | 23:22:36,750 INFO  [ServerImpl] Server Name: default
  | 23:22:36,750 INFO  [ServerImpl] Server Base Dir: 
C:\Softwares\jboss-5.0.0.GA\server
  | 23:22:36,750 INFO  [ServerImpl] Server Base URL: 
file:/C:/Softwares/jboss-5.0.0.GA/server/
  | 23:22:36,750 INFO  [ServerImpl] Server Config URL: 
file:/C:/Softwares/jboss-5.0.0.GA/server/default/conf/
  | 23:22:36,750 INFO  [ServerImpl] Server Home Dir: 
C:\Softwares\jboss-5.0.0.GA\server\default
  | 23:22:36,750 INFO  [ServerImpl] Server Home URL: 
file:/C:/Softwares/jboss-5.0.0.GA/server/default/
  | 23:22:36,750 INFO  [ServerImpl] Server Data Dir: 
C:\Softwares\jboss-5.0.0.GA\server\default\data
  | 23:22:36,750 INFO  [ServerImpl] Server Library URL: 
file:/C:/Softwares/jboss-5.0.0.GA/server/default/lib/
  | 23:22:36,750 INFO  [ServerImpl] Server Log Dir: 
C:\Softwares\jboss-5.0.0.GA\server\default\log
  | 23:22:36,750 INFO  [ServerImpl] Server Native Dir: 
C:\Softwares\jboss-5.0.0.GA\server\default\tmp\native
  | 23:22:36,750 INFO  [ServerImpl] Server Temp Dir: 
C:\Softwares\jboss-5.0.0.GA\server\default\tmp
  | 23:22:36,750 INFO  [ServerImpl] Server Temp Deploy Dir: 
C:\Softwares\jboss-5.0.0.GA\server\default\tmp\deploy
  | 23:22:42,609 INFO  [ServerImpl] Starting Microcontainer, 
bootstrapURL=file:/C:/Softwares/jboss-5.0.0.GA/server/default/conf/bootstrap.xml
  | 23:22:45,828 INFO  [VFSCacheFactory] Initializing VFSCache 
[org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
  | 23:22:45,890 INFO  [VFSCacheFactory] Using VFSCache 
[IterableTimedVFSCache{lifetime=1800, resolution=60}]
  | 23:22:47,578 INFO  [CopyMechanism] VFS temp dir: 
C:\Softwares\jboss-5.0.0.GA\server\default\tmp
  | 23:22:47,593 INFO  [ZipEntryContext] VFS force nested jars copy-mode is 
enabled.
  | 23:22:52,515 INFO  [ServerInfo] Java version: 1.5.0_14,Sun Microsystems Inc.
  | 23:22:52,515 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
1.5.0_14-b03,Sun Microsystems Inc.
  | 23:22:52,515 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 23:22:52,671 INFO  [JMXKernel] Legacy JMX core initialized
  | 23:22:59,859 INFO  [ProfileServiceImpl] Loading profile: default from: 
org.jboss.system.server.profileservice.repository.serializabledeploymentreposit...@130cb4b(root=C:\Softwares\jboss-5.0.0.GA\server,
 
key=org.jboss.profileservice.spi.profile...@143b82c3[domain=default,server=default,name=default])
  | 23:22:59,875 INFO  [ProfileImpl] Using 
repository:org.jboss.system.server.profileservice.repository.serializabledeploymentreposit...@130cb4b(root=C:\Softwares\jboss-5.0.0.GA\server,
 
key=org.jboss.profileservice.spi.profile...@143b82c3[domain=default,server=default,name=default])
  | 23:22:59,875 INFO  [ProfileServiceImpl] Loaded profile: 
profilei...@1b7a553{key=org.jboss.profileservice.spi.profilekey@143b82c3[domain=default,server=default,name=default]}
  | 23:23:08,843 INFO  [WebService] Using RMI server codebase: 
http://127.0.0.1:8083/
  | 23:23:30,203 INFO  [NativeServerConfig] JBoss Web Services - Stack Native 
Core
  | 23:23:30,203 INFO  [NativeServerConfig] 3.0.4.SP1
  | 23:23:59,609 INFO  [JMXConnectorServerService] JMX Connector server: 
service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
  | 23:24:00,015 INFO  [MailService] Mail Service bound to java:/Mail
  | 23:24:05,671 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 passw

[jboss-user] [JBoss Messaging] - Re: Exception coming in creating our own Connection Factory

2009-02-13 Thread siddharth_2279
Hi, 

Thanks for your help. 

I stopped the port 8080.  Then I again started the server. But I am still 
getting the exception.  Please Help !!!

18:50:45,478 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console, 
vfsUrl=jmx-console.war
  | 18:50:45,994 ERROR [ProfileServiceBootstrap] Failed to load profile: 
Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual 
State}
  | 
  | jboss.messaging.connectionfactory:service=MyExampleConnectionFactory
  |  -> jboss.messaging:service=Connector,transport=http{Create:** NOT FOUND 
Depends on 'jboss.messaging:service=Connector,transport=http' **}
  | 
  | 
  | *** CONTEXTS IN ERROR: Name -> Error
  | 
  | jboss.messaging:service=Connector,transport=http -> ** NOT FOUND Depends on 
'jboss.messaging:service=Connector,transport=http' **
  | 
  | 
  | 18:50:46,056 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on 
http-127.0.0.1-8080
  | 18:50:46,087 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
  | 18:50:46,103 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: 
SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:7s:944ms

Any help will be highly appreciated. Thanks in advance

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

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


[jboss-user] [JBoss Messaging] - Re: Exception coming in creating our own Connection Factory

2009-02-13 Thread siddharth_2279
Hi, 

Thanks for you help. 

I corrected it and ran the server. I got the following exception 

13:49:44,129 INFO  [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
  | 13:49:44,738 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console, 
vfsUrl=jmx-console.war
  | 13:49:45,020 ERROR [ProfileServiceBootstrap] Failed to load profile: 
Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual 
State}
  | 
  | jboss.messaging.connectionfactory:service=MyExampleConnectionFactory
  |  -> jboss.messaging:service=Connector,transport=http{Create:** NOT FOUND 
Depends on 'jboss.messaging:service=Connector,transport=http' **}
  | 
  | 
  | *** CONTEXTS IN ERROR: Name -> Error
  | 
  | jboss.messaging:service=Connector,transport=http -> ** NOT FOUND Depends on 
'jboss.messaging:service=Connector,transport=http' **
  | 
  | 
  | 13:49:45,035 ERROR [Http11Protocol] Error starting endpoint
  | java.net.BindException: Address already in use: JVM_Bind /127.0.0.1:8080
  | at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:504)
  | at 
org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:520)
  | at 
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
  | at 
org.apache.catalina.connector.Connector.start(Connector.java:1102)
  | at 
org.jboss.web.tomcat.service.deployers.TomcatService.startConnectors(TomcatService.java:629)
  | at 
org.jboss.web.tomcat.service.deployers.TomcatService.handleNotification(TomcatService.java:670)
  | at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
  | at $Proxy85.handleNotification(Unknown Source)
  | at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
  | at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
  | at 
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:425)
  | at org.jboss.Main.boot(Main.java:209)
  | at org.jboss.Main$1.run(Main.java:547)
  | at java.lang.Thread.run(Thread.java:595)
  | 13:49:45,035 WARN  [TomcatService] Failed to startConnectors
  | LifecycleException:  service.getName(): "jboss.web";  Protocol handler 
start failed: java.net.BindException: Address already in use: JVM_Bind 
/127.0.0.1:8080
  | at 
org.apache.catalina.connector.Connector.start(Connector.java:1109)
  | at 
org.jboss.web.tomcat.service.deployers.TomcatService.startConnectors(TomcatService.java:629)
  | at 
org.jboss.web.tomcat.service.deployers.TomcatService.handleNotification(TomcatService.java:670)
  | at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
  | at $Proxy85.handleNotification(Unknown Source)
  | at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
  | at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
  | at 
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:425)
  | at org.jboss.Main.boot(Main.java:209)
  | at org.jboss.Main$1.run(Main.java:547)
  | at java.lang.Thread.run(Thread.java:595)
  | 13:49:45,035 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: 
SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:23s:47ms

How to solve this. Please guide me. Why are there so many errors coming in the 
sample connection-factories-service.xml. 

Any help would be highly appreciated. Thanks in advance. 

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

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


[jboss-user] [JBoss Messaging] - Exception coming in creating our own Connection Factory

2009-02-12 Thread siddharth_2279
Hi All, 

I am using JBoss-5.0.0.G.A. 

I am creating my own Connection Factory. I removed the comments in the file 
connection-factories-service.xml. Following are the excerpts from the file 

   
  |
  |
  |   
  |   
  |   
  |   
  |  
  |  
  |  
  |   
  |   
  |   jboss.messaging:service=ServerPeer
  |   
  |   
  |   
  |   jboss.messaging:service=Connector,transport=http
  |   
  |   jboss.messaging:service=PostOffice
  |   
  |   
  |   
  |   150
  |   
  |   
  |   
  |   20
  |   
  |   2000
  |   
  |   2000
  |   
  |   
  |   
  |   5000
  |   
  |   
  |   
  |   false
  |   
  |   
  |   
  |   false  
  | 
  |   
  |   
  |   org.jboss.jms.client.plugin.RoundRobinLoadBalancingFactory
  
  | 
  |   
  | 
  |   true
  |   
  |   
  |   
  |   false
  |   
  |   
  |   
  |   false
  | 
  |   
  | 
  |   
  |   
  |  
  |  
  | /QueueConnectionFactory
  | 
  |  
  | 
  |  
  |  
  |  
  |
  |

I am getting the following exception while running the server. 


09:56:58,830 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has 
leasing enabled, lease period 1 milliseconds
09:56:58,861 INFO  [ConnectionFactory] 
org.jboss.jms.server.connectionfactory.connectionfact...@1b40d64 started
09:56:59,627 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is 
true on connection factory: 
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post 
office is non clustered. So connection factory will *not* support failover
09:56:59,642 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing 
attribute is true on connection factory: 
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post 
office is non clustered. So connection factory will *not* support load balancing
09:56:59,642 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has 
leasing enabled, lease period 1 milliseconds
09:56:59,642 INFO  [ConnectionFactory] 
org.jboss.jms.server.connectionfactory.connectionfact...@d67aa2 started
09:56:59,705 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has 
leasing enabled, lease period 1 milliseconds
09:56:59,705 INFO  [ConnectionFactory] 
org.jboss.jms.server.connectionfactory.connectionfact...@215d51 started
09:56:59,798 ERROR [AbstractKernelController] Error installing to Configured: 
name=jboss.messaging.connectionfactory:service=MyExampleConnectionFactory 
state=Instantiated mode=Manual requiredState=Configured
java.lang.RuntimeException: No Attribute found with name: 
DefaultTempQueuePageSizeSize for 
jboss.messaging.connectionfactory:service=MyExampleConnectionFactory, 
attributes: [DefaultTempQueuePageSize, DefaultTempQueueFullSize, 
SupportsLoadBalancing, DisableRemotingChecks, ServerPeer, 
DefaultTempQueueDownCacheSize, ClientID, Connector, SlowConsumers, 
LoadBalancingFactory, StrictTck, SendAcksAsync, JNDIBindings, DupsOKBatchSize, 
SupportsFailover, PrefetchSize]
at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)
at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
at 
org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
at 
org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
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)


09:56:59,892 INFO  [ConnectionFactory] 
org.jboss.jms.server.connectionfactory.connectionfact...@215d51 undeployed
09:56:59,892 INFO  [ConnectionFactory] 
org.jboss.jms.server.connectionfactory.connectionfact...@d67aa2 undeployed
09:56:59,908 INFO  [ConnectionFactory] 
org.jboss.jms.server.connectionfactory.connectionfact...@1b40d64 undeployed
09:56:59,908 ERROR [AbstractKernelController] Error installing to Real: 
name=vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/messaging/connection-factories-service.xml
 state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: 
jboss.messaging.connectionfactory:service=MyExampleConnectionFactory
at 
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:123)
at 
org.jboss.system.deployers.Ser

[jboss-user] [JBoss Messaging] - Re: JNDI lookup failed for QueueSender program

2009-02-11 Thread siddharth_2279
Hi, 

Thanks for the prompt reply. 

anonymous wrote : you should look for connection-factories-service.xml, this 
file can configure JNDI name mappings for a connection factory. The default 
names are:
  | 
  | /ConnectionFactory
  | /XAConnectionFactory 

Q 1. What do we mean by /XAConnectionFactory. ?

Q 2. If I want to make my own connection factory (for e.g. 
QueueConnectionFactory OR TopicConnectionFactory) then what do I do?

Q 3. If I want to make my own ConnectionFactory with a clientID lets say for 
durable connection then what steps do I need to take ?

Please guide me. Thanks in advance. 


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

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


[jboss-user] [JBoss Messaging] - JNDI lookup failed for QueueSender program

2009-02-11 Thread siddharth_2279
Hi All, 

I am trying for a simple Queue Sender and receiver JBoss messaging program. I 
am using JBoss-5.0.0 G.A. application server. I am getting the following 
exception while running the program. 


]JNDI lookup failed: javax.naming.NameNotFoundException: QueueConnectionFactory 
not bound

public static void main(String[] args) {
  | // TODO Auto-generated method stub
  | String queueName = null;
  | Context jndiContext = null;
  | QueueConnectionFactory queueConnectionFactory = null;
  | QueueConnection queueConnection = null;
  | QueueSession queueSession = null;
  | Queue queue = null;
  | QueueSender queueSender = null;
  | TextMessage message = null;
  | 
  | final int NUM_MSGS;
  | 
  | if ((args.length < 1) || (args.length > 2)) {
  | System.out.println("Usage: java SimpleQueueSender "
  | + " 
[]");
  | System.exit(1);
  | }
  | 
  | queueName = new String(args[0]);
  | System.out.println("Queue Name Is : " + queueName);
  | 
  | if (args.length == 2) {
  | NUM_MSGS = (new Integer(args[1])).intValue();
  | } else {
  | NUM_MSGS = 1;
  | }
  | 
  | Properties props = new Properties();
  | props.put("java.naming.factory.initial", 
"org.jnp.interfaces.NamingContextFactory");
  | props.put("java.naming.factory.url.pkgs", 
"org.jboss.naming:org.jnp.interfaces");
  | props.put("java.naming.provider.url", "localhost:1099");
  | 
  | try {
  | jndiContext = new InitialContext(props);
  | } catch (NamingException e) {
  | System.out.println("Could not create JNDI " + "context: 
"
  | + e.toString());
  | System.exit(1);
  | }
  | 
  | try {
  | queueConnectionFactory = (QueueConnectionFactory) 
jndiContext
  | .lookup("QueueConnectionFactory");
  | queue = (Queue) jndiContext.lookup("queue/"+queueName);
  | } catch (NamingException e) {
  | System.out.println("JNDI lookup failed: " + 
e.toString());
  | System.exit(1);
  | }
  | 
  | try {
  | queueConnection = 
queueConnectionFactory.createQueueConnection();
  | queueSession = queueConnection.createQueueSession(false,
  | Session.AUTO_ACKNOWLEDGE);
  | queueSender = queueSession.createSender(queue);
  | message = queueSession.createTextMessage();
  | 
  | for (int i = 0; i < NUM_MSGS; i++) {
  | message.setText("This is message " + (i + 1));
  | System.out.println("Sending Message: " + 
message.getText());
  | queueSender.send(message);
  | }
  | queueSender.send(queueSession.createMessage());
  | } catch (JMSException e) {
  | System.out.println("Exception occurred: " + 
e.toString());
  | } finally {
  | if (queueConnection != null) {
  | try {
  | queueConnection.close();
  | } catch (JMSException e) {
  | System.out.println("Exception occurred: 
" + e.toString());
  | }
  | }
  | }
  | 
  | }


Dosen't JBoss-5.0.0. G.A. application server gives a default 
QueueConnectionFactory and a default TopicConnectionFactory as in JBoss-4.2.2 
GA.? Do we have to create a QueueConnectionFactory and TopicConnectionFactory 
by ourselves. If yes, then where do we create it - in 
jboss-5.0.0.GA\server\default\deploy\messaging\destinations-service.xml. 

Please do guide me as I am not able to proceed further. Thanks in advance. 

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

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


[jboss-user] [JBoss Messaging] - Jars required for JBoss Messaging.

2009-02-02 Thread siddharth_2279
Hi All, 
I am using JBoss app server 5.0.0 GA. I am trying to run a simple Queue and 
Topic Sender/receiver program. Please could you tell me the jars required for 
JBoss Messaging program. 

Thanks in advance. 

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

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


[jboss-user] [JBoss Messaging] - Re: Connection Factory Configuration problem in JBoss Messag

2009-01-26 Thread siddharth_2279
1) Any update on this topic. Please Help !!!

2) Also does JBoss 5.0.0-G.A. not give us a default QueueConnectionFactory and 
TopicConnectionFactory. This seems to be the case as its giving 
QueueConnectionFactory not bound. But in JBoss-4.2.2 G.A. we used to get a 
default QueueConnectionFactory and TopicConnectionFactory. 

Please reply and thanks in advance.  

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

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


[jboss-user] [JBoss Messaging] - Connection Factory Configuration problem in JBoss Messaging

2009-01-13 Thread siddharth_2279
Hi All, 
I have my own connection factory entry in 
(jboss-5.0.0.GA\server\default\deploy\messaging\connection-factories-service.xml)
 


  |   
  |   
  |   
  |   
  |  
  |  
  |  
  |   
  |   
  |   jboss.messaging:service=ServerPeer
  |   
  |   
  |   
  |   jboss.messaging:service=Connector,transport=bisocket
  |   
  |   jboss.messaging:service=PostOffice
  |  
  |   
  | 
  |   
  |   
  |  
  |  
  | /QueueConnectionFactory
  | 
  |  
  |  
  |  
  |
  |
  | 

When I run the Java code I get the following exception : 

JNDI lookup failed: javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: org.jboss.jms.client.JBossConnectionFactory 
(no security manager: RMI class loader disabled)]

I even saw the solution to this as per given in the site : 

https://jira.jboss.org/jira/browse/JBMESSAGING-339

But even the solution 1 given here in the site namely :

1) Enable JNDI call by reference semantics.

To do that, modify the Naming (JNDI) service configuration and set its 
"CallByValue" attribute to "false".

The Naming configuration file is 
$JBOSS_HOME/server/default/deploy/naming-service.xml for an installer-generated 
JBoss configuration and the $JBOSS_HOME/server/conf/jboss-service.xml (the JNDI 
section, search for "jboss:service=Naming") for a raw installation.


is not working. 

Even this is giving a exception in the java program. 

Please Help me in solving this problem. 

I am using JBoss-5.0.0.GA app server. 

Thanks in advance. 

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

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


[jboss-user] [JBoss Messaging] - Re: Configuring administered objects(queue/topics) in JBoss-

2009-01-13 Thread siddharth_2279
Thanks Peter that really helped. Thanks a lot for your response. 

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

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


[jboss-user] [JBoss Messaging] - Configuring administered objects(queue/topics) in JBoss-5.0.

2009-01-11 Thread siddharth_2279
Hi All, 
I have downloaded and installed JBoss-5.0.0.GA on my machine.  I would like to 
configure my own queues and topics. For this I went to the location 
(jboss-5.0.0.GA\server\default\deploy\messaging) on my machine. There I went to 
destinations-service.xml . I opened this file and found the following entry. 


  | 
  | 
  | 
  | 
  | 
  |
  | 
  |
  |   jboss.messaging:service=ServerPeer
  |   jboss.messaging:service=PostOffice
  |
  |
  |
  | 
  |
  |   jboss.messaging:service=ServerPeer
  |   jboss.messaging:service=PostOffice
  |   
  | 
  | 
  | 

I suppose this file is incomplete. There is not entry for topics and entry for 
queues is also incomplete. My JBoss-5.0.0.GA was downloaded and installed 
successfully. So why are the entries in destinations-service.xml incomplete. 
What do I do now ? Please guide me. I am unable to proceed further due to this. 

Thanks in advance.  

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

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


[jboss-user] [JBoss Messaging] - Re: JMS ConnectionFactories

2009-01-03 Thread siddharth_2279
Yeah I read this post. But I have still not got answer to my question :

anonymous wrote : 
  | 1) How do I create a QueueConnectionFactory / TopicConnectionFactory in 
JBoss if I want to create my own connection factories ? I have JBoss 4.2.2 
installed. Please guide me. Any help would be greatly appreciated. Thanks. 

I want this as I want to create my own Connection Factory with a clientID for 
my durable subscriber example. 

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

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


[jboss-user] [JBossMQ] - Creating Connection Factory in JBoss MQ.

2009-01-03 Thread siddharth_2279
Hi All, 
I am using JBoss 4.2.2 GA as my application server. It user  JBoss MQ. I am 
aware that for creating our own queues and topics we have to make an entry in 
jbossmq-destinations-service.xml (jboss-4.2.2.GA\server\default\deploy\jms). 
But I am not able to find as to how do we create our own connection factories. 
  
I need to create Connection Factory because in DurableSubscriberExample in one 
of the tutorials its given to create the ConnectionFactory with a client ID 
first before running the example.  So I need to create my own Connection 
Factory with a specific client ID.  

Please tell me how to do this configuration. I have searched the net for this 
without any success. Thanks in advance. 

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

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


[jboss-user] [JBoss Messaging] - Re: JMS ConnectionFactories

2009-01-03 Thread siddharth_2279
What is JBM ?? I am using JBoss 4.2.2 GA app server. It uses JBoss MQ as its 
messaging provider. 

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

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


[jboss-user] [JBoss Messaging] - JMS ConnectionFactories

2008-12-21 Thread siddharth_2279
1) How do I create a QueueConnectionFactory / TopicConnectionFactory in JBoss 
if I want to create my own connection factories ? I have JBoss 4.2.2 installed. 
Please guide me. Any help would be greatly appreciated. Thanks. 

2) In addition to the above query if I want to administer and connect to remote 
administered object (ConnectionFactory and Destinations) what are the steps and 
which files need to be changed. I am having JBoss 4.2.2. GA application server. 
Any help would be greatly appreciated. Thanks in advance. 

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JNDI bound SessionFactory !!!

2008-07-19 Thread siddharth_2279
Hi All, 
1) Could anyone please tell me the steps to create a JNDI bound Session 
Factory. I am struggling with it for days. Please Help !!! 
2) Is there a difference between JNDI bound SessionFactory and normal JNDI 
connection using Hibernate. 
I am using the following softwares : 

JBoss AS 4.2.2 GA 
MySQL (database)
Hibernate 3.2

The program which I have tried is the following : 

SaveExample.java
-

  | private static Context jndiContext;
  | 
  | public static void main(String[] args) {
  | // TODO Auto-generated method stub
  | 
  | 
  | Session session = null;
  | 
  | try{
  | System.out.println("Before Session Factory 
Configuration. !!!");
  | 
  | SessionFactory sf = new 
Configuration().configure().buildSessionFactory();
  | 
  | 
  | jndiContext = new InitialContext();
  | 
  | sf = (SessionFactory)jndiContext.lookup("java:MySqlDS");
  | 
  | 
  | session = sf.openSession();
  | 
  | System.out.println("After Session Factory 
Configuration. !!!");
  | 
  | 
  | 
  | }catch(Exception e){
  | e.printStackTrace();
  | }finally{
  | session.flush();
  | session.close();
  | }
  | 
  | }
  | 
  | 

hibernate.cfg.xml


  | 
  | 
  | 
  | 
  | MySqlDS 
  | java:Mydatabase
  | 
  | 
  | 
  | 
  | 
  | true
  | true
  | 
  | 
  | org.hibernate.dialect.MySQLDialect
  | update
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

I have put the lib file mysql-connector-java-5.1.5-bin.jar in the 
server\default\lib folder of JBoss and I have put the mysql-ds.xml file in 
server\default\deploy directory of JBoss. 

mysql-ds.xml 
---

  | 
  | 
  |   
  | MySqlDS
  | jdbc:mysql://localhost:3306/jbossdb
  | 
  | false
  | com.mysql.jdbc.Driver
  | root
  | root
  | 
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | 
  | 
  | 
  | 
  | 
  | 
  |mySQL
  | 
  |   
  | 
  | 
  | 
  | 

Exception 
---

  | 
  | Before Session Factory Configuration. !!!
  | log4j:WARN No appenders could be found for logger 
(org.hibernate.cfg.Environment).
  | log4j:WARN Please initialize the log4j system properly.
  | org.hibernate.HibernateException: Could not find datasource
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
  | at 
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:27)
  | Caused by: javax.naming.NoInitialContextException: Cannot instantiate 
class:  [Root exception is java.lang.ClassNotFoundException: ]
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at javax.naming.InitialContext.init(InitialContext.java:223)
  | at javax.naming.InitialContext.(InitialContext.java:197)
  | at 
org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
  | ... 7 more
  | Caused by: java.lang.ClassNotFoundException: 
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:242)
  | at 
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
  | ... 12 more
  | Exception in thread "main" java.lang.NullPointerException
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:44)
  | 
  | 


The problem is that the program (SaveExample.java) in Eclipse is running as a 
standalone Java Application and Jboss server is running in an

[jboss-user] [JNDI/Naming/Network] - Could not find datasource !!!

2008-07-19 Thread siddharth_2279
Hi All. 
I am stuck in a peculiar problem and struggling with it. I have a created a 
standalone program in Java that accesses a database through a DataSource which 
I have configured in JBoss AS. I am trying to access the database using JNDI. 
I have a program by the name of SaveExample 


  | private static Context jndiContext;
  | 
  | public static void main(String[] args) {
  | // TODO Auto-generated method stub
  | 
  | 
  | Session session = null;
  | 
  | try{
  | System.out.println("Before Session Factory 
Configuration. !!!");
  | 
  | SessionFactory sf = new 
Configuration().configure().buildSessionFactory();
  | 
  | 
  | jndiContext = new InitialContext();
  | 
  | sf = (SessionFactory)jndiContext.lookup("java:MySqlDS");
  | 
  | 
  | session = sf.openSession();
  | 
  | System.out.println("After Session Factory 
Configuration. !!!");
  | 
  | 
  | 
  | }catch(Exception e){
  | e.printStackTrace();
  | }finally{
  | session.flush();
  | session.close();
  | }
  | 
  | }
  | 
  | 

hibernate.cfg.xml


  | 
  | 
  | 
  | 
  | MySqlDS 
  | java:Mydatabase
  | 
  | 
  | 
  | 
  | 
  | true
  | true
  | 
  | 
  | org.hibernate.dialect.MySQLDialect
  | update
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

I have put the lib file mysql-connector-java-5.1.5-bin.jar in the 
server\default\lib folder of JBoss and I have put the mysql-ds.xml file in 
server\default\deploy directory of JBoss. 

mysql-ds.xml 
---

  | 
  | 
  |   
  | MySqlDS
  | jdbc:mysql://localhost:3306/jbossdb
  | 
  | false
  | com.mysql.jdbc.Driver
  | root
  | root
  | 
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | 
  | 
  | 
  | 
  | 
  | 
  |mySQL
  | 
  |   
  | 
  | 
  | 
  | 

Exception 
---

  | 
  | Before Session Factory Configuration. !!!
  | log4j:WARN No appenders could be found for logger 
(org.hibernate.cfg.Environment).
  | log4j:WARN Please initialize the log4j system properly.
  | org.hibernate.HibernateException: Could not find datasource
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
  | at 
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:27)
  | Caused by: javax.naming.NoInitialContextException: Cannot instantiate 
class:  [Root exception is java.lang.ClassNotFoundException: ]
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at javax.naming.InitialContext.init(InitialContext.java:223)
  | at javax.naming.InitialContext.(InitialContext.java:197)
  | at 
org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
  | ... 7 more
  | Caused by: java.lang.ClassNotFoundException: 
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:242)
  | at 
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
  | ... 12 more
  | Exception in thread "main" java.lang.NullPointerException
  | at com.example.jndi.JNDIExample.main(JNDIExample.java:44)
  | 
  | 


My problem is that the program (SaveExample.java) in Eclipse is running as a 
Java Application and Jboss server is running in another console window. So how 
could I make them connect to each other so that they the application program 
can recognize the datasource and not give