Connecting imqadmin tool to Sun App Server 8
I have been using the Standalone platform edition of MessageQueue on solaris with no problems (V3.5 SP2). I am currently looking up my ConnectionFactory on an LDAP server. This is working fine.
However, I am also trying to connect the imqadmin tool to the JMS Provider bundled with Sun Application Server 8. This must be possible, since the imqadmin tool comes with the install.
What should be the correct settings used for creating the ObjectStore on the imqadmin tool?
Is this even possible?
I also noticed that it was not possible to create generic ConnectionFactory objects in the admin pages of the Sun Application Server 8 JMS Section - I was only able to create a specific QueueConnectionFactory or TopicConnectionFactory object.
Using the imqadmin tool for the standalone platform edition of JMS Server, you can create ConnectionFactory objects no problem.
Why the difference - are they compliant to the same JMS Spec?
[977 byte] By [
jbeech] at [2007-11-25 18:21:50]

# 1
I'll answer the second question first:
>Why the difference - are they compliant to the same JMS Spec?
Mostly. The E2EE spec adds additional behaviors and
restrictions on top of jms (causing some minor behavior
differences) for example
1. look up of jndi resources should all come from the
same context
2. non-rich clients (servlets, mdbs, etc) can not create
more than one session on a connection
3. MDB's can not create JMS transacted sessions
4. EJB's and servlets can not create message listeners
As far as using imqadmin to manage objects ...
In general, you should use the app server tools for creating the connection factory objects used by MDBs and most other clients.
You can continue to use imqadmin to make changes to the
broker (e.g. create physical destinations, etc)
If you want an rich "appClient" to access a client, you should
be able to create your own connection factory (using imqadmin) but export it to the application as a custom resource, see:
http://docs.sun.com/source/817-6088/jndi.html
# 2
That's useful info and clears up a few other questions I might have.
But does that still explain why its not possible to create a javax.jms.ConnectionFactory in the "Create JMS Connection Factory" screens on the Application Server.
Being able to do so generally simplifies application code.
I read somewhere that
"starting with JMS 1.1, it is recommended that you use only the javax.jms.ConnectionFactory (rather than javax.jms.QueueConnectionFactory or javax.jms.TopicConnectionFactory). "
I was trying to recreate this in the AppServer but the "ConnectionFactory" type is not supported and I don't believe this problem relates to any of the restrictions you stated (or perhaps I'm missing something here).
# 4
I'm using the SunAppServer 8 bundled with Java Studio Creator...
In the license.txt it states that it is Platform Edition 8 Update 1
but in the admin screens under Installed Version is states:
Sun Java System Application Server Platform Edition 8.0.0_01 (build b08-fcs)
So I guess my build isn't new enough. I'll try and update.
Thanks.