Java

Eclipse Debugging for wm 6.5

Re-posted from Installation.

Since the jdk has been removed from wm 6.x I am at a loss as to how to debug services with eclipse (Juno). How do I get the eclipse debugger to work with wm 6.5.3 ? Also, how do I expand PermGen space?

I think there may be an environment variable I can set with the relevant parameters.

Thanks for any assistance.

Unable to update database record using generated Java classes

I am having problem updating a database record on MySQL.
I am running 6.6.0.M2. Database table uses a generated id (Identity) as the primary key. The code runs without giving any error or warning. Insert record works fine. Update of the first name does not get written to database.

What did I do wrong?

Here is a fragment of the Java code.


// Create a new contact record and write to database.
// This part works.

CustomerDB customerDb = null;
customerDb = (CustomerDB)RuntimeAccess.getInstance().getServiceBean("CustomerDB");

Contact contact = new Contact();

Error when starting Wavemaker

Hello everybody,
I am new to Wavemaker and also start building up programming skills.
Please help me with the following problem:
I just installed WM (Win7). Everything went well. But when starting WM I get an error message: "Error Loading: D:\Program Files\Java\jre7\bin\msvcr100.dll".
I had Java allready installed before installing WM. It is installed on an external HD (D:).
I also use Liferay and there I could config where to find the JRE.

How can I fix the problem?

thank you very much in giving me some advice

regards Mollekopf

fella5s's picture

How To: Simple Task Scheduling Though @Scheduled -Annotation

ScheduleDemo

This is quick instructions how to enable scheduling trough @Scheduled -Annotation

pulsoft's picture

Security concern

Hi there, I am brand new to this tool and was directed to it by a post on the Alpha Software forum where disgruntled users are looking at alternatives.

Someone on that forum posted the following about WaveMaker :-
"Ken - I had looked at that one a while back before heading "here" :) The thing that "bothered" me then, and does so even more in light of the recent security issues, is that it builds Java apps. "

Is this a concern for current users?

Thanks,

Dermot

P.S. re. the avatar - OK, I wasn't in the navy but I do have man boobs and need a haircut...

"Save as" dialog in client side

Hi all, I need to show a "save as" and retrieve the file name in client side but I can´t find any example for implement this.

anybody give me a hand please.

Richard R.
Montería, Colombia

RaIrata's picture

Rich Text Editor LocalImage plugin

Hello,
i'm studying a way to allow users insert images on a Rich Text Editor.
I saw that LocalImage dojox plugin is based on a php service.
Is it possible to use the File Upload java class of File Uploader widget instead?
Or i have to write a java service that behave like that php service?
Anyone had never tried something in this regard?
Thanks.

How do I provide a Custom Security Provider written in Java?

Hello,

the Security Providers in WM do not fit my needs. So I figured the best way of profiting from the built-in WM Security is to provide my own Security Provider. Is there a tutorial showing me how?
The User provides his login and password which then (by WM) are passed into my Security Provider which then actually tells WM if that is valid (maybe by providing a bool or a UserRole).
The UserDetails technique used in http://dev.wavemaker.com/forums/?q=node/5801
is not suitable for me.

thx in advance! :-)

Composites with Java Service, how to handle JAR file requirements

Composites are a solution to several challenges I have been facing. However in attempting to implement a requirement, I ran into a need to bring some 3rd party jar files along for a java service. Are there any best practices or recommendations for how to handle this?

luism's picture

Offline operation

Hello,

Is it possible to work on a deployed app offline? for example a point of sales system that when goes offline due to a conection problem keeps on working normally with a local database something like the phonegap storage? so when the conection goes online again it just syncs the changes to the main database. is there a work around? im kinda lost right now on this, so i would like to hear some advises or examples.

Thank you!

How do I get the serviceId

Hello there,

Sorry but my english isnt perfect so I hope you get my question, if there are any problems because of my poor english just ask. Thank you

So my problem is, I would like to get RuntimeAccess.getInstance().getService(java.lang.String serviceId) but my problem is, I dont know where I can get the serviceId.

I hope sombody can help me :)

Thx Nartales

WM does not read values of Bean - in JavaServiceVariable all is correct

Hi there,

I already spent a whole day, but just could not get it to work:

In WM I fetch a "remote" Bean via a JavaService and save it in a Model. This Model has proper getters and setters but NO fields - the values are stored in a List of KeyValue-pairs, which is accessed by the getters, like this:
public String getSynonym() { return getFieldValue(3).v; }
public void setSynonym(String value) { setFieldValue(3, value); }

Here comes trouble: in my ServiceVariable I log the data using:
log(INFO, "Got synomyn:" + ret.getSynonym());

Using results of query in java service

I have a data base query (a service). Now I want to do something with the results of this query in a java service. How do I access the query results in a java service?

Calling a service from java

Hey, I'm testing the waters in wavemaker, and i am having some trouble trying to implement business logic in my project. I'm trying to call a query service, defined in wavemaker, in a java service. How can I do this? Do I need to pass a service variable to the function? If so, how?

glpunzi's picture

WaveMaker + NetBeans

I'm not an expert in Java dev, but seems like I feel more comfortable under NetBeans than Eclipse.(and nebeans look more lightweight).

Somebody knows how to configure NB to fully integrate with WM projects?
Ipmporting project, spring integration, debugging server side, and so on.

Regards.