Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 6
Registered: ‎03-28-2011
My Device: Bold - 9700
My Carrier: Airtel

WebWorks and Java hybrid application development

Hi,

 

we are trying to build an xmpp client, the problem we are facing is there arent any good xmpp libraries written over J2ME... and we want a look and feel of JAVA native app and avoid html + css based UI

so we are trying this approach 

 

what we are doing :

1) a java Ui Application, posting global Events for any network related xmpp tasks

 

  2) a webworks application to run in background listening to these globalEvents with the help of javascript extension mechanism and using dojox.xmpp

 

so my questions:

1) Is it feasible ?

2) can globalEvents be published and listen from a Webworks application ?

3) off topic  : can a JAVA UI be embeded into a webworks application ?

 

any help is highly appreciated Smiley Happy

 

Regards

Sariputra 

 

 

 

New Contributor
Posts: 6
Registered: ‎03-28-2011
My Device: Bold - 9700
My Carrier: Airtel

Re: WebWorks and Java hybrid application development

i was implementing the 2 app model, and was wondering how would a WebWorks app listen to events published by other apps. what do i exactly write inside the eventOccurred of a GlobalEventListner implementation 

 

public void eventOccurred(long guid, int data0, int data1, Object object0,Object object1) {
 /// ???? i want to execute some javascript functions here 
}

 

 

please help 

 

Regards

Sari

New Contributor
Posts: 6
Registered: ‎03-28-2011
My Device: Bold - 9700
My Carrier: Airtel

Re: WebWorks and Java hybrid application development

after doing some research on this topic, i bumped up to the source code of of WebWorks RTM 2.0

and went thru the code base of 

 

WebWorks / api / app / src / blackberry / app / event / AppEventNamespace.java

 

on github and was going thru the mechnism used to provide api's like onExit onBackground and all

(which was my problem in the previous post)

 

i see the OnAppEvent Constructor takes An eventId param, which i see is not used anywhere 

so i was wondering if i can use this code base to provide a mechanism to subscribe to custom events published by other application 

 

there is still a lot of grey area..

 

looking for some help 

Regards

Sari 

 

New Contributor
Posts: 6
Registered: ‎03-28-2011
My Device: Bold - 9700
My Carrier: Airtel

Re: WebWorks and Java hybrid application development

i went thru the source code of webworks and would like to modify it a bit.. packaging inteructions are not updated on README on github.. when does RIM plans to publish it ??