BookmarkSubscribeRSS Feed
BigRider
Obsidian | Level 7

Hi Fellows !

 

I´m trying to test a connection to a message broker from ACTIVE_MQ using the example in running from a SAS Studio session on SAS Vyia 3.4.

 

SAS Documentation

 

data null;
file 'myq' jms
jndiiCtxtFactory='org.apache.activemq.jndi.ActiveMQInitialContextFactory'
jndiProviderURL='tcp://192.168.8.23:61616'
connfactory='ConnectionFactory'
connopts='queue.myq=myq';
put 'This is a test message';
run;

However, I´m obtaining the following error:

 

ERROR 23-2: Invalid option name JNDIICTXTFACTORY.
 
Is it missing any componenet of SAS Installation or should I have to fix any sintax in my code? 
 
Is it work in SAS Vyia like 9.4 ?
 
this is the clearest example wich I found, If someone other example how to connect and get a message from a ACTIVE_MQ queue is welcome.
 
Thank in advance,
2 REPLIES 2
unison
Lapis Lazuli | Level 10

Looks like JNDIICTXTFACTORY isn't recognized. Could it be called JNDICONTEXTFACTORY? or JNDICONNECTIONFACTORY?

 

Just some ideas.

 

-unison

-unison
BigRider
Obsidian | Level 7

All the options are invalid and this is the standard sintax of the documentation example. Maybe, I´m missing something.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1247 views
  • 0 likes
  • 2 in conversation