- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Using JMS from C under OpenVMS
Operating System - OpenVMS
1748051
Members
5195
Online
108757
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2007 03:32 AM
тАО09-13-2007 03:32 AM
Using JMS from C under OpenVMS
Hello
I've been asked to develop an interface of an existing C-application under OpenVMS with JMS. Does anybody have experience in doing so, or tell me where I can find code examples for this?
I have little to no experience in Java programming, so I would prefer a possibility to access JMS directly via C. Are there any libraries (available for OpenVMS !!!) which can do the job?
Thanks in advance for your help
J├╢rg
I've been asked to develop an interface of an existing C-application under OpenVMS with JMS. Does anybody have experience in doing so, or tell me where I can find code examples for this?
I have little to no experience in Java programming, so I would prefer a possibility to access JMS directly via C. Are there any libraries (available for OpenVMS !!!) which can do the job?
Thanks in advance for your help
J├╢rg
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2007 12:28 AM
тАО09-14-2007 12:28 AM
Re: Using JMS from C under OpenVMS
Hi,
JMS is not, per se, a messaging service, but an API facade for various vendor implementations of messaging.These all (that I know of) provide a direct C API. The advantage of JMS is that is is vendor independent.
If you don't need the vendor-independence, I'd find out the underlying messaging service (MQSeries etc) and use the C API. If you have to use JMS, then you have to use JNI (Java Native Interface) to call the Java methods from C.
Some of the message vendors provide this (a JMS like C API) in addition to the "native" C API. I believe there are some open-source C -> JMS JNI wrappers out there, too. Google "JMS C interface".
An alternative is do the JMS processing in a separate process (or indeed on a separate host) and implement a socket based interface. If you are just connecting to a specific queue or pair of queues (for send and receive) this is pretty simple. If you have to use the full JMS API with dynamically created queues and message selection etc then this is more work than the other solutions.
Jonathan
JMS is not, per se, a messaging service, but an API facade for various vendor implementations of messaging.These all (that I know of) provide a direct C API. The advantage of JMS is that is is vendor independent.
If you don't need the vendor-independence, I'd find out the underlying messaging service (MQSeries etc) and use the C API. If you have to use JMS, then you have to use JNI (Java Native Interface) to call the Java methods from C.
Some of the message vendors provide this (a JMS like C API) in addition to the "native" C API. I believe there are some open-source C -> JMS JNI wrappers out there, too. Google "JMS C interface".
An alternative is do the JMS processing in a separate process (or indeed on a separate host) and implement a socket based interface. If you are just connecting to a specific queue or pair of queues (for send and receive) this is pretty simple. If you have to use the full JMS API with dynamically created queues and message selection etc then this is more work than the other solutions.
Jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2007 09:44 AM
тАО09-14-2007 09:44 AM
Re: Using JMS from C under OpenVMS
If if comes to using JNI, don't neglect the example that came with your SDK. It comes as a BACKUP save set and is located somewhere similar to the following, depending on Java version:
$ dir SYS$COMMON:[JAVA$150.VMS_DEMO]JNI_EXAMPLE.SAV
Directory SYS$COMMON:[JAVA$150.VMS_DEMO]
JNI_EXAMPLE.SAV;1
Total of 1 file.
$ dir SYS$COMMON:[JAVA$150.VMS_DEMO]JNI_EXAMPLE.SAV
Directory SYS$COMMON:[JAVA$150.VMS_DEMO]
JNI_EXAMPLE.SAV;1
Total of 1 file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 04:39 AM
тАО08-08-2008 04:39 AM
Re: Using JMS from C under OpenVMS
Meanwhile, our customer has canceled the project. Nevertheless, thanks to everybody.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP