ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Invoke a map using Java API

Post new topic  Reply to topic
 Invoke a map using Java API « View previous topic :: View next topic » 
Author Message
Srinu
PostPosted: Wed Sep 05, 2007 4:33 am    Post subject: Invoke a map using Java API Reply with quote

Acolyte

Joined: 15 Jun 2005
Posts: 51

I am trying to invoke a map using Java API for TX. When I try to run the below program I am gettting an Exception

Program:

import com.ascentialsoftware.dstxpi.*;
public class WTXClient
{
//private static String szInputBuffer = "This is my input data";
public static void main(String[] args)
{
try
{
System.out.println("Starting...");
// Initialize the API
MMap.initializeAPI(null);

// Load a map
System.out.println("Creating instance of Compliance check map...");
MMap map = new MMap("D:\\Austin\\New Folder\\Sample Map.mms");


// Run the map
map.run();

// Clean up
map.unload();
MMap.terminateAPI();
}
catch( MException e )
{
e.printStackTrace();
}
}
}

Exception:
C:\Java\jdk1.6.0\bin>java Example1
Exception in thread "main" java.lang.UnsatisfiedLinkError: no dstxjpi in java.li
brary.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at com.ascentialsoftware.dstxpi.MBase.<clinit>(Unknown Source)
at Example1.runMap(Example1.java:19)
at Example1.main(Example1.java:


Please help me out.

Thanks,
Srinu
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 05, 2007 4:42 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I'd say your PATH or LIBPATH/LD_LIBRARY_PATH or java.library.path environment variables are not set up correctly in the shell that is running your program.

The documentation on the Java API for running Maps should tell you what's missing.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Invoke a map using Java API
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.