Need help: Using JMS to callback a client.

Hi everyone,
I'm having a very frustrating problem. I'm just started to use JMS to overcome callback
problem with EJBs. I simply want my EJB to send something (pub/sub) to my client so it
can update some display. I first instantiate my Client and TopicConnection etc. etc. then
create the EJB, invoke it and the EJB sends some TextMessage back. However, the TextMessage
never seems to arrive at my Client. The TextListener never seems to deliver.
Here's the snippet:
EJB:
private void createPublisher() {
try {
Context ctx = new InitialContext();
System.out.println("Server looking up JMS Service");
TopicConnectionFactory conFtry = (TopicConnectionFactory) ctx.lookup("java:com
p/env/jms/MobiDTopicConnectionFactory");
topic = (Topic) ctx.lookup("java:comp/env/jms/TopicName");
con = conFtry.createTopicConnection();
session = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
publisher = session.createPublisher(topic);
TextMessage mesg = session.createTextMessage();
System.out.println("Server is sending message, see anything?");
mesg.setText("This is from publisher");
publisher.publish(mesg);
// Exception catching stuff snipped.
public void ejbCreate() { createPublisher(); }
Client:
public void createSubscriber() {
try {
Context ctx = new InitialContext();
TopicConnectionFactory conFtry = (TopicConnectionFactory) ctx.lookup("java:com
p/env/jms/MobiDTopicConnectionFactory");
Topic topic = (Topic) ctx.lookup("java:comp/env/jms/TopicName");
con = conFtry.createTopicConnection();
session = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
subscriber = session.createSubscriber(topic);
subscriber.setMessageListener(new TextListener());
con.start();
System.out.println("Connection started");
// Exception stuff snipped.
public static void main(String args[]) {
try {
ConverterClient cc = new ConverterClient();
cc.createSubscriber();
System.out.println("Subscriber is ready");
Context initial = new InitialContext();
System.out.println("Looking up the bean...");
Object ref = initial.lookup("java:comp/env/ejb/SimpleConverter");
System.out.println("Getting the home interface");
ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(ref,
ConverterHome.class);
Converter conv = home.create();
double amount = conv.dollarToYen(100.00);
InputStreamReader inputStreamReader = new InputStreamReader(System.in);
char answer = '\0';
while (!((answer == 'q') || (answer == 'Q'))) {
try {
answer = (char) inputStreamReader.read();
} catch (IOException e) {
System.out.println("I/O exception: "
+ e.toString());
Can anyone spot what's wrong with the code? I've been trying to get this to work for the
past two days but to no avail. Please help...
Thank you in advance.
-vincent

Hi, thanks for all your reply.
The TextListener is the one downloaded from this website in the
tutorial but I used it in different program. Here's the TextListener:
public void onMessage(Message message) {
System.out.println("Receiving message in onMessage()");
TextMessage msg = null;
try {
if (message instanceof TextMessage) {
msg = (TextMessage) message;
System.out.println("Reading message: " +
msg.getText());
} else {
System.out.println("Message of wrong type: " +
message.getClass().getName());
} catch (JMSException e) {
System.out.println("JMSException in onMessage(): " +
e.toString());
} catch (Throwable t) {
System.out.println("Exception in onMessage():" +
t.getMessage());
Strangely, this does not work as it never print the message. Can't see what's
wrong from a glance though and I'm not getting any error message whatsoever.
However, I tried my own listener:
static class MyListener implements MessageListener {
public MyListener() { }
public void onMessage(Message msg) {
try {
System.out.println("Message received: " + ((TextMessage) msg).getText())
catch(JMSException ex) { ex.printStackTrace(); }
And this works...I just don't get it. MyListener is a static because I used it in my main().
Anyone can give any comment?
thanks,
-vincent

Similar Messages

  • I need helping using iAds in my application.

    I need helping using iAds in my application. I currently am not using any storyboards. I am using Sprite builder for my UI.
    I attatched an image ot show all the different file name I have.
    Everyone is being used & they all work fully.
    The "iAdViewController.h & .m" files are just example codes I looked up and was messing with so that my iAd can work.

    I wouldn't even be able to use the Mathscript node in an executable? 
    What I am trying to do is make a user configurable data stream. 
    They tell me how many bytes are in the stream and what parameters they
    want to be put in to it.  Currently I have to make vi's that are
    called dynamicaly to make the parameters.   Then recompile
    the code and send it to them.  This is somewhat of how the config
    file is set up so I know how to make the data.
    Data_Type  foo
    Bytes 30
    parameter_name        
    function           
       byte#          format
    sync              
    foo_sync            
    29               int
    time                              
    foo_time             
    1,2,3,4       double
    If I can't use MathScript to allow the user to make there own functions
    is there another way that I might be able to do this so I do not have
    to recompile the code atleast?  Were I might just be able to make
    the new function and send that to them.
    Any Idea would be great.

  • Re: Beginner needs help using a array of class objects, and quick

    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ? In html, I assume. How did you generate the html code of your three classes ? By help of your IDE ? NetBeans ? References ?
    I already posted my question with six source code classes ... in text mode --> Awful : See "Polymorphism did you say ?"
    Is there a way to discard and replace a post (with html source code) in the Sun forum ?
    Thanks for your help.
    Chavada

    chavada wrote:
    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.You think she's still around almost a year later?
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ?Just use [code] and [/code] around it, or use the CODE button
    [code]
    public class Foo() {
      * This is the bar method
      public void bar() {
        // do stuff
    }[/code]

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • Need help using dbms_scheduler to submit an immediate job on the database

    Hi. I need help using dbms_scheduler to submit an immediate job on the database. Essentially I want to issue a one-time call to an Oracle Stored Procedure - this procedure will then send an email. I've never used dbms_scheduler before, but here's what I have so far.
    So my Program is a stored database procedure named 'TTMS.dropperVacationConflict_Notify', but my problem is that I need to pass 3 parameter values to this job each time I run it. This is what I can't figure out. The procedure expects an 'Id' as number(5), begin_dt as a date, and end_dt as a date.
    How do I pass these values when I run my job? Can anyone help?
    begin
        dbms_scheduler.create_program(program_name=> 'PROG_DROPVACCONFLICTS_NOTIFY',
         program_type=> 'STORED_PROCEDURE',
         program_action=> 'TTMS.dropperVacationConflict_Notify',
         number_of_arguments => 3,
         enabled=>true,
         comments=> 'Procedure to notify PCM of a Dropper Vacation Conflict. Pass in Dropper Id, Begin_dt, and End_dt');
    end;
    begin
        dbms_scheduler.create_schedule
        (schedule_name=> 'INTERVAL_EVERY5_MINUTES',
         start_date=> trunc(sysdate)+18/24,
         repeat_interval => 'freq=MINUTELY;interval=5',
         end_date => null
         comments=> 'Runtime: Every day all 5 minutes, forever'
    end;
    begin
        dbms_scheduler.create_job
        (job_name => 'JOB_DROPVACCONFLICTS_NOTIFY',
         program_name => 'PROG_DROPVACCONFLICTS_NOTIFY',
         schedule_name => 'INTERVAL_EVERY5_MINUTES',
         enabled => true,
         auto_drop => true,
         comments => 'Job to notify PCM of Dropper Vacation Conflicts'
    end;
    /And I use this to execute the job as needed...
    begin
        dbms_scheduler.run_job('JOB_DROPVACCONFLICTS_NOTIFY',true);
    end;
    /

    Duplicate Post
    Need help using dbms_scheduler to submit an immediate job on the database

  • Need help using Apple Remote Desktop for remote family members

    I am new to ARD and need help. I know there are solutions to do what I am trying to do through LogMeIn and Teamviewer - but I have LogMein right now and the free edtition is going away and I think Teamviewer will do the same sooner or later. I have remote desktop but hadnt used it, so I thought it would be a good thing to implement so I wont have to worry about paying fees for services like LogMein or teamviewer down the road.  Long story short I need to be able to remote help friends and family members with their macs and using applications, mostly through screen sharing and control and file sharing. All of the folks id like to help have home ( not business style ) internet service whith DHCP and non-static IP's.  I have set this up for myselft to test it and I can be at work and search my homes IP address and I can see all the macs with ARD on them and it all works perfectly.  I have a mac mini running Lion Server so the ports are forwarded to that server at my home - this is the only think I can think of that is making my home work and my friends not.  But when I try to help my friends and family after I type in their IP and it scans it sees their computer - ( it shows a grayed out icon and their IP ) but nothing else.  I cannot control or screen share. It says it cannot verify.  I helped my friends put the ARD client ( most up to date client ) on their macs as well.  I was hoping that using ARD would mean not haivng to set up my friends and family's routers for port fowarding and all those details.  Is there anything I can do using ARD to be able to type in my friends IP address have it scan and then see all their MACS at their home and pick the one that needs attention/ help, without port forwarding or heavy set up ?  I guess the root question here is how or what is best way to set up ARD to be used to help people remotley when they are all home users as well, no port forwarding, no static-IP, that kinda thing.
    Any help is appreciated - Im trying to use ARD and not a 3rd party app since im afraid even if they are free now they wont stay that way. Please let me know throughts and sugesstions ;p)

    I poked around a bit and the file seems to be:
    /Library/Application Support/Macromedia/mms.cfg
    I'd like to get some confirmation from Adobe that this is the correct file to push, though (it seems like it as it only contains this):
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1

  • Need help using 1440x1080 footage in a SD 4:3 timeline

    Hi Folks,
    I need to use some AVCHD footage in a normal SD 4:3 timeline destined for a dvd. I'm trying to figure out the best workflow. The client provided a usb hard drive with some files extracted from a Sony hdr-sr5. I know the first problem is ingesting these files. I'm on a PPC G5 so I know using the L&T window isn't an option. I have experimented with using Toast to convert the files to ProRes 422 and that seems to work to some degree. I'm probably not doing it correctly because the footage shows up in FCP looking somewhat squished down and with letterbox bars above and below. In Toast the files indicate that they are h.264 1440x1080. When viewing in the Toast Video Player they get 'expanded' to 1920x1080. So I'm not sure why the footage gets letterboxed when converted to ProRes. So I guess that's the first part of the problem.
    The second issue is that I just need to use the center crop of the image in a SD timeline. It's just talking head stuff so there's no problem cropping down. But I'm just not sure I understand the correct procedure for doing that once I have the footage ingested in the proper format.
    I could definitely use some guidance here as the whole AVCHD thing is new to me.
    Thanks,
    Chris

    Can't help with your first question, but create an sd 4:3 timeline. Drop your hd footage into it. It will come in letterboxed. In the motion tab, remove any distortion, scale and position to your liking

  • Need Help Using JTA / Tyrex

    I am unable to find any sample code for using Tyrex's Transaction Manager and the JTA API. Can anyone help me here? There are a few things I need help with, but if you can help me on any of them that would be huge!
    1. Setting up / Configuring Tyrex
    2. Adding MS SQL as DataSource (and Transaction Domain? It's not clear what that means exactly) (I have the beta JDBC driver from MS)
    3. Writing Code to execute a DB statement inside a transaction
    4. Writing Code to make an object I create participate in a transaction, i.e. you can rollback setting something on my object. e.g. if you an object MyObject had a default "age" of 10 and you called MyObject.setAge( 25 ); and then called trans.rollback(); and then MyObject.getAge() it would return 10.
    I looked on Java.sun.com for some info on using transactions but it appears that they do NOT want to promote Java developers learning the transaction API in that depth. Rather, they'd prefer that you only use the JTA as a client, e.g. through EJB Containers. Does anyone know of some tutorials or something on this stuff any where? I want to write my own transactionable objects/system but there's almost no info anywhere. And Tyrex's website has next to nothing in help too!
    - Robert

    There's been several discussions on the tomcat-user mailing list mentioning Tyrex recently. I have no idea if they're relevant to you, but I remember seeing them go by and wondering what the $#$%)(%^ Tyrex was... <grin>
    You can search the list archives at http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

  • Need Help using WRT54GL as Wireless Bridge for Xbox

    Hi.
    I need help configuring my WRT54GL as a wireless bridge for my xbox.
    I have a Billion BiPAC 7404VGO currently in service as my main router/modem. i.e. I have my ADSL connection and PC connected to this. I also connect to this with a laptop.
    I have an original xbox at the other end of the house (cat5 NOT an option).
    Basically I want to connect my xbox to the rest of network. I have a WRT54GL I can use for this. I just dont know how to set it up.
    The WRT54GL has Firmware Version: v4.30.7 (out of the box).
    My Wireless network is using WPA.
    I have a VPN setup through to work via the Billion.
    The idea is to stream media from my PC to the xbox (media centre).
    Any help would be HUGELY appreciated.
    Thanks in advance.
    Katman

    A wireless router is a device which requires its own wired internet connection. A wireless router is not a wireless access point like the Linksys WAPs. A wireless router does not connect wireless to other wireless routers/APs with standard Linksys firmware. With Linksys firmware you need a WAP54G or similar. The WAPs support wireless bridging and repeater mode.
    If you already have a WRT54GL then you have to install a 3rd party firmware which adds wireless bridging capabilities. Read the wikipedia article on "WRT54G" for information about which WRT models support 3rd party firmware and an overview of projects and links.
    Remember, however, that you may brick your router if you install a 3rd party firmware incorrectly and you probably void the warranty if you install 3rd party firmware (it is even possible to find out after you restore the original Linksys firmware if you don't clear the NVRAM before).

  • Need help using WEB module in Lightroom 2 for .mac/mobile me accounts

    Hello,
    I need help in finding the Server path information for Lightroom 2.  I am trying to use the Web module of Lightroom and build a website and instead of going through another hosting service, I want to use my Mobile ME account, can't I do that?
    I have the user name and password obviously but what is the server path, protocol, path?
    Help please!
    Thanks
    Ray

    For those Mac Users using iWeb, MobileMe, and Lightroom 2, here are step-by-step instructions on how to create a web gallery in Lightroom, upload the gallery to MobileMe, and finally, how to link the uploaded files to the wesite you created in iWeb.
    1. In the Lightroom Library module, create a collection of photos you want to display in your web gallery.  For illustration purposes, we will call your collection Sunsets.  Once created, it will be listed under Collections in the left panel of Lightroom.
    2. Switch to the Lightroom Web module and select the Sunsets collection (from the panel on the left of the screen.)
    3. Chose whichever template you like (from the list of Templates in the left panel).
    4. Fine tune the appearance of the gallery using the controls in the right hand panel of Lightroom 2.
    5. When you are satisfied with the gallery’s appearance, use your keyboard to type Command-S.  That will save your template settings (give it a unique name when saving).
    6. Open up Finder on your Mac.  Inside your username folder, create a new folder… I'll call it Web Files.  (You can choose any name you like, and locate the file anywhere on your Mac HD.)  You have just created the folder username/Web Files.
    7. Back in the Lightroom Web module, chose Export, at the bottom of the right panel, and export your gallery to the folder you just made (e.g. export to username/Web Files).  By doing so, you will have created /username/Web Files/Sunsets.
    8. Once again open Finder on your Mac.  Go to /username/Web Files/Sunsets and you will see 3 files in the Sunsets folder: bin, index.html, and resources.
    9. Open a second Finder window and in it, click on your iDisk icon.  You will soon see all of the files on your iDisk.
    10. In iDisk, click on the folder called /Web.  You will now see the /Sites folder inside the /Web folder.  I.e., /Web/Sites.
    11. Drag the Sunsets file from your Mac HD to the /Sites folder on your iDisk.  E.g, drag Sunsets from /username/Web Files/Sunsets on your Mac HD to the /Sites folder in iDisk /Web/Sites.  The Sunsets folder (and the three files it contains) will now upload to your iDisk on MobileMe.
    12. Open iWeb on your Mac. Add a new page to your website.  Call it “Galleries,” or anything you like. (You can also use an existing page if you wish.)
    13.  On that “Galleries” web page (or on an existing web page), create a picture icon, or a word, or a symbol, or anything else that you will activate as a hyperlink to your iDisk web files - specifically, you will link it to the Sunsets folder you just uploaded to iDisk.
    14. Activate the hyperlink in iWeb’s Inspector.  In the URL box, type:
    http://web.me.com/username/Sunsets  (Don’t forget to substitute your name for “username” and the name of your gallery for “Sunsets.”)
    15. Save your website in iWeb, and then publish your site.
    You will NOT see your gallery in iWeb – you will see only the link to the gallery that you uploaded to iDisk..  To view your gallery, either make hyperlinks active, using the Inspector in iWeb and click on he link to the gallery, or visit your website on the internet.  If you want to edit your gallery, you will have to do that in Lightroom… then repeat steps 7 – 11.  You cannot edit your gallery in iWeb, but you can use iWeb to change the appearance of the link to your gallery, or to change it’s location within your website.

  • Need Help!! Errors during Local Client Copy

    Doing a Local Client Copy and getting these error messages in the log:
    Table Name       Component          Package
    /1CN/CMFSAPH0FOR                    DDIC Error        (See SE14)
    /1CN/CMFSAPH1FDT                    DDIC Error        (See SE14)
    /1CN/CMFSAPH1FFX                    DDIC Error        (See SE14)
    /1CN/CMFSAPH2TGR                    DDIC Error        (See SE14)
    /1CN/CMFSAPH2TRM                    DDIC Error        (See SE14)
    /1CN/CMFSAPH3TCT                    DDIC Error        (See SE14)
    /1CN/CMFSAPH3TUS                    DDIC Error        (See SE14)
    /1CN/CMFSAPH4TFX                    DDIC Error        (See SE14)
    /1CN/CMFSAPH4TQU                    DDIC Error        (See SE14)
    Then I go to SE14 then put the name of the tables then click CHECK >> DATABASE OBJECT and then as the result I get:
    "Table is not created in the database"
    If I go down to the database level and look within the Oracle database dba_tables the tables and objects exists within the database but SAP is unable to recognize them.  All objects were imported with a Oracle Data Pump dump file and now I just need help in getting SAP to recognize the tables.
    Edited by: Adam Gendle on Feb 19, 2010 12:29 AM

    Hi,
    Its showing inconsistency between ABAP Dictionary and the database.
    Have you run Test-Run before performing actual client copy ?
    Please check the Consistency of affected Tables.
    SE11 -> Display Table -> Utilities -> Database Object -> Check
    (check DB Object as well as Run time Object)
    Please refer this [SAP Note 686357 - Table pool length incorrect after Unicode conversion|https://service.sap.com/sap/support/notes/686357] to get more information. The relevant solution is mentioned there if the pool tables having inconsistency with VARDATA field.
    Also refer SAP Note 1171306 - Error with pooled tables when copying a client.
    Regards,
    Bhavik G. Shroff

  • Need to use JMS in Web service for PUB/SUB pattern

    Hi All,
    I have JMS configured in my Web logic server 10.3.4.
    I have stand alone program for JMS in PUB/SUB pattern.
    I have Web service application with Apache CXF framework.
    Now, the problem I need to integrate JMS in my web service application for new web service with PUB/SUB pattern.
    Can any one guide me to this.
    I am trying to use @WLJmsTransport annotation provided by Weblogic. Is this approach is correct?
    And It is giving error during deployment that weblogic.jws.WLJmsTransport is not allowed as it is a JAX-WS type web service.
    I think It is creating problem with annotation parameters.
    I am using annotation like @WLJmsTransport(contextPath="transports", serviceUri="JMSTransport", queue="Queue", portName="JMSTransportServicePort")
    and ConnectionFactory with name ConnectionFactory and JNDI jms/ConnectionFactory, Queue with name Queue and JNDI jms/Queue, Topic with name Topic and JNDI jms/Topic.
    Thanks
    Thanks in advance.
    Edited by: HBM on 21 Apr, 2011 1:42 AM

    Use this link.
    http://webloic-wonders.com/weblogic/2011/04/30/jms-based-webservice-on-weblogic-server/
    Thanks.
    Harshal

  • I have a TBI and need help using ADOBE products

    I was injured/blown up by a suicide bomber in Iraq.  I have a brain injury.  I am no longer the sharpest knife in the draw.  My brain does not follow along like it used to, and I need someone with some patience to help me go through some Adobe proucts to that I may learn them, and yes.. I can learn them... if someone will help me.  The tutorials are exceedingly difficult/impossible for me to follow and make my head want to come from together.
    I have the following products that I need help with please:
    CS5 Premium
    Photoshop Elements 2.0
    Creative Suite 5
    Visual Communicator 3
    Acrobat 9.0 pro
    I am not rich.. I am on a fixed income but am willing to pay whatever I can if you will help me.
    [email protected]

    First, you have my thanks and respect.  I wish I had time to dedicate to helping you.
    I do try to treat my own customers in my business as I would want to be treated.  It's amazing the number of people who come back after I answer their queries with comments like "Wow, it's nice to get a real person to answer, and quickly too!"
    -Noel

  • I need help using Premier Pro CS5 to create a short time-lapse video . . .

    Hello I am new to Prremier Pro and need help creating a short time-lapse video. I have a Sony CyberShot TSC-70 and a Canon ZR930 to capture images and video but none do time-lapse automatically (I think). I also have Premier Elements 9 and Photoshop CS5 if needed.
    I am late completely this project and need help. Suggestions urgently needed.
    Thanks,
    billy

    Nice to know Elements has that function! I don't have elements, and did a one hour into 15 seconds timelapse in Premiere by importing my one hour clip into the timeline, then using the time tool within the effects panel to speed the file up by 1000% (maximum allowable in a timeline, apparently...) Then I nested that sped up sequence within a new sequence, and did it again... I think I had to do it twice, but I got a nice  15 second sunset timelapse out of a one-hour shoot by using that route.

  • Need help using TD1Hdl in C++

    So I've generated a .dll to use in VC++.  After almost 3 full days of searching forums and messing with my code I really need to get something done.  The variables I'm trying to use are declared as follows:
    typedef struct {
    long dimSize;
    LStrHandle elt[1];
    } TD1;
    typedef TD1 **TD1Hdl;
     The function I need to call is:
    void __cdecl getFileList(TD1Hdl *SpecResults);
    According to LabVIEW SpecResults is an output variable that I should be able to use.  It is an array of file names retrieved from a database.
    I've gotten my code to compile many different ways but no matter what I do I can't get to dimSize or elt.
    Here's the closest I've gotten:
    int main(int argc, char *argv[])
    TD1 *tdptr = new TD1;//(TD1 *)malloc(sizeof(long) + sizeof(LStrHandle));
    TD1Hdl tdhdl = &tdptr;
    SetupWO();
    getFileList(&tdhdl);
    return 0;
    SetupWO() starts the main vi.  getFileList() is the subvi that i want to get the array from.
    Debugging with watches shows nothing in tdptr->dimSize or tdptr->elt[0].
    Any help you can provide is greatly appreciated.  Thanks in advance.

    Hi Drew!
    First of all thanks for getting back to me.  After almost a full week of debugging this, I think I've finally found a way to access what I need to.  I've separated the code into classes now so it looks a little different but I'll post the important stuff below.
    class wrapper
    public:
    void run();
    private:
    void LStrToCStr(LStrHandle lstr, char *cStrBuff, long buffLen);
    TD1 tdptr;
    TD1Hdl tdhdl;
    void wrapper::run()
    tdhdl = NULL;
    SetupWO();
    getFileList(&tdhdl);
    tdptr.dimSize = (*tdhdl)->dimSize;
    for(int i = 0; i < tdptr.dimSize; i++)
    tdptr.elt[i] = (*tdhdl)->elt[i];
    char atpString[256];
    LStrToCStr(tdptr.elt[i], atpString, 256);
    printf(atpString);
    printf("\n");
    void wrapper::LStrToCStr(LStrHandle lstr, char* cStrBuff, long buffLen)
    int32 len = LHStrLen(lstr);
    if(len >= buffLen)
    len = buffLen - 1;
    memcpy(cStrBuff, LHStrBuf(lstr), len);
    cStrBuff[len] = 0;
    This seems to be working.  I figured it out probably half an hour before I went home on Friday so I haven't had a whole lot of time to mess around with it yet.  The only problem I'm having is that the list I want should have 6 elements in it, but I'm only getting the first 2 when I go through the for loop before it errors.  I'm sure this must be because the array was declared: LStrHandle elt[1];
    I'm thinking I need to use the NumericArrayResize() function?  I haven't looked into it much yet, but I plan on checking it out today.  However in the mean time if you can provide any more advice that would be great!
    Thanks again!

Maybe you are looking for

  • Ordered a New 8 Core - OWC Memory OK?

    I finally bit the bullet and ordered the new 8 core Mac Pro. I need more memory, and while I normally do Crucial.com I used OWC in this case because it was substantially cheaper. I was able to get 4GB of OWC for less than the cost of 2GB from Crucial

  • Can we combine multiple data sources in single report?

    <span style="font-size: 10pt; font-family: Verdana">Can we combine multiple data sources in single report?</span>

  • Fetching resultset is slow

    I am using following JDBC driver. Manifest-Version: 1.0 Specification-Title: Oracle JDBC driver classes for use with JDK14 Created-By: 1.4.2_08 (Sun Microsystems Inc.) Implementation-Title: ojdbc14_g.jar Specification-Vendor: Oracle Corporation Speci

  • Flatten Hierarchy By Filtering Out Unnecessary Limbs

    We have numerous hierarchies in our organization that faciliate various reporting views.  Some of those views are slight variations of one another.  One common theme that we have encountered is the need for the same basic view, but with less granular

  • SCN badge Idea- what should be the correct steps?

    Respected Moderators, I have submitted an idea in the idea space, here it is: SCN badge for SAP Certified Consultants : View Idea I am confused what to do more: like there is a table as : SAP Idea place: known issues in 'SCN Innovation and Enhancemen