Deployment and Databases

14 views
Skip to first unread message

gayanhewa

unread,
Dec 26, 2011, 1:52:25 AM12/26/11
to mChoice Developer
Hi Guys,

I am in the stage of getting started with an app for appzone. I have a
few concern and I think guys with previous deployed projects can help
me out with this.

1) Once I complete the application in my localhost ( Or my server)
does it have to be transfered to Etisalts internal servers or Do I
continue hosting with my server ? If I am to transfer how does the
DB's work ?

2) Are we given the opportunity to use sqlite as a backend ?

3) And who decides the codes for the applications , for an example to
register for an app we would say "Reg yl" in arunoda's yalu app.
Likewise do I determine or are there any limitations.

Are there anyother concerns that has to be taken in to account when
developing these applications.

Regards,

Gayan

Azeem Mumtaz

unread,
Dec 26, 2011, 1:29:23 PM12/26/11
to mchoice-...@googlegroups.com
Hey gayan! Let me answer your questions as much as I can.

1) Once you have completed the app development, "It's your application for appzone". So you have the wisdom to chose your own hosting place or even you can chose to host at the appzone server (which is free ;)). The Appzone server provides MySQL, so when you request to provision your application, please don't forget to mention that you need mysql server details if you wish to host your app at Appzone server.

2) Well you can use any DB you want, if you decide to host your application at your own hosting place. But, I am afraid, that Appzone server only provides MySQL db.

3) Well you can request a keyword for your application, which has to be minimum 2 characters in length. Nevertheless, the availability of the keyword is the only restriction as far as I know. 

I hope I answered most of your concerns. Shout out if you need more clarifications. 


Thanks
Azeem
--
Azeem Mumtaz
Take the path less travelled by, and that will make all differences...

gayanhewa

unread,
Dec 26, 2011, 11:11:03 PM12/26/11
to mChoice Developer
Hi Azeem,

Thanks for the reply , I do have another question :)

When the users register for an application they type "Reg xx" to
register with an app. Please correct me if I am wrong, this part is
handled by Etisalat it self.

I will only have to handled the incoming requests with my code ? If my
code is "SI" , if a user sends "SI username". Do I get the request
variables set to "SI username" or Just username ? Because my feeling
was that the routing would happen internally by the Etisalats servers
and I will only get the parameters that is necessary for my program.

Sorry to trouble you :)

Thanks

Regards,

Gayan

Azeem Mumtaz

unread,
Dec 27, 2011, 2:07:19 AM12/27/11
to mchoice-...@googlegroups.com
Hey Gayan

Yes reg command is handles by etisalat. To tell more precisely, it is handled by the service delivery platform (a.k.a SDP). By default this message is not routed to applications. However, upon developer request, sdp can route REG and UNREG messages to applications. 

When a user sends "SI username", the keyword SI is used to route the message to the correct application. But, however, your application will receive "SI username" (the whole sms) what the user has sent to you. So from your application side you may have to split it and remove the keyword. 


No problems :)

All the best

gayanhewa

unread,
Dec 27, 2011, 4:45:53 AM12/27/11
to mChoice Developer
Thanks azeem, helped alot !

Chasles

unread,
Dec 28, 2011, 3:12:57 PM12/28/11
to mchoice-...@googlegroups.com
HTTP ERROR: 405

Problem accessing /ussd/. Reason:

HTTP method GET is not supported by this URL
Why do i get that error when i test the war ussd using
http://127.0.0.1/ussd/ i ve put the war file inside the simulator
folder extracted.When i typed the http://127.0.0.1/ussd/ getting that
error even when i was still in the Ide i was getting it.
Thanks for your help
--
Best Regards
Charles Gunther N.N
P.o.box :3735 Douala Cameroon
Tel:(+237) 96719025 / (237) 78861540

Azeem Mumtaz

unread,
Dec 29, 2011, 12:38:33 AM12/29/11
to mchoice-...@googlegroups.com
Hi Charles!!! This is not an issue. Typically, mChoice APIs support only HTTP POST and they do no support HTTP GET. That's why you are getting this error, when you type your app url in browser.

Say if your application is test.war, you deploy this in your tomcat server. So if the tomcat server is running on 8080 port then the following is your app url.


On the other hand, you can start the mchoice latest simulator on the following URL.


You may find more information and guides in the following URL.


All the best Charles!!!!! 

Chasles

unread,
Dec 29, 2011, 2:57:39 AM12/29/11
to mchoice-...@googlegroups.com
Thanks Azeem but with the simulator i m getting message sent but i m
not having any reply.
Do i have to type a specific message to have a reply?but on the code
it doesn t seem so.
Thanks for your reply.

Azeem Mumtaz

unread,
Dec 29, 2011, 5:44:35 AM12/29/11
to mchoice-...@googlegroups.com
Well under the simulation you may send any messages (in any format) to your application. The purpose of this is to test how your application would handle such scenarios. 

In the simulator ui, what is the app url your are specifying? Are you getting any error logs on simulator?

Chasles

unread,
Dec 29, 2011, 5:54:45 AM12/29/11
to mchoice-...@googlegroups.com
I m running the app under netbeans and having tomcat working on
localhost:8084/ussdapp and that s the appurl that i m usin on the
simulator the thing is that the message is sent successfully but i m
not seeing any received message.But under the netbeans tomcat i could
see the transaction id and conversation id but i can t see the menu.
What s going on wrong?
Best regards

Azeem Mumtaz

unread,
Dec 29, 2011, 11:42:35 AM12/29/11
to mchoice-...@googlegroups.com
Well can you paste the message sending statement in your code on this thread?
Reply all
Reply to author
Forward
0 new messages