Multi vendor JMS jar files
Hi,
I have both the J2EE 1.3 jar file and weblogic 6.1 jar file in my class path. I have a single process which I want to take messages from J2EE and put them to weblogic.
This seems to work fine if the weblogic file is before J2EE but fails when the J2EE is picked up first. The J2EE implementation fails to write to the weblogic queue.
Going forward I would hope that my process could communicate with multiple JMS implementations from various vendors. My concern is whether the classpath order will prevent this.
Are there specifications covering this kind of multi vendor scenario ?
Cheers
Mairt
I may have found the answer to my question in the
following quote from the JMS FAQ on this site
"The JMS specification does not require that one JMS
provider be able to send messages directly to another
provider."
I assume this means if I need to communicate with
multiple vendors JMS implementations, each of which
requires that I include their jar file in my
classpath, then I need a way of specifying which
implementation to use at runtime.
Hmmm....any ideas ?
Cheers,
MairtAssuming your existing providers have implemented JMS correctly there is no reason why you cannot use JNDI to resolve your name space conflicts. The Topic/Queue connection factory implementations will be what is stored in the directory and use the vendor specific factories and classes for client reconstruction.
Regards,
Paul
Similar Messages
-
Where is the JMS jar file for CEP?
I cannot find in any jar finder the JMS jar file for CEP.
I mean the jar file which includes com.bea.wlevs.adapters.jms.api.InboundMessageConverter, com.bea.wlevs.adapters.jms.api.OutboundMessageConverter, etc.
Does anybody know the link?
Thanks!Thanks, but it is not there.
I only have the following:
com.bea.core.jsmpool_1.7.0.0.jar
javax.jms_1.1.1.jar
org.springframework.spring-jms_2.5.6.jar
And if I cannot find it there, where could it be?
Thanks! -
Jms.jar file does not exist
hi dear
can anybody help me..
I m using CMD. I have problem in using jms.jar file, i have jms.jar file in my ...\lib\jms.jar. But i m not able to use that jar file. i set the class path from system property and that showing in class path of CMD but my program is not ruuning Error is...
CSV2XML1.java:13: package javax.jms does not exist
import javax.jms.Connection;
^
CSV2XML1.java:14: package javax.jms does not exist
import javax.jms.ConnectionFactory;
^
CSV2XML1.java:15: package javax.jms does not exist
import javax.jms.Destination;
^
CSV2XML1.java:16: package javax.jms does not exist
import javax.jms.MessageProducer;
^
CSV2XML1.java:17: package javax.jms does not exist
import javax.jms.Session;
^
CSV2XML1.java:18: package javax.jms does not exist
import javax.jms.TextMessage;
^
CSV2XML1.java:255: cannot find symbol
symbol : class ConnectionFactory
location: class com.firm58.getCo.CSV2XML1
ConnectionFactory connectionFactory = (ConnectionFactory
) initialContext.lookup("weblogic.jms.XAConnectionFactory");
^
CSV2XML1.java:255: cannot find symbol
symbol : class ConnectionFactory
location: class com.firm58.getCo.CSV2XML1
ConnectionFactory connectionFactory = (ConnectionFactory
) initialContext.lookup("weblogic.jms.XAConnectionFactory");
^
CSV2XML1.java:256: cannot find symbol
symbol : class Connection
location: class com.firm58.getCo.CSV2XML1
Connection connection = connectionFactory.createConnecti
on();
^
CSV2XML1.java:257: cannot find symbol
symbol : class Session
location: class com.firm58.getCo.CSV2XML1
Session session = connection.createSession(false, Sessio
n.AUTO_ACKNOWLEDGE);
^
CSV2XML1.java:257: cannot find symbol
symbol : variable Session
location: class com.firm58.getCo.CSV2XML1
Session session = connection.createSession(false, Sessio
n.AUTO_ACKNOWLEDGE);
^
CSV2XML1.java:260: cannot find symbol
symbol : class Destination
location: class com.firm58.getCo.CSV2XML1
Destination queue = (Destination) initialContext.lookup(
"jms/customerInputQ");
^
CSV2XML1.java:260: cannot find symbol
symbol : class Destination
location: class com.firm58.getCo.CSV2XML1
Destination queue = (Destination) initialContext.lookup(
"jms/customerInputQ");
^
CSV2XML1.java:261: cannot find symbol
symbol : class MessageProducer
location: class com.firm58.getCo.CSV2XML1
MessageProducer producer = session.createProducer(queue)
^
CSV2XML1.java:262: cannot find symbol
symbol : class TextMessage
location: class com.firm58.getCo.CSV2XML1
TextMessage messageJMS = session.createTextMessage();
^
Thanks for help
bimleshTo me it looks like CLASSPATH is not set in your environment. When type echo %CLASSPATH% you should see something like /opt/sun/mq/share/lib/jms.jar:/opt/sun/mq/share/lib/jaxm-api.jar:/opt/sun/mq/share/lib/imqxm.jar:/opt/sun/mq/share/lib/imqservlet.jar:/opt/sun/mq/share/lib/imq.jar:/opt/sun/mq/share/lib/fscontext.jar
(sorry but I don't have windows machine) and not %CLASSPATH%. Adding your jar files to PATH variable won't help. When you start your cmd type "set" you should see if CLASSPATH is set when your environment is printed. If it's not set try setting it byt typing set CLASSPATH=your_path_to\jms.jar;your_path_to\imq.jar;. .Then run your application. -
Hi All,
We are working on XI interfaces implementation. As part of our project, we have to implement JMS to receive messages from an external server.
What are the .jar files that need to be deployed in XI to enable JMS communication?
Where can we find these .jar files? and Is there any documentation explaining a sample JMS communication scenario in XI?
Thank you,
Regards,
Balaji.MHi Balaji -
As far as JMS providers are concerned, WebSphereMQ, Sonic MQ, and SAP JMS are well supported by SAP. Outside of these, the current official stance is that the JMS provider must be compatible with the JMS 1.02b or 1.1 specification.
Part of the problem is that there are a large number of 3rd party JMS providers out there from different vendors (with different versions) and it is unreasonable/unmanagable to maintain support for all of them, especially if providers deviate or do not comply to the specifications. Even so I know of customers who have successfully implemented JMS integration with other major JMS providers like Tibco and BEA. But I know of another case, for example, where SSL connectivity was required for Tibco integration and it was not supportable (at that time at least).
Depending on the JMS provider being used, you may run into varying degrees of issues during integration and, unfortunately, varying degrees of support SAP can provide. So if you have the option, stick with the well supported JMS providers I listed initially. If the JMS provider in your landscape is not one of these, I'd recommend creating a SAP customer message to find out whether your particular JMS provider can be supported before going forward with it in your interface design.
BTW, the guide <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10">How to Install and Configure External Drivers for JDBC & JMS</a> gives you the specifics on how to deploy the JMS drivers.
Regards,
Jin -
Hi All,
We are implementing JMS in one of our projects. What are the .jar files that need to be deployed in XI and where can i find these .jar files?
Thank you,
Regards,
Balaji.MThere's no reason that I can think of to use a custom startup class to implement MQ integration. Search the Oracle WebLogic General and/or JMS forums for the keyword "MQ" and you will quickly find links to the related FAQ in the JMS edocs and a step-by-step blog.
Tom -
Oracle 9i Streams AQ JMS jar files download
Hi,
i assume i need some jarfiles to access Oracle Streams AQ JMS for Oracle 9i.
I just want to write some JAVA Applications using "Oracle Streams AQ JMS for Oracle 9i"
What should i download? Where could it be found?AQ is part of the database. All the software related to AQ is included in the database. The doc for AQ is http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96587/toc.htm
Chapter 3 of the doc includes:
Using PL/SQL to Access AQ
Using OCI to Access AQ
Examples
Using Visual Basic (OO4O) to Access AQ
For More Information
Using AQ Java (oracle.AQ) Classes to Access AQ
Accessing Java AQ Classes
Advanced Queuing Examples
Managing the Java AQ API
Using Oracle Java Message Service to Access AQ
Standard JMS Features
Oracle JMS Extensions
Accessing Standard and Oracle JMS
For More Information -
Loadjava resolves jar file but classes are not showing up in user_objects
Hello, oracle noob here,
I'm loading a vendor's jar file in oracle with loadjava with the -v -f -r flags and the classes I need and I see them either getting resolved or skipped:
c:\loadjava -r -f -v -genmissing -u "uid/pwd@mydbatrain" ekahau-engine-sdk.jar
resolving: class com/ekahau/common/sdk/EConnection
skipping : class com/ekahau/common/sdk/EErrorCodes
skipping : class com/ekahau/common/sdk/EException
skipping : class com/ekahau/common/sdk/EMsg
Classes Loaded: 114
Resources Loaded: 1
Sources Loaded: 0
Published Interfaces: 0
Classes generated: 0
Classes skipped: 0
Synonyms Created: 0
Errors: 0 Thinking everything went well I ran my routine to call EConnection but I get a NoClassDefFoundError on that call, which tells me that the aurora JVM can't find the class.
After chasing my tail with the server's CLASSPATH, it dawns on me that it should already be in the user_objects table since loadjava should have put it in there.
But when I query user_objects to see if EConnection is in there,
SQL> column object_name format a30
SQL> column object_type format a20
SQL> select object_name,object_type, status from user_objects where object_name like '%ekahau%';
OBJECT_NAME OBJECT_TYPE STATUS
com/ekahau/common/sdk/EMsg JAVA CLASS VALID
com/ekahau/common/sdk/IMsg JAVA CLASS VALID
com/ekahau/engine/sdk/Asset JAVA CLASS VALID
com/ekahau/engine/sdk/Device JAVA CLASS VALID
com/ekahau/engine/sdk/Event JAVA CLASS VALID
com/ekahau/engine/sdk/Location JAVA CLASS VALID
com/ekahau/engine/sdk/Model JAVA CLASS VALID
com/ekahau/engine/sdk/ModelMap JAVA CLASS VALID
com/ekahau/engine/sdk/TagMenu JAVA CLASS VALID
9 rows selected.
SQL> It's not there along with 104 other class I thought it loaded
I picked up the idea of running java inside oracle from an OCP and I can run a simple isolated java program myself and even make database calls.
But it seems I didn't get all the knowledge i need when it comes to loadjava and getting a jar files classes into user_objects to be useful.
Can anyone help an oracle noob with loadjava?Thank you, Gary.
I updated the post with the version info. I did not explicitly install this JDBC driver, so whatever the OSD came with? Unless it is using whatever is installed on my machine, in which case would be the thin driver.
I did check out that post, and I appreciate you sharing it. I did click the 'include synonyms' filter, but behavior remained unchanged.
I would prefer to use OSD, and that is what our dev team was expecting to use, but we just can't see the information. We are using an ID that does not 'own' those tables, per se. But, why would DBVisualizer show these tables, when OSD does not? -
Hello Experts,
We are trying to establish connection between PI and webshpere ,for that we are using JMS adapter.
And in the channel we are getting the error as:
Error connecting due to missing class: com.ibm.websphere.naming.WsnInitialContextFactory. Ensure that all resources required are present in the JMS provider library: com.sap.aii.adapter.lib.sda
Can anyone please provide me the required jar files or the path from where i can download the .jar files required for this purpose.
Regards
NaveenHi,
Thanks for your reply ,i have installed 2 jar files:
naming .jar and
javax.j2ee.connector.jar.
But still geting the error as :
Channel error occurred. Detailed error (if any) : com.sap.aii.adapter.jms.api.connector.ConnectorException: Error creating initial context with environment: {java.naming.provider.url=iiop://xyz, java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory, java.naming.security.principal=xyz, java.naming.security.credentials=xyz}for profile: ConnectionProfile of channel: JMSSender_MESon node: xyz having object id: xyz: javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory<br> at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createInitialContext(JndiConnectorImpl.java:65)<br> ...
Urgent help required..
Thanks -
JMS Grid, SeeBeyond IQ, Sun JMQ jar files required for JMS Clients
I'm trying to determine the Jar files required to connect to JMS Grid, IQ, and JMQ. I am testing connectivity to each product independently and I think I may have copied over more files than necessary.
I'm trying to determine the Jar files required to connect to JMS Grid, IQ, and JMQ. I am testing connectivity to each product independently and I think I may have copied over more files than necessary.
-
Looking for JAR files for AQ JMS
Hello all,
I installed Oracle 9i 9.2.0.1 and trying to run a
JMS Sample that uses JMS oracle.jms.AQjmsQueueConnectionFactory
and oracle.jms.AQjmsSession. My questions which jar
files should be included in the CLASSPATH.
thanksThe jar file you need is called aqapi.jar.
-
SAP JMS Provider client jar files
Hi,
We are attempting to use the JMS provider service on XI 3.0 SR1 as the messaging system. What are the jar files that an external J2EE application need to access the SAP JMS provider? Has anyone used the SAP JMS provider? I greatly appreciate if you can share your experience.
thanks.
James ChangHello James,
The performance for such big number of messages depends mainly on the message size. If you are sending just a TextMessage with short text, then the SAP JMS provider is able to handle 100 000 messages per hour. That value represents an average number of 30 messages per second that is covered.
However, please have in mind two issues :
The messages will be transferred through a TCP/IP connection, so make sure that your network bandwidth to the SAP J2EE server is able to handle such load without any delays. If the messages are persistent (default mode) they will be stored in the server database. That will be the main bottleneck for the message sending especially if the size of your message is big (>100K).
I think it will be best if you create a small prototype on your environment and verify the number of messages that can be sent.
Best Regards
Peter Peshev -
Hi all,
I am trying to place .jar files in classpath in order to access Tibco JMS server. Does anyone has
idea how to place these files?
Thanks
DenoHi,
take a look at this article,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
Regards,
Bhavesh -
ODI - Multi development environment how to share the JAR files
Hi,
For some of our functionality, existing KM not sufficient so we created with our own KM and we have called some jave code which we created and place inside lib directory of ODI as a JAR file. there are four people in the development work. so we have four development environment(all are complete installation, i.e while installing we choosing Complete Option).
One of our developer created the our own KM and he placed the jar file in his own Dev environment's lib Directory. Since four Dev environment shares the some work rep we could see the new KM and all the ODI object in all the dev env. but if we run the the ODI interface which use the new KM from other Dev environment where we dint place the jar we are getting Error.
if we keep the jar file in all the other three Dev environment's LIB directory then respective interface working.
here my doubt, is there any other way to share the JAR file to all the Environment without copying into everywhere?
Thanks
KnidhiThanks you verymuch Cezar and Ratish, now almost i got the answer for my question.
i installed ODI Server into separate machine. it has folder structure as follows
Directory: D:/ODIServer/oracledi/ has the following subfolder
1.bin 2.drivers 3.lib 4.tools.
here i need to keep my Jar files under the lib folder. am i right?
and bin directory contains only Agent related batch files. (agent.bat, agentscheduler.bat,agentservice.bat,agentstop.bat,agentstart.bat,agentweb.bat and jython.bat and respective .sh files)
here dont know how to precede the following things
1. how to configure the Master and Work Repository information with ODI Server?(MR and WR i already created with the help of one the ODI Client)
2. how to configure the Client machine to Server?
3. Since ODI Server not having the Topology, how to create the Agent? do i need to use any one of the ODI Client for this task?
--Thanks
Knidhi -
Crystal Report not works in JAR File
I'm using Eclipse All in one, which includes Crystal Reports.. I Connected my Java program with Crystal Reports and its working properly. Now my problem is that the Report is not working in JAR files.. It throws some exception as
"com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects
com.businessobjects.reports.sdk.JRCCommunicationAdapter---- Error code:-2147215357 Error code name:internal"
Whats the Error.. I don't know. I think that i may missed some CLASSPATH Files. The included CLASSPATH Files are:
ReportViewer.jar
jrcerom.jar
Concurrent.jar
CrystalCharting.jar
CrystalCommon.jar
CrystalContentModels.jar
CrystalExporters.jar
CrystalExportingBase.jar
CrystalFormulas.jar
CrystalQueryEngine.jar
CrystalReportEngine.jar
CrystalReportingCommon.jar
icu4j.jar
keycodeDecoder.jar
log4j.jar
MetafileRenderer.jar
rasapp.jar
rascore.jar
rpoifs.jar
Serialization.jar
URIUtil.jar
xercesImpl.jar
xml-apis.jar
and the mysql-connector jar file
Anybody help me please...Unable to load database connector
'com.crystaldecisions.reports.queryengine..driverImpl.
DriverLoader
now you have any idea.. pleaseIs that a typo where you have two periods below?
queryengine..driverImplOther than that I don't think anybody here can help you with that. If your classpath includes all necessary JAR files and you are able to access all your resources from within your application JAR file, then I imagine there is a problem with the third-party crystal decisions JAR file or how you are attempting to use it.
My advice to you is to try and contact support with the vendor or provider of this API or possibly try posting on a support forum on their website to see if somebody can help you there. -
Please I can not get a .jar file to run on XP SP3 start/run/cmd/
I can not get a .jar file to run on XP SP3 start/run/cmd/
Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
I'm trying to run this jar file (soht-client-0.6.2.jar):
http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
(yes the file can be executed and should open the program's window
I wanted to post screenshot of it but friend that it's working for isn't here)
_(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
_I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
++I then start/open/run/cmd+
then I: cd C:\062\+
then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
java -jar soht-client-0.6.2.jar
java -jar -client soht-client-0.6.2.jar
java -client -jar soht-client-0.6.2.jar
java -jar soht-client-0.6.2.jar soht.properties
soht-client-0.6.2.jar
So I try this cmd: java soht-client-0.6.2.jar
Reply:
C:\062>java soht-client-0.6.2.jar
Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: soht-client-0.6.2.jar. Program will exit.
I try this cmd:
java -jar soht-client-0.6.2.jar -client
Reply:
C:\062>java -jar soht-client-0.6.2.jar -client
Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
ent (The system cannot find the file specified)
SOHT Java Client
The SOHT Java Client requires a properties file. Either start
the application in the same directory as the soht.properties
file, or specify the file name on the command line:
java -jar soht-cleint-<version>.jar c:\soht.properties
So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
j_ava -jar soht-client-0.6.2.jar -client soht.properties_
java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
So then I copy soht.properties to C root and do:
java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
Then from other information I have read I right click on the .jar file, select open with Always open with:
_"C:\Program Files\Java\jre6\bin\javaw.exe"_
Try again.. same problem.
Then I do cmd:
_"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
does nothing, retry the other commands same thing (either nothing or those same replies)
Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
C:\062>java -jar soht-client-0.6.2.jar
'java' is not recognized as an internal or external command, operable program or batch file.
Then I install Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
go to test java page; all is good, run cmds again -and still nothing..
C:\062>java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
same thing.. nothing
Thank you very much for your time :D_
PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.Thank you very much for your replies Taggert_77 & swmtgoet_x :D
Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
The proper cmd is simply: java -jar soht-client-0.6.2.jar
I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
java -client -jar soht-client-0.6.2.jar soht.properties
Thank you again...the mystery remains
PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).
Maybe you are looking for
-
GPU panics after Windows 8.1 install
Hello all, I am experiencing a "funny" issue though I am not laughing... Am using a mid-2012 15" Macbook Pro with retina. The hardware is great and I have never had any issues with it. OS X just ***** - in so many ways - and this is my personal prefe
-
ABAP or SAP BW please suggest on this
Hi ALL, I am new SAP environment i worked in Business objects earlier now i have an option to select ABAP or SAPBW . Please can anyone suggest which one i need to prefer and why . Thanks & Regards Sameer Khan
-
How to correct sql to populate parent(id) in curr_mgr_id
HI ALL, SELF_REFERNTIAL_INTEGRITY DEFINED ON EMP_HCHY ID IS A SEQUENCE GENERATED NUMBER CREATE TABLE EMP_HCHY(ID NUMBER PRIMARY KEY, CURR_MGR_ID NUMBER REFERENCES EMP_HCHY(EMP_NO), EMP_NO VARCHAR2(20), TITLE_NM VARCHAR2(20)) CREATE TABLE STG_HCHY(EMP
-
Convert from Single Org to Multi-Org
Hi All, Can someone tell me what are the steps to convert from Single Org to Multi-Org ? Is it only the profile value 'MO: Operating Unit' to be setup ? or any other steps to be setup ? Regards Jhansi
-
Schwärzung in Acrobat Prof., Alternative im Acrobat Standard?
Meine PDF's enthalten Textpassagen mit pers. Daten, die ich vor Veröffentlichung entfernen möchte. Im Acrobat Prof. habe ich die Möglichkeit Text zu schwärzen, also wirklich aus der Datei zu entfernen. Im Acrobat Standard gibt es die Funktion nicht,