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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1275 views
  • 0 likes
  • 2 in conversation