users@glassfish.java.net

Re: JMS - Netbeans - Glassfish

From: rdblaha1 <rd_blaha_at_hotmail.com>
Date: Fri, 14 Dec 2007 12:23:46 -0800 (PST)

Siva,


Sivakumar Thyagarajan wrote:
>
>
> You could refer to the ant target "create-remote-factory" to
> understand how this is done. The ant target internally uses the
> asadmin CLI interface to create the various resources.
>
> The tutorial (http://docs.sun.com/app/docs/doc/819-3669/bncfp?a=view)
> has this to say for creating the CF pointing to the remote machine:
> "2. The create-remote-factory target, defined in the build.xml file
> for the Producer example, also creates a connection factory named
> jms/JupiterConnectionFactory. In addition, it sets the AddressList
> property for this factory to the name of the remote system."
>
> So in this case, while creating a JMS CF, an address list property is
> set to the remote system. This would be
>
> asadmin create-jms-resource with --property set to
> AddressList={remotemachine}:7676
>
> More information available off the man page
> http://docs.sun.com/app/docs/doc/819-3675/create-jms-resource-1?a=view
>

Thank was very helpful. I was able to add the AddressList property for
the connectionFactory in Glassfish. I also followed through on working with
the ant create-remote-factory -Dsys=admin as well.
(In the setup with which I am working 'jupiter' is actually 'admin'.)

However, running the ant create-remote-factory -Dsys=admin I get:

C:\source\projects\JMS\SimpleProducer>ant create-remote-factory -Dsys=admin
Buildfile: build.xml

create-remote-factory:

check:

tools:

create-jms-connection-factory-prop:
     [echo]
     [echo] -X-X-create-jms-connection-factory-prop-X-X-
     [echo]
     [echo] C:/Sun/AppServer/bin/asadmin.bat create-jms-resource
     [echo] --user admin
     [echo] --passwordfile
C:\Progra~1\Java\jdk1.5.0_04\javaeetutorial5/example
s/common/admin-password.txt
     [echo] --host localhost
     [echo] --port 4848
     [echo] --restype javax.jms.ConnectionFactory
     [echo] --enabled=true
     [echo] --property AddressList=admin
     [echo] jms/AdminConnectionFactory
     [echo]
     [echo] -X-X-finished-X-X-
     [echo]
     [exec] Server returned HTTP response code: 500 for URL:
http://localhost:48
48/web1/remotejmx
     [exec] CLI137 Command create-jms-resource failed.

BUILD SUCCESSFUL
Total time: 1 second
C:\source\projects\JMS\SimpleProducer>



Even with the Glassfish server (earth - my PC) connectionFactory with the
added Property and the App Server 9.1 (jupiter - admin network server) setup
I still get the following when running my Consumer.


# /opt/SUNWappserver/bin/appclient -client SimpleSynchConsumer.jar queue
Destination type is queue
Dec 14, 2007 9:14:14 AM com.sun.messaging.jmq.jmsclient.ExceptionHandler
logCaughtException
WARNING: [I500]: Caught JVM Exception: java.io.EOFException
Dec 14, 2007 9:14:14 AM com.sun.messaging.jms.ra.ManagedConnection <init>
SEVERE: MQJMSRA_MC4001: constructor:Aborting:JMSException on
createConnection=[C4060]: Login failed: user=admin,
broker=admin:7676(37393)
com.sun.messaging.jms.JMSSecurityException: [C4060]: Login failed:
user=admin, broker=admin:7676(37393)
        at
com.sun.messaging.jmq.jmsclient.ProtocolHandler.authenticate(ProtocolHandler.java:1086)


I realize I have placed two errors in this continuing thread ( 1)CLI137
Command create-jms-resource failed. and 2) SEVERE: MQJMSRA_MC4001:
constructor:Aborting:). If I should start separate threads at any point
please let me know.

Thank you again for your help in walking me through these issues.

Richard
-- 
View this message in context: http://www.nabble.com/JMS---Netbeans---Glassfish-tp14284564p14339782.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.