Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 652
  • Last Modified:

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
0
mmingfeilam
Asked:
mmingfeilam
  • 2
  • 2
1 Solution
 
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
 
objectsCommented:
try setting the provider url when you start admin console
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now