sun jms admin console

hi,

i am trying to work with sun message queue, i am using jdk1.6 and the

latest sun message queue. right now i try to create queueconnection

and queues with the following script:

@echo off

if "%JMQ_HOME%\lib\imq.jar" == "\lib\imq.jar" goto nojmqhome

REM  Create and add the queue
call "%JMQ_HOME%\bin\imqobjmgr" add -t q -l "MyQueue" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

REM  Create and add the queue
call "%JMQ_HOME%\bin\imqobjmgr" add -t q -l "myQueue" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

REM  Create and add the queue
call "%JMQ_HOME%\bin\imqobjmgr" add -t q -l "MyQueue1" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

REM  Create and add the queue connection factory
call "%JMQ_HOME%\bin\imqobjmgr" add -t qf -l

"QueueConnectionFactory1" -j

"java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFacto

ry" -j "java.naming.provider.url=file://C:/temp"

goto end

:noimqhome
      echo Please set the JMQ_HOME environment variable.
      goto end
:end

everything works fine except (i can use those objects in my program),

but if i open admin page by calling

C:\Sun\MessageQueue\bin\imqadmin.exe, i don't see any of these

objects being added, does it have anything to do with the url being

different - localhost:4848 vs file://c:temp?


thanks
mmingfeilamAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
try setting the provider url when you start admin console
0
 
objectsCommented:
> does it have anything to do with the url being
> different - localhost:4848 vs file://c:temp?

possibly, as you'd be dealing with a different provider
0
 
mmingfeilamAuthor Commented:
so it looks like the admin page only shows objects with the provider url of localhost?  is there any way to show objects from other urls in the same admin page?  i didn't see any options where i can change the provider url on the admin page.  the objects created using c:\temp are actually listed in a .bindings file in c:\temp.
0
 
mmingfeilamAuthor Commented:
also, on sun java system message queue admin console, i added a new object store where the initial factory is com.sun.jndi.fscontext.RefFSContextFactory and the url is c:\temp, but when i hit connect i got objectstoreexception.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.