Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-11-28 Thread Isaac Kamga
Hello devs,

@Graham, @Myrle, I am having issues running demo-server successfully after
incorporation of the last 5 commits from you both related to starting
services in debug mode and adjustments to service runner. Demo-server seems
to work well when reverted to commit *3d8ffa969bb3* [1] of August 19
related to Louis Niyongabo's patch. Please, try running Fineract CN from
your end and provide feedback on any ensuing errors.

Is any other developer experiencing the broken build when running Fineract
CN ?

Unrelated, I've updated the How to build Fineract CN page [2] with links to
enable new developers easily start the platform.

Cheers,
Isaac Kamga.

[1]
https://github.com/apache/fineract-cn-demo-server/commit/3d8ffa969bb3f835bcacc9a0b4d153690d4f8494

[2]
https://cwiki.apache.org/confluence/display/FINERACT/How+To+Build+Apache+Fineract+CN


On Thu, Oct 18, 2018 at 10:03 PM James Dailey 
wrote:

> Hi Ebenezer,
>
> I was just looking through this thread and your ongoing work since May
> 2018.  Nice work.
>
> In your design, I was wondering if there is a place to make messages
> conditional on various flags in other data tables.  That is, as an example,
> for some customers, we send out "Urgent Reminder, you missed last payment
> and owe new amount" while for other customers we send out "Normal payment
> due" message.  Is this sort of logic in scope?  Could you imagine that your
> code could be extended in this direction?
>
> Second, from a security point of view, have you noticed any
> issues/challenges we should think about and then address in the overall
> architecture?  I guess I am riffing off the use of an admin user as the
> default account required for sending messages.  Is the scope of this user
> at the right level for this task?  Is the permitted-feign-client
> documentation useful and complete on cwiki?  You've been into this code now
> for a while and may have useful observations that could benefit the
> community.
>
> Third, once this service is available, does it automatically get included
> in any deployment and/or is it optionally included and invoked?  This may
> be a larger question for the architects, but I'm trying to understand how
> the various available microservices would be combined (or not) in different
> deployment situations.
>
> Thanks,
> ~james
>
>
> On Thu, Oct 11, 2018 at 11:35 AM Myrle Krantz  wrote:
>
> > Hey Ebenezer,
> >
> > I really hope you keep the name Wada.  I love personal touches like
> > this.  Hermes isn't Egyptian and his Egyptian counterpart Thoth is
> > already taken by another service.  But far more important: Wada means
> > something to you.
> >
> > No problem on the 404s  Your repos are public so it wasn't really an
> > obstacle.
> >
> > Have you been able to make headway with my explanation?  If something
> > is unclear please tell me.  But also keep in mind I have several
> > deadlines coming up so I'm going to be slow in replying through the
> > next week.
> >
> > Best Regards,
> > Myrle
> >
> >
> > On Mon, Oct 8, 2018 at 10:59 PM Ebenezer Graham
> >  wrote:
> > >
> > > Wow! the reason for Anubis is deep. I should have consulted you for
> > > suggestions.
> > >
> > > First of all apologies for the 404s. I clean up my repo ( squashed some
> > > commits and deleted a few test branches) and so I had to force push to
> my
> > > git repo when I wanted to pull onto the VM. All the new code on the
> > > authentication is here
> > >
> >
> https://github.com/ebenezergraham/fineract-cn-notifications/tree/permitted-feign-client-auth
> > .
> > > I will be mindful of squash and force push next time.
> > >
> > > Wada means "To be loved".The notification service is my first ever open
> > > source project and as a wannabe open source advocate this was a really
> > big
> > > deal for me hence *"my love for it".* Also partly because it's an
> > > Indigenous Kalanga name, I am fascinated by southern African languages
> > and
> > > as such, I leave a trail of it on significant things in my life. :)
> > >
> > > But after reading the meaning of Anubis. I guess *hermes* would be a
> > > perfect name. One of the twelve Olympian gods ( mostly known as the
> > > messenger god). :0
> >
>


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-18 Thread James Dailey
Hi Ebenezer,

I was just looking through this thread and your ongoing work since May
2018.  Nice work.

In your design, I was wondering if there is a place to make messages
conditional on various flags in other data tables.  That is, as an example,
for some customers, we send out "Urgent Reminder, you missed last payment
and owe new amount" while for other customers we send out "Normal payment
due" message.  Is this sort of logic in scope?  Could you imagine that your
code could be extended in this direction?

Second, from a security point of view, have you noticed any
issues/challenges we should think about and then address in the overall
architecture?  I guess I am riffing off the use of an admin user as the
default account required for sending messages.  Is the scope of this user
at the right level for this task?  Is the permitted-feign-client
documentation useful and complete on cwiki?  You've been into this code now
for a while and may have useful observations that could benefit the
community.

Third, once this service is available, does it automatically get included
in any deployment and/or is it optionally included and invoked?  This may
be a larger question for the architects, but I'm trying to understand how
the various available microservices would be combined (or not) in different
deployment situations.

Thanks,
~james


On Thu, Oct 11, 2018 at 11:35 AM Myrle Krantz  wrote:

> Hey Ebenezer,
>
> I really hope you keep the name Wada.  I love personal touches like
> this.  Hermes isn't Egyptian and his Egyptian counterpart Thoth is
> already taken by another service.  But far more important: Wada means
> something to you.
>
> No problem on the 404s  Your repos are public so it wasn't really an
> obstacle.
>
> Have you been able to make headway with my explanation?  If something
> is unclear please tell me.  But also keep in mind I have several
> deadlines coming up so I'm going to be slow in replying through the
> next week.
>
> Best Regards,
> Myrle
>
>
> On Mon, Oct 8, 2018 at 10:59 PM Ebenezer Graham
>  wrote:
> >
> > Wow! the reason for Anubis is deep. I should have consulted you for
> > suggestions.
> >
> > First of all apologies for the 404s. I clean up my repo ( squashed some
> > commits and deleted a few test branches) and so I had to force push to my
> > git repo when I wanted to pull onto the VM. All the new code on the
> > authentication is here
> >
> https://github.com/ebenezergraham/fineract-cn-notifications/tree/permitted-feign-client-auth
> .
> > I will be mindful of squash and force push next time.
> >
> > Wada means "To be loved".The notification service is my first ever open
> > source project and as a wannabe open source advocate this was a really
> big
> > deal for me hence *"my love for it".* Also partly because it's an
> > Indigenous Kalanga name, I am fascinated by southern African languages
> and
> > as such, I leave a trail of it on significant things in my life. :)
> >
> > But after reading the meaning of Anubis. I guess *hermes* would be a
> > perfect name. One of the twelve Olympian gods ( mostly known as the
> > messenger god). :0
>


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-11 Thread Myrle Krantz
Hey Ebenezer,

I really hope you keep the name Wada.  I love personal touches like
this.  Hermes isn't Egyptian and his Egyptian counterpart Thoth is
already taken by another service.  But far more important: Wada means
something to you.

No problem on the 404s  Your repos are public so it wasn't really an obstacle.

Have you been able to make headway with my explanation?  If something
is unclear please tell me.  But also keep in mind I have several
deadlines coming up so I'm going to be slow in replying through the
next week.

Best Regards,
Myrle


On Mon, Oct 8, 2018 at 10:59 PM Ebenezer Graham
 wrote:
>
> Wow! the reason for Anubis is deep. I should have consulted you for
> suggestions.
>
> First of all apologies for the 404s. I clean up my repo ( squashed some
> commits and deleted a few test branches) and so I had to force push to my
> git repo when I wanted to pull onto the VM. All the new code on the
> authentication is here
> https://github.com/ebenezergraham/fineract-cn-notifications/tree/permitted-feign-client-auth.
> I will be mindful of squash and force push next time.
>
> Wada means "To be loved".The notification service is my first ever open
> source project and as a wannabe open source advocate this was a really big
> deal for me hence *"my love for it".* Also partly because it's an
> Indigenous Kalanga name, I am fascinated by southern African languages and
> as such, I leave a trail of it on significant things in my life. :)
>
> But after reading the meaning of Anubis. I guess *hermes* would be a
> perfect name. One of the twelve Olympian gods ( mostly known as the
> messenger god). :0


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-08 Thread Ebenezer Graham
Wow! the reason for Anubis is deep. I should have consulted you for
suggestions.

First of all apologies for the 404s. I clean up my repo ( squashed some
commits and deleted a few test branches) and so I had to force push to my
git repo when I wanted to pull onto the VM. All the new code on the
authentication is here
https://github.com/ebenezergraham/fineract-cn-notifications/tree/permitted-feign-client-auth.
I will be mindful of squash and force push next time.

Wada means "To be loved".The notification service is my first ever open
source project and as a wannabe open source advocate this was a really big
deal for me hence *"my love for it".* Also partly because it's an
Indigenous Kalanga name, I am fascinated by southern African languages and
as such, I leave a trail of it on significant things in my life. :)

But after reading the meaning of Anubis. I guess *hermes* would be a
perfect name. One of the twelve Olympian gods ( mostly known as the
messenger god). :0

Currently, wrapping my head around the explanation given. I will try to
understand it and get back to you.

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


*skype*:
ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*




On Mon, 8 Oct 2018 at 23:01, Myrle Krantz  wrote:

> Hey Ebenezer,
> those code
> First the easy question:
> The services do all have code names, which we use to name the tables.
> Most of them are named after Egyptian gods.  Anubis for example plays
> a part in the judgement of the newly dead, and so it seemed
> appropriate that the library responsible for authentication and
> authorization at the service level should also be called anubis.
> There's a Maat's feather in there somewhere too.
>
> I'm glad you picked a code name for notifications too.  I bellieve it
> actually makes communication about the services more precise, and it's
> also fun.
>
> Does "wada" mean anything?
>
> Unfortunately the code links you included don't work (I'm getting
> 404's).  But I took a look through your repositories as they are in
> github anyways.  And it seems likely that you haven't understood how
> this works yet.  Which is understandable since it is complex and
> poorly documented.
>
> The current best I have available is here, but this may be confusing
> because the interaction being prepared is with identity, in addition
> to identity's involvement with the provisioning of permissions:
>
> https://cwiki.apache.org/confluence/display/FINERACT/Fineract+CN+demo-server
>  (In other words identity is involved in two parts of that problem
> instead of just one, and that muddies the waters.)
>
> Let me take another swing at it.  I'm currently assuming the only
> function you need from customer is CustomerManager.findCustomer.  That
> function is in the permittable group customer__v1__customer.  Here's
> what will need to happen and how your code fits in.  I've put stars
> next to the parts which will require you to do something.  I'll
> explain below what you need to do for each star.  Some of it you are
> already doing, so you can take those stars home : o)
>
> demo_server -> provisioner: add customer service to the tenant
> (skipping some parts here)
>   provisioner -> customer: ask what permissions are part of customer
>   provisioner -> identity: create the permission groups which are part
> of customer, including the permittable group customer__v1__customer.
> demo_server -> identity: create the role notificationAdmin, set it to
> include permissions to the parts of customer you want to access. *1
> demo_server -> identity: add user wadaadmin with the role
> notificationAdmin. *2
> demo_server -> provisioner: add wada service to the tenant *3
>   provisioner -> wada: provision signature with same timestamp as
> current identity signature.
>   provisioner -> identity: create application with signature returned by
> wada
>   provisioner -> wada: ask what permissions wada needs.  Wada responds
> that it needs customer__v1__customer. *4
>   provisioner -> identity: create permission request for wada to
> access customer to get customer information.
>   provisioner -> wada: initialize tenant data tables in separate database.
> *5
> demo_server -> identity: allow wada to call customer__v1__customer as
> wadaadmin. *6
>
> *1.  You are already doing this in the demo-server function
> ServiceRunner::defineNotificationRole
> *2.  You are already doing this in the demo-server function
> ServiceRunner::createNotificationsAdmin
> *3.  You are already doing this in the demo-server function
> ServiceRunner::provisionAppsViaSeshat
> *4.  This is done by creating a feign interface for 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-08 Thread Myrle Krantz
Hey Ebenezer,
those code
First the easy question:
The services do all have code names, which we use to name the tables.
Most of them are named after Egyptian gods.  Anubis for example plays
a part in the judgement of the newly dead, and so it seemed
appropriate that the library responsible for authentication and
authorization at the service level should also be called anubis.
There's a Maat's feather in there somewhere too.

I'm glad you picked a code name for notifications too.  I bellieve it
actually makes communication about the services more precise, and it's
also fun.

Does "wada" mean anything?

Unfortunately the code links you included don't work (I'm getting
404's).  But I took a look through your repositories as they are in
github anyways.  And it seems likely that you haven't understood how
this works yet.  Which is understandable since it is complex and
poorly documented.

The current best I have available is here, but this may be confusing
because the interaction being prepared is with identity, in addition
to identity's involvement with the provisioning of permissions:
https://cwiki.apache.org/confluence/display/FINERACT/Fineract+CN+demo-server
 (In other words identity is involved in two parts of that problem
instead of just one, and that muddies the waters.)

Let me take another swing at it.  I'm currently assuming the only
function you need from customer is CustomerManager.findCustomer.  That
function is in the permittable group customer__v1__customer.  Here's
what will need to happen and how your code fits in.  I've put stars
next to the parts which will require you to do something.  I'll
explain below what you need to do for each star.  Some of it you are
already doing, so you can take those stars home : o)

demo_server -> provisioner: add customer service to the tenant
(skipping some parts here)
  provisioner -> customer: ask what permissions are part of customer
  provisioner -> identity: create the permission groups which are part
of customer, including the permittable group customer__v1__customer.
demo_server -> identity: create the role notificationAdmin, set it to
include permissions to the parts of customer you want to access. *1
demo_server -> identity: add user wadaadmin with the role notificationAdmin. *2
demo_server -> provisioner: add wada service to the tenant *3
  provisioner -> wada: provision signature with same timestamp as
current identity signature.
  provisioner -> identity: create application with signature returned by wada
  provisioner -> wada: ask what permissions wada needs.  Wada responds
that it needs customer__v1__customer. *4
  provisioner -> identity: create permission request for wada to
access customer to get customer information.
  provisioner -> wada: initialize tenant data tables in separate database. *5
demo_server -> identity: allow wada to call customer__v1__customer as
wadaadmin. *6

*1.  You are already doing this in the demo-server function
ServiceRunner::defineNotificationRole
*2.  You are already doing this in the demo-server function
ServiceRunner::createNotificationsAdmin
*3.  You are already doing this in the demo-server function
ServiceRunner::provisionAppsViaSeshat
*4.  This is done by creating a feign interface for customer within
the notification service code.  You can find an example in rhythm
under ApplicationPermissionRequestCreator, intended to make it
possible for rhythm to access identity.  In your case though you want
wada to access customer, so you'll create a class that looks something
like this:

@EndpointSet(identifier = "notificiations__v1__customer__v1")
@FeignClient(name="customer-v1", path="/customer/v1",
configuration=PermittedFeignClientsConfiguration.class)
public interface ApplicationPermissionRequestCreator {
  @RequestMapping(...) /* copy params from CustomerManager */
  @ThrowsException(...)/* copy params from CustomerManager */
  @Permittable(groupId =
org.apache.fineract.cn.customer.PermittableGroupIds.CUSTOMER)
  Customer findCustomer(...); /* copy params from CustomerManager */
}

*5.  You are already doing this in notifications function
MigrationAggregate::provisionAppsViaSeshatForTenant with a call to
provisionApp for notificationManager.
*6.  After all the other pieces are in place, login as wadaadmin and
call.  This won't work until after notificationManager is provisioned.
identityManager.api().setApplicationPermissionEnabledForUser(
notificationManager.name(),
org.apache.fineract.cn.customer.PermittableGroupIds.CUSTOMER,
notificationsAdminUser.getIdentifier(),
true);

If you still can't figure it out after this, I'd like to puzzle
together with you.  Write me an e-mail and we'll set up a pair
programming session, and then bring back anything we learn to the
list.

Best Regards,
Myrle Krantz

On Mon, Oct 8, 2018 at 12:21 AM Ebenezer Graham
 wrote:
>
> HI Myrle,
>
> I will try this approach to connect to the VM. Thanks.
>
> Yes you are right, this happens during provisioning of 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-07 Thread Ebenezer Graham
HI Myrle,

I will try this approach to connect to the VM. Thanks.

Yes you are right, this happens during provisioning of the services

This is the line throwing the exception
https://github.com/ebenezergraham/fineract-cn-demo-server/blob/application-permission-for-notification/
src/main/java/org/apache/fineract/cn/dev/ServiceRunner.java#L451
This is where I attempt to setApplicationPermissionEnabledForUser.

I attempted to create the application request here:
https://github.com/ebenezergraham/fineract-cn-demo-server/blob/application-permission-for-notification/src/main/java/org/apache/fineract/cn/dev/ServiceRunner.java#L484-#L514


** at provisioning, service A tells provisioner about its
permissiongroups.  provisioner then tells identity.*

And so I understand this mechanism correctly, for the notification service
to be able to read data from the customer service a permission group has to
be defined in customer.

Please correct me if I am wrong, this is done by declaring a groupId in the
PermittableGroupIds interface in customer(eg:
notification__v1__customer__v1?) and under the hood, provisioner will set
that in identity.


** The demo-server than creates a user (Fred?) which which has accessto
that permission group.*
In other not create new users ( as this caused problems for other
developers) I believe I can use scheduler just like rhythm?

I have added permission to read from a customer during the creation of the
scheduler
https://github.com/ebenezergraham/fineract-cn-demo-server/blob/application-permission-for-notification/src/main/java/org/apache/fineract/cn/dev/ServiceRunner.java#L588-#L590



** Then when service B is being provisioned, it tells identity aboutthe
permission groups that it will need in service A.*
So I believe the start fails because notification is setting a permission
which doesn't exist (customer never informed identity through provisioner).


** The demo-server, in the name of Fred, gives service B permission tocall
service A on that permission group as Fred.*

Also, I saw that other services have code names from the documentation. And
so I gave the notification service the name wada. I used it to prefix the
database tables. Is it alright to give it a code name? :)

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


*skype*:
ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*




On Mon, 8 Oct 2018 at 01:08, Myrle Krantz  wrote:

> Hey Ebenezer,
>
> I've never debugged a process on a remote server, but it should be
> possible.  First you'll need to find out what port debugging is
> running on and open that port.
>
> Aside from that, I've included the text you linked to in pastebin
> below (for snippets this short it's easier on me if you just include
> them in the mail.)
>
> It seems like your problem is actually in the start up of demo-server,
> is that correct?  But what line number?  What call is producing this
> exception?
>
> I can explain a bit about the permission requesting mechanism in
> identity.  If service B needs to call service A, then the following
> happens:
> * at provisioning, service A tells provisioner about its permission
> groups.  provisioner then tells identity.
> * The demo-server than creates a user (Fred?) which which has access
> to that permission group.
> * Then when service B is being provisioned, it tells identity about
> the permission groups that it will need in service A.
> * The demo-server, in the name of Fred, gives service B permission to
> call service A on that permission group as Fred.
>
> This line looks like you're expecting a permission group in customer
> called wada.  There is no such permission group.  Are you trying to
> get information from customer?  Is that why you need this permission?
> You'll need to call identity.setApplicationPermissionEnabledForUser.
>
> Can you share the code throwing this exception?  It would make things
> much easier.
>
> Best Regards,
> Myrle
>
>
> 1) startDevServer(org.apache.fineract.cn.dev.ServiceRunner)
> org.apache.fineract.cn.api.util.NotFoundException:
> {"timestamp":1538925629122,"status":404,"error":"Not
>
> Found","exception":"org.apache.fineract.cn.lang.ServiceException","message":"Application
> permission 'notification-v1.customer__v1__wada' doesn't
>
> exist.","path":"/identity/v1/applications/notification-v1/permissions/customer__v1__wada/users/imhotep/enabled"}
> at
> org.apache.fineract.cn.api.util.AnnotatedErrorDecoder.getAlternative(AnnotatedErrorDecoder.java:76)
> at
> org.apache.fineract.cn.api.util.AnnotatedErrorDecoder.decode(AnnotatedErrorDecoder.java:65)
> at
> 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-07 Thread Myrle Krantz
Hey Ebenezer,

I've never debugged a process on a remote server, but it should be
possible.  First you'll need to find out what port debugging is
running on and open that port.

Aside from that, I've included the text you linked to in pastebin
below (for snippets this short it's easier on me if you just include
them in the mail.)

It seems like your problem is actually in the start up of demo-server,
is that correct?  But what line number?  What call is producing this
exception?

I can explain a bit about the permission requesting mechanism in
identity.  If service B needs to call service A, then the following
happens:
* at provisioning, service A tells provisioner about its permission
groups.  provisioner then tells identity.
* The demo-server than creates a user (Fred?) which which has access
to that permission group.
* Then when service B is being provisioned, it tells identity about
the permission groups that it will need in service A.
* The demo-server, in the name of Fred, gives service B permission to
call service A on that permission group as Fred.

This line looks like you're expecting a permission group in customer
called wada.  There is no such permission group.  Are you trying to
get information from customer?  Is that why you need this permission?
You'll need to call identity.setApplicationPermissionEnabledForUser.

Can you share the code throwing this exception?  It would make things
much easier.

Best Regards,
Myrle


1) startDevServer(org.apache.fineract.cn.dev.ServiceRunner)
org.apache.fineract.cn.api.util.NotFoundException:
{"timestamp":1538925629122,"status":404,"error":"Not
Found","exception":"org.apache.fineract.cn.lang.ServiceException","message":"Application
permission 'notification-v1.customer__v1__wada' doesn't
exist.","path":"/identity/v1/applications/notification-v1/permissions/customer__v1__wada/users/imhotep/enabled"}
at 
org.apache.fineract.cn.api.util.AnnotatedErrorDecoder.getAlternative(AnnotatedErrorDecoder.java:76)
at 
org.apache.fineract.cn.api.util.AnnotatedErrorDecoder.decode(AnnotatedErrorDecoder.java:65)
at 
feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:138)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy207.setApplicationPermissionEnabledForUser(Unknown
Source)
at 
org.apache.fineract.cn.dev.ServiceRunner.provisionAppsViaSeshatForTenant(ServiceRunner.java:451)
at 
org.apache.fineract.cn.dev.ServiceRunner.provisionAppsViaSeshat(ServiceRunner.java:359)
at 
org.apache.fineract.cn.dev.ServiceRunner.startDevServer(ServiceRunner.java:257)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at 
org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at 
org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at 
org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at 
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
at 
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at 
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at 
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-07 Thread Ebenezer Graham
Thanks for the insights into the email connection timeout error.

This is the correct log for the Service Exception:
https://pastebin.com/WsQLPmwf  . My best
guess is that the identity service did not create the application request
when I called it. I wanted to find out how rhythm handles that aspect but
realized that rhythm checks and requests for permission before sending a
beat. But all of this is after initialization of the demo server. (So I was
actually wondering how it registers the permission) I created a request
helper method in the demo-server to help me request permission for the
customer service however, I believe this is not working as it should.



Also, I run the demo server on a cloud VM. I would love to connect my
IntelliJ IDE to the build. How should I approach this?


*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


*skype*:
ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*




On Sun, 7 Oct 2018 at 21:40, Myrle Krantz  wrote:

> Hey Ebenezer,
>
> Here are the 5 lines you put into pastebin:
>
> 12:28:48.386 [DefaultMessageListenerContainer-1] DEBUG
> notification-logger - customerActivatedEvent has been invoked
> 12:28:48.566 [DefaultMessageListenerContainer-1] DEBUG
> notification-logger - sendSMS invoked
> 12:30:55.867 [DefaultMessageListenerContainer-1] DEBUG
> notification-logger - Caused
> by:com.sun.mail.util.MailConnectException: Couldn't connect to host,
> port: smtp.gmail.com, 587; timeout -1;
>   nested exception is:
> java.net.ConnectException: Connection timed out (Connection timed out)
>
> Based on those it looks like sms was successful, and then mail sending
> failed.  But with so little context I can only make wild guesses at
> the reason.  However I did recently check something in which could
> help you debug the problem yourself.  Pull the latest from demo-server
> and service-starter.  Then start demo-server with the parameter
> runInDebug set to true (-Ddemoserver.runInDebug=true).  Once
> demoServer is started, you can use your development environment to
> connect to the running service.  I'm not sure whether you are using
> IntelliJ or Eclipse, the process will be different depending which one
> you're using.
>
> Once your dev environment is connected to the process you can set
> break points and try to debug what's going on.  In particular, you can
> examine that exception for more information, and figure out where in
> the call stack it is coming from.
>
> I doubt this has anything to do with the Fineract CN security though.
> That shouldn't effect calls outside of Fineract CN.
>
> Best Regards,
> Myrle
>
> On Mon, Aug 27, 2018 at 6:03 PM Ebenezer Graham
>  wrote:
> >
> > Hi all,
> >
> > I am having a connection issue with the java mail.  https://pastebin.com
> > /f8UAkvsa
> >
> > I can send emails when I run it from the component test but the
> connection
> > times out when the service is started by the demo-server. The SMS service
> > works fine and only the email service times out.
> >
> > Does anyone have ideas on how to solve this? I have tried a lot of
> > solutions on the web but I believe that this timeout is caused by
> security
> > constraints in Fineract CN
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> >
> > *skype*:
> > ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 23 August 2018 at 18:05, Ebenezer Graham 
> > wrote:
> >
> > > Hi all,
> > >
> > > @Markus: The ActiveMQ configuration worked :). I am now getting one
> > > invocation. Thanks for the support,
> > >
> > > However, the entity creation is still not working but I think Myrle's
> > > feedback on my PR might do the trick.
> > >
> > > @Myrle: I have updated the private cwiki page with the credentials,
> > > thanks. Also, I have incorporated most of the feedback shared on the
> PRs
> > > and added a few comments.
> > > For the Domain objects, I have created tests for each of them. I will
> add
> > > more rigorous tests to it after making significant progress with the
> > > web-app interface
> > > and the connection timeout problem when the system is up. More about
> the
> > > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-07 Thread Myrle Krantz
Hey Ebenezer,

Here are the 5 lines you put into pastebin:

12:28:48.386 [DefaultMessageListenerContainer-1] DEBUG
notification-logger - customerActivatedEvent has been invoked
12:28:48.566 [DefaultMessageListenerContainer-1] DEBUG
notification-logger - sendSMS invoked
12:30:55.867 [DefaultMessageListenerContainer-1] DEBUG
notification-logger - Caused
by:com.sun.mail.util.MailConnectException: Couldn't connect to host,
port: smtp.gmail.com, 587; timeout -1;
  nested exception is:
java.net.ConnectException: Connection timed out (Connection timed out)

Based on those it looks like sms was successful, and then mail sending
failed.  But with so little context I can only make wild guesses at
the reason.  However I did recently check something in which could
help you debug the problem yourself.  Pull the latest from demo-server
and service-starter.  Then start demo-server with the parameter
runInDebug set to true (-Ddemoserver.runInDebug=true).  Once
demoServer is started, you can use your development environment to
connect to the running service.  I'm not sure whether you are using
IntelliJ or Eclipse, the process will be different depending which one
you're using.

Once your dev environment is connected to the process you can set
break points and try to debug what's going on.  In particular, you can
examine that exception for more information, and figure out where in
the call stack it is coming from.

I doubt this has anything to do with the Fineract CN security though.
That shouldn't effect calls outside of Fineract CN.

Best Regards,
Myrle

On Mon, Aug 27, 2018 at 6:03 PM Ebenezer Graham
 wrote:
>
> Hi all,
>
> I am having a connection issue with the java mail.  https://pastebin.com
> /f8UAkvsa
>
> I can send emails when I run it from the component test but the connection
> times out when the service is started by the demo-server. The SMS service
> works fine and only the email service times out.
>
> Does anyone have ideas on how to solve this? I have tried a lot of
> solutions on the web but I believe that this timeout is caused by security
> constraints in Fineract CN
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
>
> *skype*:
> ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 23 August 2018 at 18:05, Ebenezer Graham 
> wrote:
>
> > Hi all,
> >
> > @Markus: The ActiveMQ configuration worked :). I am now getting one
> > invocation. Thanks for the support,
> >
> > However, the entity creation is still not working but I think Myrle's
> > feedback on my PR might do the trick.
> >
> > @Myrle: I have updated the private cwiki page with the credentials,
> > thanks. Also, I have incorporated most of the feedback shared on the PRs
> > and added a few comments.
> > For the Domain objects, I have created tests for each of them. I will add
> > more rigorous tests to it after making significant progress with the
> > web-app interface
> > and the connection timeout problem when the system is up. More about the
> > issue below
> > The issue has to do with service timeouts. https://pastebin.com/f8UAkvsa
> > *N*
> > * B: *the email and SMS services are correctly configured and do send out
> > emails and SMS
> > in the component test. However, when I make an actual build the mail
> > connection times out even though it
> > has been invoked
> >
> > @Awasum like you suggested, I have changed the JavaMail version to 1.4.1
> > RELEASE and it works fine. Thanks
> > I have created values in the ext.versions for the Twilio API and
> > JavaMail in the shared.gradle
> >
> > My best guess is that there is something interrupting or inhibiting the
> > connection when the entire system is
> > up and running.
> >
> > Looking forward to your feedback.
> >
> > On 22 August 2018 at 16:03, Markus Geiss  wrote:
> >
> >> Hey Ebenezer,
> >>
> >> hope this finds you well. (;
> >>
> >> looking at the two stack traces you've provided here is my take on it.
> >>
> >> The error while storing configuration is caused by a field in the database
> >> 'sender_number' being declared as not null, but no data is provided. In
> >> the
> >> create method of SMSConfiguration you are not handling the sender number
> >> at
> >> all. I would recommend to either use a builder pattern or just use plain
> >> getter/setter to create the instance.
> >>
> >> With regards to receiving multiple (3) events, this is caused by the way
> >> acitvemq is configured in your service. The default
> >> for activemq.concurrency is 3-10, if you set this to 1-1 it will only
> >> listen with 1 concurrent thread.
> >>
> >> Hope this helps.
> >>
> >> Cheers
> 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-10-07 Thread Ebenezer Graham
Hi Myrle,

I am refactoring the authentication process in the notification service to
use the permitted-feign-client just like you suggested on this branch

.

Whenever I try setting application

permission for the scheduler user, I get a service exception. Details here
.

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


*skype*:
ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*




On Wed, 22 Aug 2018 at 17:15, Myrle Krantz  wrote:

> Hey Ebenezer,
>
> There's a better way to get permissions for accessing customer.  I
> recommend you use the permitted-feign-client.  You can see an example of
> this in Rhythm.
>
> You would be accessing customer like rhythm acesses identity here:
>
> https://github.com/apache/fineract-cn-rhythm/blob/develop/service/src/main/java/org/apache/fineract/cn/rhythm/service/internal/identity/ApplicationPermissionRequestCreator.java
>
> You would still need to define a user in whose name to access customer,
> but you would no longer need that user's password.  Instead you'd give your
> application permission to act as that user in the provisioning, like it is
> done here:
>
> https://github.com/apache/fineract-cn-demo-server/blob/develop/src/main/java/org/apache/fineract/cn/dev/ServiceRunner.java#L432
>
> This limits the scope of the rights of the application to just what it
> needs reducing the damage possible via a security break.  And it means you
> don't have to save a powerful user's password in plain text in code or in a
> configuration file.
>
> If you need a pair-programming round to help you understand this, ping me
> offlist.  It's a confusing topic.
>
> Best Regards,
> Myrle
>
>
> On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham 
> wrote:
>
>> Thanks myrle,
>>
>> I have already created a demo email account called
>> fineractcnnotificationd...@gmail.com and I created it for the sole
>> purpose of testing emails for this service and for other contributors
>> to use. Please advise me on this approach.
>>
>> Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
>> are no longer valid. I created app passwords and so I have already deleted
>> those app passwords for my live account and are no longer valid.
>>
>> *Error:*
>> In an attempt to store configurations from the repository I get this
>> error: https://pastebin.com/WqvRwXvB
>>
>> Please check: shouldCreateSMSConfigurationEntity()
>>
>> https://github.com/ebenezergraham/fineract-cn-notifications/blob/develop/component-test/src/main/java/org/apache/fineract/cn/notification/TestSMSService.java
>>
>> I am able to retrieve stored configurations but I am unable to create a
>> configuration and store. Same issue for email repository
>>
>> Second Issue: https://pastebin.com/LKz7HcGy
>> I have managed to authenticate with identity and getting customer object,
>> however, when I trigger an invent from the fims web app, I get 3
>> invocations from the ActiveMQ. How can I resolve this issue? Are my
>> assumptions correct to begin with?
>>
>>
>> *At your service,*
>>
>> *Ebenezer Graham*
>>
>> *BSc (Hons) Computing*
>>
>>
>> [image: EmailSignature.png]
>>
>> African Leadership University,
>>
>> Power Mill Road, Pamplemousses,
>>
>> Mauritius.
>>
>>
>> ​
>> *skype*:
>> ​ebenezer.graham
>> GitHub  | LinkedIn
>>  | Twitter
>>  | Facebook
>> 
>> www.pactmart.com | Freelancing made easy.
>>
>>
>> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>>
>>
>>
>> On 22 August 2018 at 15:10, Ebenezer Graham 
>> wrote:
>>
>>> Thanks myrle,
>>>
>>> I have already created a demo email account called
>>> fineractcnnotificationd...@gmail.com and I created it for the sole
>>> purpose of testing emails for this service and for other contributors
>>> to use. Please advise me on this approach.
>>>
>>> Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
>>> are not the real passwords. I created app passwords and so I have already
>>> deleted those app passwords for my live account and are no longer valid.
>>>
>>> *Error:*
>>> In an attempt to store configurations from the repository I get this
>>> error:
>>>
>>> Please check: shouldCreateSMSConfigurationEntity()
>>>
>>> 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-09-13 Thread Isaac Kamga
Hi Graham,

Thanks for your feedback.

Please reach out to me so we have a call on how to fix this.

Cheers,
Isaac Kamga

On Fri, Sep 7, 2018 at 7:07 PM Ebenezer Graham 
wrote:

> Hello Isaac,
>
> Yes, you are right. Looking at this approach, there is a lot of room for
> improvement. This was when I was wrapping my head around permissions and
> this is one of the section which will be refactored in subsequent PRs.
>
> Myrle suggested the approach used by rhythm and I will be using that
> approach when refactoring the code. Its much secured, simpler and
> efficient.
>
> Also, I have tested my build and everything looks good here.
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> ​
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 7 September 2018 at 19:46, Isaac Kamga  wrote:
>
> > Hello Graham,
> >
> > I encounter this error  when testing your
> > latest PR to the Notifications service.
> >
> > I think it comes from you creating a new Notifications admin user with
> > separate privileges. Don't you think it'll better to grant the already
> > existing admin ( operator ) privileges to access the customer service and
> > use it rather than creating a new one ?
> >
> > I hope this helps.
> >
> > Cheers,
> > Isaac Kamga.
> >
> > On Sun, Sep 2, 2018 at 10:08 AM Ebenezer Graham <
> egraha...@alustudent.com>
> > wrote:
> >
> > > Hi Yannick,
> > >
> > > I have tried the approach suggested above, however, I am getting the
> same
> > > results.
> > >
> > > Also, I have resolved the conflicts in the apache/fineract-cn-
> > notification
> > > PR
> > >
> > > *At your service,*
> > >
> > > *Ebenezer Graham*
> > >
> > > *BSc (Hons) Computing*
> > >
> > >
> > > [image: EmailSignature.png]
> > >
> > > African Leadership University,
> > >
> > > Power Mill Road, Pamplemousses,
> > >
> > > Mauritius.
> > >
> > >
> > > ​
> > > *skype*:
> > > ​ebenezer.graham
> > > GitHub  | LinkedIn
> > >  | Twitter
> > >  | Facebook
> > > 
> > > www.pactmart.com | Freelancing made easy.
> > >
> > >
> > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > >
> > >
> > >
> > > On 29 August 2018 at 22:19, Awasum Yannick  wrote:
> > >
> > > > Hey Graham,
> > > >
> > > > Are you using Gmail? If so then you might want to give your app
> > (unsecure
> > > > in the eyes of Gmail) permission to send out mails from the email
> > account
> > > > you are using.
> > > >
> > > > Check these:
> https://support.google.com/accounts/answer/6010255?hl=en
> > > > https://myaccount.google.com/lesssecureapps
> > > >
> > > > So allowing less secure apps to send mail by clicking the toggle
> button
> > > > might solve your problem.
> > > > Try that lets see. If there are still problems, please keep them
> > coming.
> > > >
> > > > Thanks.
> > > > Awasum
> > > >
> > > > On Mon, Aug 27, 2018 at 5:03 PM Ebenezer Graham <
> > > egraha...@alustudent.com>
> > > > wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > I am having a connection issue with the java mail.
> > > https://pastebin.com
> > > > > /f8UAkvsa
> > > > >
> > > > > I can send emails when I run it from the component test but the
> > > > connection
> > > > > times out when the service is started by the demo-server. The SMS
> > > service
> > > > > works fine and only the email service times out.
> > > > >
> > > > > Does anyone have ideas on how to solve this? I have tried a lot of
> > > > > solutions on the web but I believe that this timeout is caused by
> > > > security
> > > > > constraints in Fineract CN
> > > > >
> > > > > *At your service,*
> > > > >
> > > > > *Ebenezer Graham*
> > > > >
> > > > > *BSc (Hons) Computing*
> > > > >
> > > > >
> > > > > [image: EmailSignature.png]
> > > > >
> > > > > African Leadership University,
> > > > >
> > > > > Power Mill Road, Pamplemousses,
> > > > >
> > > > > Mauritius.
> > > > >
> > > > >
> > > > > ​
> > > > > *skype*:
> > > > > ​ebenezer.graham
> > > > > GitHub  | LinkedIn
> > > > >  | Twitter
> > > > >  | Facebook
> > > > > 
> > > > > www.pactmart.com | Freelancing made easy.
> > > > >
> > > > >
> > > > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > > > >
> > > > >
> > > > >
> > > > > On 23 August 2018 at 18:05, Ebenezer Graham <
> > egraha...@alustudent.com>
> > > > > wrote:
> > > > >
> > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-09-07 Thread Ebenezer Graham
Hello Isaac,

Yes, you are right. Looking at this approach, there is a lot of room for
improvement. This was when I was wrapping my head around permissions and
this is one of the section which will be refactored in subsequent PRs.

Myrle suggested the approach used by rhythm and I will be using that
approach when refactoring the code. Its much secured, simpler and efficient.

Also, I have tested my build and everything looks good here.

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 7 September 2018 at 19:46, Isaac Kamga  wrote:

> Hello Graham,
>
> I encounter this error  when testing your
> latest PR to the Notifications service.
>
> I think it comes from you creating a new Notifications admin user with
> separate privileges. Don't you think it'll better to grant the already
> existing admin ( operator ) privileges to access the customer service and
> use it rather than creating a new one ?
>
> I hope this helps.
>
> Cheers,
> Isaac Kamga.
>
> On Sun, Sep 2, 2018 at 10:08 AM Ebenezer Graham 
> wrote:
>
> > Hi Yannick,
> >
> > I have tried the approach suggested above, however, I am getting the same
> > results.
> >
> > Also, I have resolved the conflicts in the apache/fineract-cn-
> notification
> > PR
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> > ​
> > *skype*:
> > ​ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 29 August 2018 at 22:19, Awasum Yannick  wrote:
> >
> > > Hey Graham,
> > >
> > > Are you using Gmail? If so then you might want to give your app
> (unsecure
> > > in the eyes of Gmail) permission to send out mails from the email
> account
> > > you are using.
> > >
> > > Check these: https://support.google.com/accounts/answer/6010255?hl=en
> > > https://myaccount.google.com/lesssecureapps
> > >
> > > So allowing less secure apps to send mail by clicking the toggle button
> > > might solve your problem.
> > > Try that lets see. If there are still problems, please keep them
> coming.
> > >
> > > Thanks.
> > > Awasum
> > >
> > > On Mon, Aug 27, 2018 at 5:03 PM Ebenezer Graham <
> > egraha...@alustudent.com>
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > I am having a connection issue with the java mail.
> > https://pastebin.com
> > > > /f8UAkvsa
> > > >
> > > > I can send emails when I run it from the component test but the
> > > connection
> > > > times out when the service is started by the demo-server. The SMS
> > service
> > > > works fine and only the email service times out.
> > > >
> > > > Does anyone have ideas on how to solve this? I have tried a lot of
> > > > solutions on the web but I believe that this timeout is caused by
> > > security
> > > > constraints in Fineract CN
> > > >
> > > > *At your service,*
> > > >
> > > > *Ebenezer Graham*
> > > >
> > > > *BSc (Hons) Computing*
> > > >
> > > >
> > > > [image: EmailSignature.png]
> > > >
> > > > African Leadership University,
> > > >
> > > > Power Mill Road, Pamplemousses,
> > > >
> > > > Mauritius.
> > > >
> > > >
> > > > ​
> > > > *skype*:
> > > > ​ebenezer.graham
> > > > GitHub  | LinkedIn
> > > >  | Twitter
> > > >  | Facebook
> > > > 
> > > > www.pactmart.com | Freelancing made easy.
> > > >
> > > >
> > > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > > >
> > > >
> > > >
> > > > On 23 August 2018 at 18:05, Ebenezer Graham <
> egraha...@alustudent.com>
> > > > wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > @Markus: The ActiveMQ configuration worked :). I am now getting one
> > > > > invocation. Thanks for the support,
> > > > >
> > > > > However, the entity creation is still not working but I think
> Myrle's
> > > > > feedback on my PR might do the trick.
> > > > >
> > > > > @Myrle: I have updated the private cwiki page with the credentials,
> > > > > thanks. Also, I have incorporated most of the feedback shared on
> the
> > > PRs
> > > > > and added a few comments.
> > > > > For the Domain objects, I have 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-09-02 Thread Ebenezer Graham
Hi Yannick,

I have tried the approach suggested above, however, I am getting the same
results.

Also, I have resolved the conflicts in the apache/fineract-cn-notification
PR

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 29 August 2018 at 22:19, Awasum Yannick  wrote:

> Hey Graham,
>
> Are you using Gmail? If so then you might want to give your app (unsecure
> in the eyes of Gmail) permission to send out mails from the email account
> you are using.
>
> Check these: https://support.google.com/accounts/answer/6010255?hl=en
> https://myaccount.google.com/lesssecureapps
>
> So allowing less secure apps to send mail by clicking the toggle button
> might solve your problem.
> Try that lets see. If there are still problems, please keep them coming.
>
> Thanks.
> Awasum
>
> On Mon, Aug 27, 2018 at 5:03 PM Ebenezer Graham 
> wrote:
>
> > Hi all,
> >
> > I am having a connection issue with the java mail.  https://pastebin.com
> > /f8UAkvsa
> >
> > I can send emails when I run it from the component test but the
> connection
> > times out when the service is started by the demo-server. The SMS service
> > works fine and only the email service times out.
> >
> > Does anyone have ideas on how to solve this? I have tried a lot of
> > solutions on the web but I believe that this timeout is caused by
> security
> > constraints in Fineract CN
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> > ​
> > *skype*:
> > ​ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 23 August 2018 at 18:05, Ebenezer Graham 
> > wrote:
> >
> > > Hi all,
> > >
> > > @Markus: The ActiveMQ configuration worked :). I am now getting one
> > > invocation. Thanks for the support,
> > >
> > > However, the entity creation is still not working but I think Myrle's
> > > feedback on my PR might do the trick.
> > >
> > > @Myrle: I have updated the private cwiki page with the credentials,
> > > thanks. Also, I have incorporated most of the feedback shared on the
> PRs
> > > and added a few comments.
> > > For the Domain objects, I have created tests for each of them. I will
> add
> > > more rigorous tests to it after making significant progress with the
> > > web-app interface
> > > and the connection timeout problem when the system is up. More about
> the
> > > issue below
> > > The issue has to do with service timeouts.
> https://pastebin.com/f8UAkvsa
> > > *N*
> > > * B: *the email and SMS services are correctly configured and do send
> out
> > > emails and SMS
> > > in the component test. However, when I make an actual build the mail
> > > connection times out even though it
> > > has been invoked
> > >
> > > @Awasum like you suggested, I have changed the JavaMail version to
> 1.4.1
> > > RELEASE and it works fine. Thanks
> > > I have created values in the ext.versions for the Twilio API and
> > > JavaMail in the shared.gradle
> > >
> > > My best guess is that there is something interrupting or inhibiting the
> > > connection when the entire system is
> > > up and running.
> > >
> > > Looking forward to your feedback.
> > >
> > > On 22 August 2018 at 16:03, Markus Geiss 
> wrote:
> > >
> > >> Hey Ebenezer,
> > >>
> > >> hope this finds you well. (;
> > >>
> > >> looking at the two stack traces you've provided here is my take on it.
> > >>
> > >> The error while storing configuration is caused by a field in the
> > database
> > >> 'sender_number' being declared as not null, but no data is provided.
> In
> > >> the
> > >> create method of SMSConfiguration you are not handling the sender
> number
> > >> at
> > >> all. I would recommend to either use a builder pattern or just use
> plain
> > >> getter/setter to create the instance.
> > >>
> > >> With regards to receiving multiple (3) events, this is caused by the
> way
> > >> acitvemq is configured in your service. The default
> > >> for activemq.concurrency is 3-10, if you set this to 1-1 it will only
> > >> listen with 1 concurrent thread.
> > >>
> > >> Hope this helps.
> > >>
> > >> Cheers
> > >>
> > >> Markus
> > >>
> > >>
> > >>
> > >> On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham <

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-29 Thread Awasum Yannick
Hey Graham,

Are you using Gmail? If so then you might want to give your app (unsecure
in the eyes of Gmail) permission to send out mails from the email account
you are using.

Check these: https://support.google.com/accounts/answer/6010255?hl=en
https://myaccount.google.com/lesssecureapps

So allowing less secure apps to send mail by clicking the toggle button
might solve your problem.
Try that lets see. If there are still problems, please keep them coming.

Thanks.
Awasum

On Mon, Aug 27, 2018 at 5:03 PM Ebenezer Graham 
wrote:

> Hi all,
>
> I am having a connection issue with the java mail.  https://pastebin.com
> /f8UAkvsa
>
> I can send emails when I run it from the component test but the connection
> times out when the service is started by the demo-server. The SMS service
> works fine and only the email service times out.
>
> Does anyone have ideas on how to solve this? I have tried a lot of
> solutions on the web but I believe that this timeout is caused by security
> constraints in Fineract CN
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> ​
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 23 August 2018 at 18:05, Ebenezer Graham 
> wrote:
>
> > Hi all,
> >
> > @Markus: The ActiveMQ configuration worked :). I am now getting one
> > invocation. Thanks for the support,
> >
> > However, the entity creation is still not working but I think Myrle's
> > feedback on my PR might do the trick.
> >
> > @Myrle: I have updated the private cwiki page with the credentials,
> > thanks. Also, I have incorporated most of the feedback shared on the PRs
> > and added a few comments.
> > For the Domain objects, I have created tests for each of them. I will add
> > more rigorous tests to it after making significant progress with the
> > web-app interface
> > and the connection timeout problem when the system is up. More about the
> > issue below
> > The issue has to do with service timeouts. https://pastebin.com/f8UAkvsa
> > *N*
> > * B: *the email and SMS services are correctly configured and do send out
> > emails and SMS
> > in the component test. However, when I make an actual build the mail
> > connection times out even though it
> > has been invoked
> >
> > @Awasum like you suggested, I have changed the JavaMail version to 1.4.1
> > RELEASE and it works fine. Thanks
> > I have created values in the ext.versions for the Twilio API and
> > JavaMail in the shared.gradle
> >
> > My best guess is that there is something interrupting or inhibiting the
> > connection when the entire system is
> > up and running.
> >
> > Looking forward to your feedback.
> >
> > On 22 August 2018 at 16:03, Markus Geiss  wrote:
> >
> >> Hey Ebenezer,
> >>
> >> hope this finds you well. (;
> >>
> >> looking at the two stack traces you've provided here is my take on it.
> >>
> >> The error while storing configuration is caused by a field in the
> database
> >> 'sender_number' being declared as not null, but no data is provided. In
> >> the
> >> create method of SMSConfiguration you are not handling the sender number
> >> at
> >> all. I would recommend to either use a builder pattern or just use plain
> >> getter/setter to create the instance.
> >>
> >> With regards to receiving multiple (3) events, this is caused by the way
> >> acitvemq is configured in your service. The default
> >> for activemq.concurrency is 3-10, if you set this to 1-1 it will only
> >> listen with 1 concurrent thread.
> >>
> >> Hope this helps.
> >>
> >> Cheers
> >>
> >> Markus
> >>
> >>
> >>
> >> On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham <
> egraha...@alustudent.com
> >> >
> >> wrote:
> >>
> >> > Thanks myrle,
> >> >
> >> > I have already created a demo email account called
> >> > fineractcnnotificationd...@gmail.com and I created it for the sole
> >> purpose
> >> > of testing emails for this service and for other contributors to use.
> >> > Please advise me on this approach.
> >> >
> >> > Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
> >> are
> >> > no longer valid. I created app passwords and so I have already deleted
> >> > those app passwords for my live account and are no longer valid.
> >> >
> >> > *Error:*
> >> > In an attempt to store configurations from the repository I get this
> >> error:
> >> > https://pastebin.com/WqvRwXvB
> >> >
> >> > Please check: shouldCreateSMSConfigurationEntity()
> >> > https://github.com/ebenezergraham/fineract-cn-notifications/
> >> > blob/develop/component-test/src/main/java/org/apache/
> >> > fineract/cn/notification/TestSMSService.java
> >> >
> >> > I am 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-27 Thread Ebenezer Graham
Hi all,

I am having a connection issue with the java mail.  https://pastebin.com
/f8UAkvsa

I can send emails when I run it from the component test but the connection
times out when the service is started by the demo-server. The SMS service
works fine and only the email service times out.

Does anyone have ideas on how to solve this? I have tried a lot of
solutions on the web but I believe that this timeout is caused by security
constraints in Fineract CN

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 23 August 2018 at 18:05, Ebenezer Graham 
wrote:

> Hi all,
>
> @Markus: The ActiveMQ configuration worked :). I am now getting one
> invocation. Thanks for the support,
>
> However, the entity creation is still not working but I think Myrle's
> feedback on my PR might do the trick.
>
> @Myrle: I have updated the private cwiki page with the credentials,
> thanks. Also, I have incorporated most of the feedback shared on the PRs
> and added a few comments.
> For the Domain objects, I have created tests for each of them. I will add
> more rigorous tests to it after making significant progress with the
> web-app interface
> and the connection timeout problem when the system is up. More about the
> issue below
> The issue has to do with service timeouts. https://pastebin.com/f8UAkvsa
> *N*
> * B: *the email and SMS services are correctly configured and do send out
> emails and SMS
> in the component test. However, when I make an actual build the mail
> connection times out even though it
> has been invoked
>
> @Awasum like you suggested, I have changed the JavaMail version to 1.4.1
> RELEASE and it works fine. Thanks
> I have created values in the ext.versions for the Twilio API and
> JavaMail in the shared.gradle
>
> My best guess is that there is something interrupting or inhibiting the
> connection when the entire system is
> up and running.
>
> Looking forward to your feedback.
>
> On 22 August 2018 at 16:03, Markus Geiss  wrote:
>
>> Hey Ebenezer,
>>
>> hope this finds you well. (;
>>
>> looking at the two stack traces you've provided here is my take on it.
>>
>> The error while storing configuration is caused by a field in the database
>> 'sender_number' being declared as not null, but no data is provided. In
>> the
>> create method of SMSConfiguration you are not handling the sender number
>> at
>> all. I would recommend to either use a builder pattern or just use plain
>> getter/setter to create the instance.
>>
>> With regards to receiving multiple (3) events, this is caused by the way
>> acitvemq is configured in your service. The default
>> for activemq.concurrency is 3-10, if you set this to 1-1 it will only
>> listen with 1 concurrent thread.
>>
>> Hope this helps.
>>
>> Cheers
>>
>> Markus
>>
>>
>>
>> On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham > >
>> wrote:
>>
>> > Thanks myrle,
>> >
>> > I have already created a demo email account called
>> > fineractcnnotificationd...@gmail.com and I created it for the sole
>> purpose
>> > of testing emails for this service and for other contributors to use.
>> > Please advise me on this approach.
>> >
>> > Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
>> are
>> > no longer valid. I created app passwords and so I have already deleted
>> > those app passwords for my live account and are no longer valid.
>> >
>> > *Error:*
>> > In an attempt to store configurations from the repository I get this
>> error:
>> > https://pastebin.com/WqvRwXvB
>> >
>> > Please check: shouldCreateSMSConfigurationEntity()
>> > https://github.com/ebenezergraham/fineract-cn-notifications/
>> > blob/develop/component-test/src/main/java/org/apache/
>> > fineract/cn/notification/TestSMSService.java
>> >
>> > I am able to retrieve stored configurations but I am unable to create a
>> > configuration and store. Same issue for email repository
>> >
>> > Second Issue: https://pastebin.com/LKz7HcGy
>> > I have managed to authenticate with identity and getting customer
>> object,
>> > however, when I trigger an invent from the fims web app, I get 3
>> > invocations from the ActiveMQ. How can I resolve this issue? Are my
>> > assumptions correct to begin with?
>> >
>> >
>> > *At your service,*
>> >
>> > *Ebenezer Graham*
>> >
>> > *BSc (Hons) Computing*
>> >
>> >
>> > [image: EmailSignature.png]
>> >
>> > African Leadership University,
>> >
>> > Power Mill Road, Pamplemousses,
>> >
>> > Mauritius.
>> >
>> >
>> >
>> > *skype*:
>> > ebenezer.graham
>> > GitHub  | LinkedIn
>> > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-23 Thread Ebenezer Graham
Hi all,

@Markus: The ActiveMQ configuration worked :). I am now getting one
invocation. Thanks for the support,

However, the entity creation is still not working but I think Myrle's
feedback on my PR might do the trick.

@Myrle: I have updated the private cwiki page with the credentials, thanks.
Also, I have incorporated most of the feedback shared on the PRs
and added a few comments.
For the Domain objects, I have created tests for each of them. I will add
more rigorous tests to it after making significant progress with the
web-app interface
and the connection timeout problem when the system is up. More about the
issue below
The issue has to do with service timeouts. https://pastebin.com/f8UAkvsa
*N*
* B: *the email and SMS services are correctly configured and do send out
emails and SMS
in the component test. However, when I make an actual build the mail
connection times out even though it
has been invoked

@Awasum like you suggested, I have changed the JavaMail version to 1.4.1
RELEASE and it works fine. Thanks
I have created values in the ext.versions for the Twilio API and
JavaMail in the shared.gradle

My best guess is that there is something interrupting or inhibiting the
connection when the entire system is
up and running.

Looking forward to your feedback.

On 22 August 2018 at 16:03, Markus Geiss  wrote:

> Hey Ebenezer,
>
> hope this finds you well. (;
>
> looking at the two stack traces you've provided here is my take on it.
>
> The error while storing configuration is caused by a field in the database
> 'sender_number' being declared as not null, but no data is provided. In the
> create method of SMSConfiguration you are not handling the sender number at
> all. I would recommend to either use a builder pattern or just use plain
> getter/setter to create the instance.
>
> With regards to receiving multiple (3) events, this is caused by the way
> acitvemq is configured in your service. The default
> for activemq.concurrency is 3-10, if you set this to 1-1 it will only
> listen with 1 concurrent thread.
>
> Hope this helps.
>
> Cheers
>
> Markus
>
>
>
> On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham 
> wrote:
>
> > Thanks myrle,
> >
> > I have already created a demo email account called
> > fineractcnnotificationd...@gmail.com and I created it for the sole
> purpose
> > of testing emails for this service and for other contributors to use.
> > Please advise me on this approach.
> >
> > Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
> are
> > no longer valid. I created app passwords and so I have already deleted
> > those app passwords for my live account and are no longer valid.
> >
> > *Error:*
> > In an attempt to store configurations from the repository I get this
> error:
> > https://pastebin.com/WqvRwXvB
> >
> > Please check: shouldCreateSMSConfigurationEntity()
> > https://github.com/ebenezergraham/fineract-cn-notifications/
> > blob/develop/component-test/src/main/java/org/apache/
> > fineract/cn/notification/TestSMSService.java
> >
> > I am able to retrieve stored configurations but I am unable to create a
> > configuration and store. Same issue for email repository
> >
> > Second Issue: https://pastebin.com/LKz7HcGy
> > I have managed to authenticate with identity and getting customer object,
> > however, when I trigger an invent from the fims web app, I get 3
> > invocations from the ActiveMQ. How can I resolve this issue? Are my
> > assumptions correct to begin with?
> >
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> >
> > *skype*:
> > ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 22 August 2018 at 15:10, Ebenezer Graham 
> > wrote:
> >
> > > Thanks myrle,
> > >
> > > I have already created a demo email account called
> > > fineractcnnotificationd...@gmail.com and I created it for the sole
> > > purpose of testing emails for this service and for other contributors
> > > to use. Please advise me on this approach.
> > >
> > > Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
> > are
> > > not the real passwords. I created app passwords and so I have already
> > > deleted those app passwords for my live account and are no longer
> valid.
> > >
> > > *Error:*
> > > In an attempt to store configurations from the repository I get this
> > error:
> > >
> > > Please check: shouldCreateSMSConfigurationEntity()
> > >
> > https://github.com/ebenezergraham/fineract-cn-notifications/
> blob/develop/
> > > component-test/src/main/java/org/apache/fineract/cn/
> > > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-22 Thread Myrle Krantz
On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham 
wrote:

> Thanks myrle,
>
> I have already created a demo email account called
> fineractcnnotificationd...@gmail.com and I created it for the sole
> purpose of testing emails for this service and for other contributors
> to use. Please advise me on this approach.
>

I don't have a better idea on how to do this right now.  I suggest we
create you a private area in confluence where you can put the password to
that account.  Please don't check in a current password for that account.
You'll just have to be careful.

Meanwhile, I'll ask around if this problem has been had at Apache before
(seems likely), and how it's been handled there.

Best Regards,
Myrle


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-22 Thread Myrle Krantz
Hey Ebenezer,

There's a better way to get permissions for accessing customer.  I
recommend you use the permitted-feign-client.  You can see an example of
this in Rhythm.

You would be accessing customer like rhythm acesses identity here:
https://github.com/apache/fineract-cn-rhythm/blob/develop/service/src/main/java/org/apache/fineract/cn/rhythm/service/internal/identity/ApplicationPermissionRequestCreator.java

You would still need to define a user in whose name to access customer, but
you would no longer need that user's password.  Instead you'd give your
application permission to act as that user in the provisioning, like it is
done here:
https://github.com/apache/fineract-cn-demo-server/blob/develop/src/main/java/org/apache/fineract/cn/dev/ServiceRunner.java#L432

This limits the scope of the rights of the application to just what it
needs reducing the damage possible via a security break.  And it means you
don't have to save a powerful user's password in plain text in code or in a
configuration file.

If you need a pair-programming round to help you understand this, ping me
offlist.  It's a confusing topic.

Best Regards,
Myrle


On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham 
wrote:

> Thanks myrle,
>
> I have already created a demo email account called
> fineractcnnotificationd...@gmail.com and I created it for the sole
> purpose of testing emails for this service and for other contributors
> to use. Please advise me on this approach.
>
> Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail are
> no longer valid. I created app passwords and so I have already deleted
> those app passwords for my live account and are no longer valid.
>
> *Error:*
> In an attempt to store configurations from the repository I get this
> error: https://pastebin.com/WqvRwXvB
>
> Please check: shouldCreateSMSConfigurationEntity()
>
> https://github.com/ebenezergraham/fineract-cn-notifications/blob/develop/component-test/src/main/java/org/apache/fineract/cn/notification/TestSMSService.java
>
> I am able to retrieve stored configurations but I am unable to create a
> configuration and store. Same issue for email repository
>
> Second Issue: https://pastebin.com/LKz7HcGy
> I have managed to authenticate with identity and getting customer object,
> however, when I trigger an invent from the fims web app, I get 3
> invocations from the ActiveMQ. How can I resolve this issue? Are my
> assumptions correct to begin with?
>
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> ​
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 22 August 2018 at 15:10, Ebenezer Graham 
> wrote:
>
>> Thanks myrle,
>>
>> I have already created a demo email account called
>> fineractcnnotificationd...@gmail.com and I created it for the sole
>> purpose of testing emails for this service and for other contributors
>> to use. Please advise me on this approach.
>>
>> Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
>> are not the real passwords. I created app passwords and so I have already
>> deleted those app passwords for my live account and are no longer valid.
>>
>> *Error:*
>> In an attempt to store configurations from the repository I get this
>> error:
>>
>> Please check: shouldCreateSMSConfigurationEntity()
>>
>> https://github.com/ebenezergraham/fineract-cn-notifications/blob/develop/component-test/src/main/java/org/apache/fineract/cn/notification/TestSMSService.java
>>
>> I am able to retrieve stored configurations but I am unable to create a
>> configuration and store. Same issue for email repository
>>
>> Second Issue: https://pastebin.com/LKz7HcGy
>> I have managed to authenticate with identity and getting customer object,
>> however, when I trigger an invent from the fims web app, I get 3
>> invocations from the ActiveMQ. How can I resolve this issue? Are my
>> assumptions correct to begin with?
>>
>>
>> *At your service,*
>>
>> *Ebenezer Graham*
>>
>> *BSc (Hons) Computing*
>>
>>
>> [image: EmailSignature.png]
>>
>> African Leadership University,
>>
>> Power Mill Road, Pamplemousses,
>>
>> Mauritius.
>>
>>
>> ​
>> *skype*:
>> ​ebenezer.graham
>> GitHub  | LinkedIn
>>  | Twitter
>>  | Facebook
>> 
>> www.pactmart.com | Freelancing made easy.
>>
>>
>> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>>
>>
>>
>> On 22 August 2018 at 14:45, Myrle Krantz  wrote:
>>
>>> Hey Ebenezer,
>>>
>>> I was just reviewing your PR and 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-22 Thread Markus Geiss
Hey Ebenezer,

hope this finds you well. (;

looking at the two stack traces you've provided here is my take on it.

The error while storing configuration is caused by a field in the database
'sender_number' being declared as not null, but no data is provided. In the
create method of SMSConfiguration you are not handling the sender number at
all. I would recommend to either use a builder pattern or just use plain
getter/setter to create the instance.

With regards to receiving multiple (3) events, this is caused by the way
acitvemq is configured in your service. The default
for activemq.concurrency is 3-10, if you set this to 1-1 it will only
listen with 1 concurrent thread.

Hope this helps.

Cheers

Markus



On Wed, Aug 22, 2018 at 1:40 PM Ebenezer Graham 
wrote:

> Thanks myrle,
>
> I have already created a demo email account called
> fineractcnnotificationd...@gmail.com and I created it for the sole purpose
> of testing emails for this service and for other contributors to use.
> Please advise me on this approach.
>
> Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail are
> no longer valid. I created app passwords and so I have already deleted
> those app passwords for my live account and are no longer valid.
>
> *Error:*
> In an attempt to store configurations from the repository I get this error:
> https://pastebin.com/WqvRwXvB
>
> Please check: shouldCreateSMSConfigurationEntity()
> https://github.com/ebenezergraham/fineract-cn-notifications/
> blob/develop/component-test/src/main/java/org/apache/
> fineract/cn/notification/TestSMSService.java
>
> I am able to retrieve stored configurations but I am unable to create a
> configuration and store. Same issue for email repository
>
> Second Issue: https://pastebin.com/LKz7HcGy
> I have managed to authenticate with identity and getting customer object,
> however, when I trigger an invent from the fims web app, I get 3
> invocations from the ActiveMQ. How can I resolve this issue? Are my
> assumptions correct to begin with?
>
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> ​
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 22 August 2018 at 15:10, Ebenezer Graham 
> wrote:
>
> > Thanks myrle,
> >
> > I have already created a demo email account called
> > fineractcnnotificationd...@gmail.com and I created it for the sole
> > purpose of testing emails for this service and for other contributors
> > to use. Please advise me on this approach.
> >
> > Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail
> are
> > not the real passwords. I created app passwords and so I have already
> > deleted those app passwords for my live account and are no longer valid.
> >
> > *Error:*
> > In an attempt to store configurations from the repository I get this
> error:
> >
> > Please check: shouldCreateSMSConfigurationEntity()
> >
> https://github.com/ebenezergraham/fineract-cn-notifications/blob/develop/
> > component-test/src/main/java/org/apache/fineract/cn/
> > notification/TestSMSService.java
> >
> > I am able to retrieve stored configurations but I am unable to create a
> > configuration and store. Same issue for email repository
> >
> > Second Issue: https://pastebin.com/LKz7HcGy
> > I have managed to authenticate with identity and getting customer object,
> > however, when I trigger an invent from the fims web app, I get 3
> > invocations from the ActiveMQ. How can I resolve this issue? Are my
> > assumptions correct to begin with?
> >
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> > ​
> > *skype*:
> > ​ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 22 August 2018 at 14:45, Myrle Krantz  wrote:
> >
> >> Hey Ebenezer,
> >>
> >> I was just reviewing your PR and realized that you had included
> >> passwords in it.  They look like they might be passwords to live
> >> accounts.  I strongly suggest you remove them from your latest PR.
> >>
> >> I also checked and it appears you have passwords in code that has
> >> already been merged.  If this is true, I suggest you change the
> >> password on the e-mail account: 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-22 Thread Ebenezer Graham
Thanks myrle,

I have already created a demo email account called
fineractcnnotificationd...@gmail.com and I created it for the sole purpose
of testing emails for this service and for other contributors to use.
Please advise me on this approach.

Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail are
no longer valid. I created app passwords and so I have already deleted
those app passwords for my live account and are no longer valid.

*Error:*
In an attempt to store configurations from the repository I get this error:
https://pastebin.com/WqvRwXvB

Please check: shouldCreateSMSConfigurationEntity()
https://github.com/ebenezergraham/fineract-cn-notifications/
blob/develop/component-test/src/main/java/org/apache/
fineract/cn/notification/TestSMSService.java

I am able to retrieve stored configurations but I am unable to create a
configuration and store. Same issue for email repository

Second Issue: https://pastebin.com/LKz7HcGy
I have managed to authenticate with identity and getting customer object,
however, when I trigger an invent from the fims web app, I get 3
invocations from the ActiveMQ. How can I resolve this issue? Are my
assumptions correct to begin with?


*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 22 August 2018 at 15:10, Ebenezer Graham 
wrote:

> Thanks myrle,
>
> I have already created a demo email account called
> fineractcnnotificationd...@gmail.com and I created it for the sole
> purpose of testing emails for this service and for other contributors
> to use. Please advise me on this approach.
>
> Also, the password for ebenezergraha...@gmail.com and akyencorp@gmail are
> not the real passwords. I created app passwords and so I have already
> deleted those app passwords for my live account and are no longer valid.
>
> *Error:*
> In an attempt to store configurations from the repository I get this error:
>
> Please check: shouldCreateSMSConfigurationEntity()
> https://github.com/ebenezergraham/fineract-cn-notifications/blob/develop/
> component-test/src/main/java/org/apache/fineract/cn/
> notification/TestSMSService.java
>
> I am able to retrieve stored configurations but I am unable to create a
> configuration and store. Same issue for email repository
>
> Second Issue: https://pastebin.com/LKz7HcGy
> I have managed to authenticate with identity and getting customer object,
> however, when I trigger an invent from the fims web app, I get 3
> invocations from the ActiveMQ. How can I resolve this issue? Are my
> assumptions correct to begin with?
>
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> ​
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 22 August 2018 at 14:45, Myrle Krantz  wrote:
>
>> Hey Ebenezer,
>>
>> I was just reviewing your PR and realized that you had included
>> passwords in it.  They look like they might be passwords to live
>> accounts.  I strongly suggest you remove them from your latest PR.
>>
>> I also checked and it appears you have passwords in code that has
>> already been merged.  If this is true, I suggest you change the
>> password on the e-mail account: ebenezergraha...@gmail.com
>>
>> In general, we don't change git history.  It's okay to make mistakes,
>> and it's important to preserve the commit history of a project.  There
>> are few exceptions I would make, but one of those is for passwords or
>> other secrets.  But only if those passwords or other secrets can't
>> easily be replaced.  I don't believe this is the case here.
>>
>> Beyond that, I'm working on putting together feedback on your code and
>> will post that by the end of the day.
>>
>> Best Regards,
>> Myrle
>>
>>
>>
>>
>> On Wed, Aug 22, 2018 at 9:12 AM Ebenezer Graham
>>  wrote:
>> >
>> > Hi Awasum,
>> >
>> > I have been able to resolve the authentication problem and now able to
>> > retrieve customers.
>> >
>> > I have also written a component test for the email and sms service.
>> >
>> > In an attempt to clean up my repository and squash the commits I messed
>> up
>> > my repo hence I have deleted it and forked a new one.
>> >
>> > In light of this, would like to find out if it is possible to 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-08-22 Thread Ebenezer Graham
Hi Awasum,

I have been able to resolve the authentication problem and now able to
retrieve customers.

I have also written a component test for the email and sms service.

In an attempt to clean up my repository and squash the commits I messed up
my repo hence I have deleted it and forked a new one.

In light of this, would like to find out if it is possible to force merge
them so that apache repository takes commits from mine.  This is because
the one on Apache has some unwanted files such as the sample classes and
travis.yml. Please let me know if this is possible.

Also, I have made new PRs. Please review it and provide feedback

Looking forward to your response.

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 9 July 2018 at 12:25, Awasum Yannick  wrote:

> Hello Graham,
>
> You need to create a user, maybe use *operator* and make sure the user has
> permission to access customer (READ). Then you have to create a class which
> uses this user to connect and authenticate each time with the identity
> service before each customer information is retrieved.
>
> This user could be defined in the yml file of your service and then
> injected into the Authentication Class you create.
>
> Each event which is emitted most often has the tenant within the message.
> just get this tenant and check and set the *TenantContextHolder *if not
> already set just before you authenticate. Immediately after authentication,
> Set the *UserContextHolder* too
>
> Another point is to remember to trim or remove the quotes from the customer
> identifier before trying to get more contact details about  that customer:
> {String}.replaceAll("^\"|\"$", "")
>
> I hope this helps
>
> Thanks.
> Awasum Yannick
>
> On Tue, Jul 3, 2018 at 11:18 PM Ebenezer Graham 
> wrote:
>
> > Hello there,
> >
> > I would like to retrieve a customer after it has been created, or
> activated
> > etc.
> >
> > I have coded the logic to send the SMS and email after getting the
> contact
> > details, however, I have to get the customer to get the contact details.
> >
> > This is the error I get during my call: https://pastebin.com/zrebwE8v
> >
> > I would like to get clarifications on how to set the tenant and correctly
> > make authentication during a rest call.
> >
> > I would also like to get a better understanding of how to use the Anubis,
> > test and identity microservice in this case
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> > *skype*:
> > ​ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 19 May 2018 at 00:41, Ebenezer Graham 
> wrote:
> >
> > > Hi everyone,
> > >
> > > I am Ebenezer a student from the African Leadership University and I
> will
> > > be working on this project under the mentorship of Isaac Kamga.
> > >
> > > The idea is to use this thread to discuss the decisions being made on
> > this
> > > project so that the community has visibility on what's happening and
> most
> > > importantly give constructive feedback.
> > >
> > > *EventListeners:*
> > > This is the Doc
> > > <
> > https://docs.google.com/document/d/1kme5qrxOrO0WGUEvNgzv5XVkgWtpg
> 0lbX-CrBH4js7o/edit?usp=sharing
> > >
> > > containing the shortlisted events which I believe qualify for an Email
> or
> > > SMS notification. Please review and comment on the doc suggesting any
> > > addition or deletion or related feedback.
> > >
> > > *UI for the service:*
> > > This is a link  to the
> > > wireframes for the UI of the service. Please give pointers on what
> could
> > be
> > > added and what should be taken out.
> > >
> > >
> > > *​At your service*
> > > *,*
> > >
> > > *Ebenezer Graham*
> > >
> > > *BSc (Hons) Computing*
> > >
> > >
> > > [image: EmailSignature.png]
> > >
> > > Beau Plan Business Park | West Building
> > >
> > > Pamplemousses |  Mauritius
> > >
> > >
> > > 
> > > 
> > > www.pactmart.com | Freelancing made easy.
> > > GitHub  | LinkedIn
> > >  | Twitter
> > > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-07-09 Thread Awasum Yannick
Hello Graham,

You need to create a user, maybe use *operator* and make sure the user has
permission to access customer (READ). Then you have to create a class which
uses this user to connect and authenticate each time with the identity
service before each customer information is retrieved.

This user could be defined in the yml file of your service and then
injected into the Authentication Class you create.

Each event which is emitted most often has the tenant within the message.
just get this tenant and check and set the *TenantContextHolder *if not
already set just before you authenticate. Immediately after authentication,
Set the *UserContextHolder* too

Another point is to remember to trim or remove the quotes from the customer
identifier before trying to get more contact details about  that customer:
{String}.replaceAll("^\"|\"$", "")

I hope this helps

Thanks.
Awasum Yannick

On Tue, Jul 3, 2018 at 11:18 PM Ebenezer Graham 
wrote:

> Hello there,
>
> I would like to retrieve a customer after it has been created, or activated
> etc.
>
> I have coded the logic to send the SMS and email after getting the contact
> details, however, I have to get the customer to get the contact details.
>
> This is the error I get during my call: https://pastebin.com/zrebwE8v
>
> I would like to get clarifications on how to set the tenant and correctly
> make authentication during a rest call.
>
> I would also like to get a better understanding of how to use the Anubis,
> test and identity microservice in this case
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 19 May 2018 at 00:41, Ebenezer Graham  wrote:
>
> > Hi everyone,
> >
> > I am Ebenezer a student from the African Leadership University and I will
> > be working on this project under the mentorship of Isaac Kamga.
> >
> > The idea is to use this thread to discuss the decisions being made on
> this
> > project so that the community has visibility on what's happening and most
> > importantly give constructive feedback.
> >
> > *EventListeners:*
> > This is the Doc
> > <
> https://docs.google.com/document/d/1kme5qrxOrO0WGUEvNgzv5XVkgWtpg0lbX-CrBH4js7o/edit?usp=sharing
> >
> > containing the shortlisted events which I believe qualify for an Email or
> > SMS notification. Please review and comment on the doc suggesting any
> > addition or deletion or related feedback.
> >
> > *UI for the service:*
> > This is a link  to the
> > wireframes for the UI of the service. Please give pointers on what could
> be
> > added and what should be taken out.
> >
> >
> > *​At your service*
> > *,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > Beau Plan Business Park | West Building
> >
> > Pamplemousses |  Mauritius
> >
> >
> > 
> > 
> > www.pactmart.com | Freelancing made easy.
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> >  | Website
> > 
> > ​
> > *skype*:
> > ​ebenezer.graham
> > ​ | *Phone*:
> > +230 5840 9206
> >
> >
> > *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> > that makes you good.”*
> > -*Malcolm Gladwell*
> >
> >
> >
>


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-07-03 Thread Ebenezer Graham
Hello there,

I would like to retrieve a customer after it has been created, or activated
etc.

I have coded the logic to send the SMS and email after getting the contact
details, however, I have to get the customer to get the contact details.

This is the error I get during my call: https://pastebin.com/zrebwE8v

I would like to get clarifications on how to set the tenant and correctly
make authentication during a rest call.

I would also like to get a better understanding of how to use the Anubis,
test and identity microservice in this case

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 19 May 2018 at 00:41, Ebenezer Graham  wrote:

> Hi everyone,
>
> I am Ebenezer a student from the African Leadership University and I will
> be working on this project under the mentorship of Isaac Kamga.
>
> The idea is to use this thread to discuss the decisions being made on this
> project so that the community has visibility on what's happening and most
> importantly give constructive feedback.
>
> *EventListeners:*
> This is the Doc
> 
> containing the shortlisted events which I believe qualify for an Email or
> SMS notification. Please review and comment on the doc suggesting any
> addition or deletion or related feedback.
>
> *UI for the service:*
> This is a link  to the
> wireframes for the UI of the service. Please give pointers on what could be
> added and what should be taken out.
>
>
> *​At your service*
> *,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> Beau Plan Business Park | West Building
>
> Pamplemousses |  Mauritius
>
>
> 
> 
> www.pactmart.com | Freelancing made easy.
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
>  | Website
> 
> ​
> *skype*:
> ​ebenezer.graham
> ​ | *Phone*:
> +230 5840 9206
>
>
> *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> that makes you good.”*
> -*Malcolm Gladwell*
>
>
>


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-22 Thread Ebenezer Graham
Hello Myrle,

The issue was with the JmsFactory and ActiveMQ configuration. I have
configured it and the listeners are now working. Thanks for the support.

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 22 June 2018 at 00:42, Ebenezer Graham  wrote:

> Thanks, Myrle,
>
> I have forked the new repository.
>
> I think this might be one of the issues. I haven't done any configurations
> for ActiveMQ for any of the microservices including the notification
> service. I will learn what to do test it out.
>
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> ​
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 21 June 2018 at 20:20, Myrle Krantz  wrote:
>
>> Hey Ebenezer,
>>
>> I've inited your github repo:
>> https://github.com/apache/fineract-cn-notifications.  I suggest you
>> refork from there, and then put in regular pull requests.  If we fall
>> behind merging your pull requests, feel free to send gentle but firm
>> reminders to the dev list.  : o)
>>
>> Best Regards,
>> Myrle
>> On Thu, Jun 21, 2018 at 1:24 PM Myrle Krantz  wrote:
>> >
>> > Hey Ebenezer,
>> >
>> > How have you configured ActiveMQ in the customer service and how have
>> > you configured it in the notifications service?  Can you give us a
>> > snippet out of your yaml file (or wherever you've done the
>> > configuration?)
>> >
>> > Greets,
>> > Myrle
>> >
>> > On Thu, Jun 21, 2018 at 12:44 PM Ebenezer Graham
>> >  wrote:
>> > >
>> > > Hello everyone,
>> > >
>> > > I would like to get input on how to fix an issue with my code.
>> > >
>> > > I am trying to listen to topics in the ActiveMQ but for some reason, I
>> > > don't find any message in the topics. After creating a customer. I
>> expected
>> > > to see a message on the topic customer-V1 however, it has no message.
>> > > Likewise, the message hasn't been consumed by the notification
>> service.
>> > >
>> > > Please note that I am using A (https://github.com/fmtn/a)  to browse
>> the
>> > > topics in ActiveMQ because I can't view the admin page through my
>> external
>> > > IP. Please let me know if you can help me bind the ActiveMQ to the
>> external
>> > > IP.
>> > >
>> > > PS, I have only set up @Jmslisteners and enabled it in the
>> configurations.
>> > >
>> > > I have not coded up a JmsTemplate and JmsListenerContainerFactory.
>> Could
>> > > this be the factor?
>> > >
>> > > *At your service,*
>> > >
>> > > *Ebenezer Graham*
>> > >
>> > > *BSc (Hons) Computing*
>> > >
>> > >
>> > > [image: EmailSignature.png]
>> > >
>> > > African Leadership University,
>> > >
>> > > Power Mill Road, Pamplemousses,
>> > >
>> > > Mauritius.
>> > >
>> > >
>> > >
>> > > *skype*:
>> > > ebenezer.graham
>> > > GitHub  | LinkedIn
>> > >  | Twitter
>> > >  | Facebook
>> > > 
>> > > www.pactmart.com | Freelancing made easy.
>> > >
>> > >
>> > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>> > >
>> > >
>> > >
>> > > On 15 June 2018 at 10:19, Awasum Yannick 
>> wrote:
>> > >
>> > > > Check your logs and figure out the problem.
>> > > >
>> > > > On Fri, Jun 15, 2018, 02:20 Ebenezer Graham <
>> egraha...@alustudent.com>
>> > > > wrote:
>> > > >
>> > > > > Thanks, Yannick and Courage,
>> > > > >
>> > > > > I have been able to integrate the notification service into the
>> > > > demo-server
>> > > > > :)
>> > > > >
>> > > > > I just created a customer but didn't receive an SMS as I
>> expected. How
>> > > > can
>> > > > > I debug the system without tearing down the build?
>> > > > >
>> > > > > Any pointers on how to debug the build?
>> > > > >
>> > > > > *At your service,*
>> > > > >
>> > > > > *Ebenezer Graham*
>> > > > >
>> > > > > *BSc (Hons) Computing*
>> > > > >
>> > > > >
>> > > > > [image: EmailSignature.png]
>> > > > >
>> > > > > African Leadership University,
>> > > > >
>> > > > > Power Mill Road, Pamplemousses,
>> > > > >
>> > > > > Mauritius.
>> > > > >
>> > > > >
>> > > > >
>> > > > > *skype*:
>> > > > > ebenezer.graham
>> > > > > GitHub  | 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-21 Thread Ebenezer Graham
Thanks, Myrle,

I have forked the new repository.

I think this might be one of the issues. I haven't done any configurations
for ActiveMQ for any of the microservices including the notification
service. I will learn what to do test it out.


*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 21 June 2018 at 20:20, Myrle Krantz  wrote:

> Hey Ebenezer,
>
> I've inited your github repo:
> https://github.com/apache/fineract-cn-notifications.  I suggest you
> refork from there, and then put in regular pull requests.  If we fall
> behind merging your pull requests, feel free to send gentle but firm
> reminders to the dev list.  : o)
>
> Best Regards,
> Myrle
> On Thu, Jun 21, 2018 at 1:24 PM Myrle Krantz  wrote:
> >
> > Hey Ebenezer,
> >
> > How have you configured ActiveMQ in the customer service and how have
> > you configured it in the notifications service?  Can you give us a
> > snippet out of your yaml file (or wherever you've done the
> > configuration?)
> >
> > Greets,
> > Myrle
> >
> > On Thu, Jun 21, 2018 at 12:44 PM Ebenezer Graham
> >  wrote:
> > >
> > > Hello everyone,
> > >
> > > I would like to get input on how to fix an issue with my code.
> > >
> > > I am trying to listen to topics in the ActiveMQ but for some reason, I
> > > don't find any message in the topics. After creating a customer. I
> expected
> > > to see a message on the topic customer-V1 however, it has no message.
> > > Likewise, the message hasn't been consumed by the notification service.
> > >
> > > Please note that I am using A (https://github.com/fmtn/a)  to browse
> the
> > > topics in ActiveMQ because I can't view the admin page through my
> external
> > > IP. Please let me know if you can help me bind the ActiveMQ to the
> external
> > > IP.
> > >
> > > PS, I have only set up @Jmslisteners and enabled it in the
> configurations.
> > >
> > > I have not coded up a JmsTemplate and JmsListenerContainerFactory.
> Could
> > > this be the factor?
> > >
> > > *At your service,*
> > >
> > > *Ebenezer Graham*
> > >
> > > *BSc (Hons) Computing*
> > >
> > >
> > > [image: EmailSignature.png]
> > >
> > > African Leadership University,
> > >
> > > Power Mill Road, Pamplemousses,
> > >
> > > Mauritius.
> > >
> > >
> > >
> > > *skype*:
> > > ebenezer.graham
> > > GitHub  | LinkedIn
> > >  | Twitter
> > >  | Facebook
> > > 
> > > www.pactmart.com | Freelancing made easy.
> > >
> > >
> > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > >
> > >
> > >
> > > On 15 June 2018 at 10:19, Awasum Yannick 
> wrote:
> > >
> > > > Check your logs and figure out the problem.
> > > >
> > > > On Fri, Jun 15, 2018, 02:20 Ebenezer Graham <
> egraha...@alustudent.com>
> > > > wrote:
> > > >
> > > > > Thanks, Yannick and Courage,
> > > > >
> > > > > I have been able to integrate the notification service into the
> > > > demo-server
> > > > > :)
> > > > >
> > > > > I just created a customer but didn't receive an SMS as I expected.
> How
> > > > can
> > > > > I debug the system without tearing down the build?
> > > > >
> > > > > Any pointers on how to debug the build?
> > > > >
> > > > > *At your service,*
> > > > >
> > > > > *Ebenezer Graham*
> > > > >
> > > > > *BSc (Hons) Computing*
> > > > >
> > > > >
> > > > > [image: EmailSignature.png]
> > > > >
> > > > > African Leadership University,
> > > > >
> > > > > Power Mill Road, Pamplemousses,
> > > > >
> > > > > Mauritius.
> > > > >
> > > > >
> > > > >
> > > > > *skype*:
> > > > > ebenezer.graham
> > > > > GitHub  | LinkedIn
> > > > >  | Twitter
> > > > >  | Facebook
> > > > > 
> > > > > www.pactmart.com | Freelancing made easy.
> > > > >
> > > > >
> > > > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > > > >
> > > > >
> > > > >
> > > > > On 15 June 2018 at 02:50, Courage Angeh 
> wrote:
> > > > >
> > > > > > Yea, I meant that of your notification microservice, not
> demo-server.
> > > > > > Also, I specified 'shared.gradle' file
> > > > > >
> > > > > > On Thu, Jun 14, 2018 at 7:34 PM Awasum Yannick <
> awa...@apache.org>
> > > > > wrote:
> > > > > >
> > > > > > > Use this as the version f the notification service:
> > > > > 0.1.0-BUILD-SNAPSHOT
> > > > > > >
> > > > > > > So it becomes compatible with that in demo server. Check your
> version
> > > > > in
> > > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-21 Thread Myrle Krantz
Hey Ebenezer,

I've inited your github repo:
https://github.com/apache/fineract-cn-notifications.  I suggest you
refork from there, and then put in regular pull requests.  If we fall
behind merging your pull requests, feel free to send gentle but firm
reminders to the dev list.  : o)

Best Regards,
Myrle
On Thu, Jun 21, 2018 at 1:24 PM Myrle Krantz  wrote:
>
> Hey Ebenezer,
>
> How have you configured ActiveMQ in the customer service and how have
> you configured it in the notifications service?  Can you give us a
> snippet out of your yaml file (or wherever you've done the
> configuration?)
>
> Greets,
> Myrle
>
> On Thu, Jun 21, 2018 at 12:44 PM Ebenezer Graham
>  wrote:
> >
> > Hello everyone,
> >
> > I would like to get input on how to fix an issue with my code.
> >
> > I am trying to listen to topics in the ActiveMQ but for some reason, I
> > don't find any message in the topics. After creating a customer. I expected
> > to see a message on the topic customer-V1 however, it has no message.
> > Likewise, the message hasn't been consumed by the notification service.
> >
> > Please note that I am using A (https://github.com/fmtn/a)  to browse the
> > topics in ActiveMQ because I can't view the admin page through my external
> > IP. Please let me know if you can help me bind the ActiveMQ to the external
> > IP.
> >
> > PS, I have only set up @Jmslisteners and enabled it in the configurations.
> >
> > I have not coded up a JmsTemplate and JmsListenerContainerFactory. Could
> > this be the factor?
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> >
> > *skype*:
> > ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 15 June 2018 at 10:19, Awasum Yannick  wrote:
> >
> > > Check your logs and figure out the problem.
> > >
> > > On Fri, Jun 15, 2018, 02:20 Ebenezer Graham 
> > > wrote:
> > >
> > > > Thanks, Yannick and Courage,
> > > >
> > > > I have been able to integrate the notification service into the
> > > demo-server
> > > > :)
> > > >
> > > > I just created a customer but didn't receive an SMS as I expected. How
> > > can
> > > > I debug the system without tearing down the build?
> > > >
> > > > Any pointers on how to debug the build?
> > > >
> > > > *At your service,*
> > > >
> > > > *Ebenezer Graham*
> > > >
> > > > *BSc (Hons) Computing*
> > > >
> > > >
> > > > [image: EmailSignature.png]
> > > >
> > > > African Leadership University,
> > > >
> > > > Power Mill Road, Pamplemousses,
> > > >
> > > > Mauritius.
> > > >
> > > >
> > > >
> > > > *skype*:
> > > > ebenezer.graham
> > > > GitHub  | LinkedIn
> > > >  | Twitter
> > > >  | Facebook
> > > > 
> > > > www.pactmart.com | Freelancing made easy.
> > > >
> > > >
> > > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > > >
> > > >
> > > >
> > > > On 15 June 2018 at 02:50, Courage Angeh  wrote:
> > > >
> > > > > Yea, I meant that of your notification microservice, not demo-server.
> > > > > Also, I specified 'shared.gradle' file
> > > > >
> > > > > On Thu, Jun 14, 2018 at 7:34 PM Awasum Yannick 
> > > > wrote:
> > > > >
> > > > > > Use this as the version f the notification service:
> > > > 0.1.0-BUILD-SNAPSHOT
> > > > > >
> > > > > > So it becomes compatible with that in demo server. Check your 
> > > > > > version
> > > > in
> > > > > > the notification service was: 0.1.0.BUILD-SNAPSHOT (which is wrong).
> > > > > >
> > > > > >
> > > > > > On Thu, Jun 14, 2018 at 7:30 PM Ebenezer Graham <
> > > > > egraha...@alustudent.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Please use this link
> > > > > > > <
> > > > > > >
> > > > > > https://github.com/ebenezergraham/fineract-cn-demo-server/
> > > > > blob/fix-notification-integration/build.gradle
> > > > > > > >
> > > > > > > instead I have reset the develop branch to a stable state.
> > > > > > >
> > > > > > > version declaration in on line 53 and dependency declaration is on
> > > > line
> > > > > > > 114.
> > > > > > >
> > > > > > >
> > > > > > > *At your service,*
> > > > > > >
> > > > > > > *Ebenezer Graham*
> > > > > > >
> > > > > > > *BSc (Hons) Computing*
> > > > > > >
> > > > > > >
> > > > > > > [image: EmailSignature.png]
> > > > > > >
> > > > > > > African Leadership University,
> > > > > > >
> > > > > > > Power Mill Road, Pamplemousses,
> > > > > > >
> > > > > > > Mauritius.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > *skype*:
> > > > > > > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-21 Thread Myrle Krantz
Hey Ebenezer,

How have you configured ActiveMQ in the customer service and how have
you configured it in the notifications service?  Can you give us a
snippet out of your yaml file (or wherever you've done the
configuration?)

Greets,
Myrle

On Thu, Jun 21, 2018 at 12:44 PM Ebenezer Graham
 wrote:
>
> Hello everyone,
>
> I would like to get input on how to fix an issue with my code.
>
> I am trying to listen to topics in the ActiveMQ but for some reason, I
> don't find any message in the topics. After creating a customer. I expected
> to see a message on the topic customer-V1 however, it has no message.
> Likewise, the message hasn't been consumed by the notification service.
>
> Please note that I am using A (https://github.com/fmtn/a)  to browse the
> topics in ActiveMQ because I can't view the admin page through my external
> IP. Please let me know if you can help me bind the ActiveMQ to the external
> IP.
>
> PS, I have only set up @Jmslisteners and enabled it in the configurations.
>
> I have not coded up a JmsTemplate and JmsListenerContainerFactory. Could
> this be the factor?
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
>
> *skype*:
> ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 15 June 2018 at 10:19, Awasum Yannick  wrote:
>
> > Check your logs and figure out the problem.
> >
> > On Fri, Jun 15, 2018, 02:20 Ebenezer Graham 
> > wrote:
> >
> > > Thanks, Yannick and Courage,
> > >
> > > I have been able to integrate the notification service into the
> > demo-server
> > > :)
> > >
> > > I just created a customer but didn't receive an SMS as I expected. How
> > can
> > > I debug the system without tearing down the build?
> > >
> > > Any pointers on how to debug the build?
> > >
> > > *At your service,*
> > >
> > > *Ebenezer Graham*
> > >
> > > *BSc (Hons) Computing*
> > >
> > >
> > > [image: EmailSignature.png]
> > >
> > > African Leadership University,
> > >
> > > Power Mill Road, Pamplemousses,
> > >
> > > Mauritius.
> > >
> > >
> > >
> > > *skype*:
> > > ebenezer.graham
> > > GitHub  | LinkedIn
> > >  | Twitter
> > >  | Facebook
> > > 
> > > www.pactmart.com | Freelancing made easy.
> > >
> > >
> > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > >
> > >
> > >
> > > On 15 June 2018 at 02:50, Courage Angeh  wrote:
> > >
> > > > Yea, I meant that of your notification microservice, not demo-server.
> > > > Also, I specified 'shared.gradle' file
> > > >
> > > > On Thu, Jun 14, 2018 at 7:34 PM Awasum Yannick 
> > > wrote:
> > > >
> > > > > Use this as the version f the notification service:
> > > 0.1.0-BUILD-SNAPSHOT
> > > > >
> > > > > So it becomes compatible with that in demo server. Check your version
> > > in
> > > > > the notification service was: 0.1.0.BUILD-SNAPSHOT (which is wrong).
> > > > >
> > > > >
> > > > > On Thu, Jun 14, 2018 at 7:30 PM Ebenezer Graham <
> > > > egraha...@alustudent.com>
> > > > > wrote:
> > > > >
> > > > > > Please use this link
> > > > > > <
> > > > > >
> > > > > https://github.com/ebenezergraham/fineract-cn-demo-server/
> > > > blob/fix-notification-integration/build.gradle
> > > > > > >
> > > > > > instead I have reset the develop branch to a stable state.
> > > > > >
> > > > > > version declaration in on line 53 and dependency declaration is on
> > > line
> > > > > > 114.
> > > > > >
> > > > > >
> > > > > > *At your service,*
> > > > > >
> > > > > > *Ebenezer Graham*
> > > > > >
> > > > > > *BSc (Hons) Computing*
> > > > > >
> > > > > >
> > > > > > [image: EmailSignature.png]
> > > > > >
> > > > > > African Leadership University,
> > > > > >
> > > > > > Power Mill Road, Pamplemousses,
> > > > > >
> > > > > > Mauritius.
> > > > > >
> > > > > >
> > > > > >
> > > > > > *skype*:
> > > > > > ebenezer.graham
> > > > > > GitHub  | LinkedIn
> > > > > >  | Twitter
> > > > > >  | Facebook
> > > > > > 
> > > > > > www.pactmart.com | Freelancing made easy.
> > > > > >
> > > > > >
> > > > > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 14 June 2018 at 21:56, Ebenezer Graham <
> > egraha...@alustudent.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Courage,
> > > > > > >
> > > > > > > Thanks for the tip. I have checked the .m2 directory everything
> > > looks
> > > > > > fine
> > > > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-15 Thread Awasum Yannick
Check your logs and figure out the problem.

On Fri, Jun 15, 2018, 02:20 Ebenezer Graham 
wrote:

> Thanks, Yannick and Courage,
>
> I have been able to integrate the notification service into the demo-server
> :)
>
> I just created a customer but didn't receive an SMS as I expected. How can
> I debug the system without tearing down the build?
>
> Any pointers on how to debug the build?
>
> *At your service,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> African Leadership University,
>
> Power Mill Road, Pamplemousses,
>
> Mauritius.
>
>
> ​
> *skype*:
> ​ebenezer.graham
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
> 
> www.pactmart.com | Freelancing made easy.
>
>
> *“Talk is cheap, show me the code.” *- *Linus Torvalds*
>
>
>
> On 15 June 2018 at 02:50, Courage Angeh  wrote:
>
> > Yea, I meant that of your notification microservice, not demo-server.
> > Also, I specified 'shared.gradle' file
> >
> > On Thu, Jun 14, 2018 at 7:34 PM Awasum Yannick 
> wrote:
> >
> > > Use this as the version f the notification service:
> 0.1.0-BUILD-SNAPSHOT
> > >
> > > So it becomes compatible with that in demo server. Check your version
> in
> > > the notification service was: 0.1.0.BUILD-SNAPSHOT (which is wrong).
> > >
> > >
> > > On Thu, Jun 14, 2018 at 7:30 PM Ebenezer Graham <
> > egraha...@alustudent.com>
> > > wrote:
> > >
> > > > Please use this link
> > > > <
> > > >
> > > https://github.com/ebenezergraham/fineract-cn-demo-server/
> > blob/fix-notification-integration/build.gradle
> > > > >
> > > > instead I have reset the develop branch to a stable state.
> > > >
> > > > version declaration in on line 53 and dependency declaration is on
> line
> > > > 114.
> > > >
> > > >
> > > > *At your service,*
> > > >
> > > > *Ebenezer Graham*
> > > >
> > > > *BSc (Hons) Computing*
> > > >
> > > >
> > > > [image: EmailSignature.png]
> > > >
> > > > African Leadership University,
> > > >
> > > > Power Mill Road, Pamplemousses,
> > > >
> > > > Mauritius.
> > > >
> > > >
> > > > ​
> > > > *skype*:
> > > > ​ebenezer.graham
> > > > GitHub  | LinkedIn
> > > >  | Twitter
> > > >  | Facebook
> > > > 
> > > > www.pactmart.com | Freelancing made easy.
> > > >
> > > >
> > > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > > >
> > > >
> > > >
> > > > On 14 June 2018 at 21:56, Ebenezer Graham 
> > > > wrote:
> > > >
> > > > > Hi Courage,
> > > > >
> > > > > Thanks for the tip. I have checked the .m2 directory everything
> looks
> > > > fine
> > > > > to me: https://pastebin.com/dePWtcch
> > > > >
> > > > > This is the demo-server's gradle file : link
> > > > > <
> > > >
> > > https://github.com/ebenezergraham/fineract-cn-demo-server/
> > blob/develop/build.gradle
> > > > >.
> > > > > Can you take a look and let me know if I have missed anything.
> > > > >
> > > > > version declaration in on line 53 and dependency declaration is on
> > line
> > > > > 114.
> > > > >
> > > > > *Best Regards,*
> > > > >
> > > > > *Ebenezer Graham*
> > > > >
> > > > > *BSc (Hons) Computing*
> > > > >
> > > > >
> > > > > [image: EmailSignature.png]
> > > > >
> > > > > Beau Plan Business Park | West Building
> > > > >
> > > > > Pamplemousses |  Mauritius
> > > > >
> > > > >
> > > > > 
> > > > > 
> > > > > www.pactmart.com | Freelancing made easy.
> > > > > GitHub  | LinkedIn
> > > > >  | Twitter
> > > > >  | Facebook
> > > > >  | Website
> > > > > 
> > > > > ​
> > > > > *skype*:
> > > > > ​ebenezer.graham
> > > > > ​ | *Phone*:
> > > > > +230 5840 9206
> > > > >
> > > > >
> > > > > *“Practice isn’t the thing you do once you’re good. It’s the thing
> > you
> > > do
> > > > > that makes you good.”*
> > > > > -*Malcolm Gladwell*
> > > > >
> > > > >
> > > > >
> > > > > On 14 June 2018 at 10:28, Courage Angeh 
> > > wrote:
> > > > >
> > > > >> Hi Victor
> > > > >>
> > > > >> You should check if the artefact is in the .m2 directory. If it
> is,
> > > > check
> > > > >> to make sure '0.1.0-BUILD-SNAPSHOT' is the version you specified
> in
> > > your
> > > > >> shared.gradle file.
> > > > >>
> > > > >> Thanks,
> > > > >> Courage
> > > > >>
> > > > >> On Wed, Jun 13, 2018 at 11:37 AM Ebenezer Graham <
> > > > >> egraha...@alustudent.com>
> > > > >> wrote:
> > > > >>
> > > > >> > Hello everyone,
> > > > >> >
> > > > >> > I have managed to get my VM up and running. A big thank you to
> > > Isaac,
> > > > >> > Yannick and Victor for the constant support.
> > > > >> >
> > > > >> > I am now 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-14 Thread Ebenezer Graham
Thanks, Yannick and Courage,

I have been able to integrate the notification service into the demo-server
:)

I just created a customer but didn't receive an SMS as I expected. How can
I debug the system without tearing down the build?

Any pointers on how to debug the build?

*At your service,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

African Leadership University,

Power Mill Road, Pamplemousses,

Mauritius.


​
*skype*:
​ebenezer.graham
GitHub  | LinkedIn
 | Twitter
 | Facebook

www.pactmart.com | Freelancing made easy.


*“Talk is cheap, show me the code.” *- *Linus Torvalds*



On 15 June 2018 at 02:50, Courage Angeh  wrote:

> Yea, I meant that of your notification microservice, not demo-server.
> Also, I specified 'shared.gradle' file
>
> On Thu, Jun 14, 2018 at 7:34 PM Awasum Yannick  wrote:
>
> > Use this as the version f the notification service: 0.1.0-BUILD-SNAPSHOT
> >
> > So it becomes compatible with that in demo server. Check your version in
> > the notification service was: 0.1.0.BUILD-SNAPSHOT (which is wrong).
> >
> >
> > On Thu, Jun 14, 2018 at 7:30 PM Ebenezer Graham <
> egraha...@alustudent.com>
> > wrote:
> >
> > > Please use this link
> > > <
> > >
> > https://github.com/ebenezergraham/fineract-cn-demo-server/
> blob/fix-notification-integration/build.gradle
> > > >
> > > instead I have reset the develop branch to a stable state.
> > >
> > > version declaration in on line 53 and dependency declaration is on line
> > > 114.
> > >
> > >
> > > *At your service,*
> > >
> > > *Ebenezer Graham*
> > >
> > > *BSc (Hons) Computing*
> > >
> > >
> > > [image: EmailSignature.png]
> > >
> > > African Leadership University,
> > >
> > > Power Mill Road, Pamplemousses,
> > >
> > > Mauritius.
> > >
> > >
> > > ​
> > > *skype*:
> > > ​ebenezer.graham
> > > GitHub  | LinkedIn
> > >  | Twitter
> > >  | Facebook
> > > 
> > > www.pactmart.com | Freelancing made easy.
> > >
> > >
> > > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> > >
> > >
> > >
> > > On 14 June 2018 at 21:56, Ebenezer Graham 
> > > wrote:
> > >
> > > > Hi Courage,
> > > >
> > > > Thanks for the tip. I have checked the .m2 directory everything looks
> > > fine
> > > > to me: https://pastebin.com/dePWtcch
> > > >
> > > > This is the demo-server's gradle file : link
> > > > <
> > >
> > https://github.com/ebenezergraham/fineract-cn-demo-server/
> blob/develop/build.gradle
> > > >.
> > > > Can you take a look and let me know if I have missed anything.
> > > >
> > > > version declaration in on line 53 and dependency declaration is on
> line
> > > > 114.
> > > >
> > > > *Best Regards,*
> > > >
> > > > *Ebenezer Graham*
> > > >
> > > > *BSc (Hons) Computing*
> > > >
> > > >
> > > > [image: EmailSignature.png]
> > > >
> > > > Beau Plan Business Park | West Building
> > > >
> > > > Pamplemousses |  Mauritius
> > > >
> > > >
> > > > 
> > > > 
> > > > www.pactmart.com | Freelancing made easy.
> > > > GitHub  | LinkedIn
> > > >  | Twitter
> > > >  | Facebook
> > > >  | Website
> > > > 
> > > > ​
> > > > *skype*:
> > > > ​ebenezer.graham
> > > > ​ | *Phone*:
> > > > +230 5840 9206
> > > >
> > > >
> > > > *“Practice isn’t the thing you do once you’re good. It’s the thing
> you
> > do
> > > > that makes you good.”*
> > > > -*Malcolm Gladwell*
> > > >
> > > >
> > > >
> > > > On 14 June 2018 at 10:28, Courage Angeh 
> > wrote:
> > > >
> > > >> Hi Victor
> > > >>
> > > >> You should check if the artefact is in the .m2 directory. If it is,
> > > check
> > > >> to make sure '0.1.0-BUILD-SNAPSHOT' is the version you specified in
> > your
> > > >> shared.gradle file.
> > > >>
> > > >> Thanks,
> > > >> Courage
> > > >>
> > > >> On Wed, Jun 13, 2018 at 11:37 AM Ebenezer Graham <
> > > >> egraha...@alustudent.com>
> > > >> wrote:
> > > >>
> > > >> > Hello everyone,
> > > >> >
> > > >> > I have managed to get my VM up and running. A big thank you to
> > Isaac,
> > > >> > Yannick and Victor for the constant support.
> > > >> >
> > > >> > I am now incorporating the notification service into the
> demo-server
> > > >> > however, I keep getting this error. https://pastebin.com/LW6CUwJ3
> > > >> >
> > > >> > NB: I have made a build of the notification microservice and
> > > >> > publishToMavenLocal. I have also added the dependency to the
> > > >> build.gradle
> > > >> > file in the demo server.
> > > >> >
> > > >> > I believe this issue has to do with locating the notification
> > > artefacts
> > > >> in
> > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-14 Thread Courage Angeh
Yea, I meant that of your notification microservice, not demo-server.
Also, I specified 'shared.gradle' file

On Thu, Jun 14, 2018 at 7:34 PM Awasum Yannick  wrote:

> Use this as the version f the notification service: 0.1.0-BUILD-SNAPSHOT
>
> So it becomes compatible with that in demo server. Check your version in
> the notification service was: 0.1.0.BUILD-SNAPSHOT (which is wrong).
>
>
> On Thu, Jun 14, 2018 at 7:30 PM Ebenezer Graham 
> wrote:
>
> > Please use this link
> > <
> >
> https://github.com/ebenezergraham/fineract-cn-demo-server/blob/fix-notification-integration/build.gradle
> > >
> > instead I have reset the develop branch to a stable state.
> >
> > version declaration in on line 53 and dependency declaration is on line
> > 114.
> >
> >
> > *At your service,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > African Leadership University,
> >
> > Power Mill Road, Pamplemousses,
> >
> > Mauritius.
> >
> >
> > ​
> > *skype*:
> > ​ebenezer.graham
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> > 
> > www.pactmart.com | Freelancing made easy.
> >
> >
> > *“Talk is cheap, show me the code.” *- *Linus Torvalds*
> >
> >
> >
> > On 14 June 2018 at 21:56, Ebenezer Graham 
> > wrote:
> >
> > > Hi Courage,
> > >
> > > Thanks for the tip. I have checked the .m2 directory everything looks
> > fine
> > > to me: https://pastebin.com/dePWtcch
> > >
> > > This is the demo-server's gradle file : link
> > > <
> >
> https://github.com/ebenezergraham/fineract-cn-demo-server/blob/develop/build.gradle
> > >.
> > > Can you take a look and let me know if I have missed anything.
> > >
> > > version declaration in on line 53 and dependency declaration is on line
> > > 114.
> > >
> > > *Best Regards,*
> > >
> > > *Ebenezer Graham*
> > >
> > > *BSc (Hons) Computing*
> > >
> > >
> > > [image: EmailSignature.png]
> > >
> > > Beau Plan Business Park | West Building
> > >
> > > Pamplemousses |  Mauritius
> > >
> > >
> > > 
> > > 
> > > www.pactmart.com | Freelancing made easy.
> > > GitHub  | LinkedIn
> > >  | Twitter
> > >  | Facebook
> > >  | Website
> > > 
> > > ​
> > > *skype*:
> > > ​ebenezer.graham
> > > ​ | *Phone*:
> > > +230 5840 9206
> > >
> > >
> > > *“Practice isn’t the thing you do once you’re good. It’s the thing you
> do
> > > that makes you good.”*
> > > -*Malcolm Gladwell*
> > >
> > >
> > >
> > > On 14 June 2018 at 10:28, Courage Angeh 
> wrote:
> > >
> > >> Hi Victor
> > >>
> > >> You should check if the artefact is in the .m2 directory. If it is,
> > check
> > >> to make sure '0.1.0-BUILD-SNAPSHOT' is the version you specified in
> your
> > >> shared.gradle file.
> > >>
> > >> Thanks,
> > >> Courage
> > >>
> > >> On Wed, Jun 13, 2018 at 11:37 AM Ebenezer Graham <
> > >> egraha...@alustudent.com>
> > >> wrote:
> > >>
> > >> > Hello everyone,
> > >> >
> > >> > I have managed to get my VM up and running. A big thank you to
> Isaac,
> > >> > Yannick and Victor for the constant support.
> > >> >
> > >> > I am now incorporating the notification service into the demo-server
> > >> > however, I keep getting this error. https://pastebin.com/LW6CUwJ3
> > >> >
> > >> > NB: I have made a build of the notification microservice and
> > >> > publishToMavenLocal. I have also added the dependency to the
> > >> build.gradle
> > >> > file in the demo server.
> > >> >
> > >> > I believe this issue has to do with locating the notification
> > artefacts
> > >> in
> > >> > the .m2.
> > >> >
> > >> > *Best Regards,*
> > >> >
> > >> > *Ebenezer Graham*
> > >> >
> > >> > *BSc (Hons) Computing*
> > >> >
> > >> >
> > >> > [image: EmailSignature.png]
> > >> >
> > >> > Beau Plan Business Park | West Building
> > >> >
> > >> > Pamplemousses |  Mauritius
> > >> >
> > >> >
> > >> > 
> > >> > ​​ 
> > >> > www.pactmart.com | Freelancing made easy.
> > >> > GitHub  | LinkedIn
> > >> >  | Twitter
> > >> >  | Facebook
> > >> >  | Website
> > >> > 
> > >> > ​
> > >> > *skype*:
> > >> > ​ebenezer.graham
> > >> > ​ | *Phone*:
> > >> > +230 5840 9206
> > >> >
> > >> >
> > >> > *“Practice isn’t the thing you do once you’re good. It’s the thing
> you
> > >> do
> > >> > that makes you good.”*
> > >> > -*Malcolm Gladwell*
> > >> >
> > >> >
> > >> >
> > >> > On 6 June 2018 at 13:13, Awasum Yannick  wrote:
> > >> >
> > >> > > ​Hi Graham,
> > >> > >
> > >> > > Delete your /tmp/* directory. 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-14 Thread Courage Angeh
Hi Victor

You should check if the artefact is in the .m2 directory. If it is, check
to make sure '0.1.0-BUILD-SNAPSHOT' is the version you specified in your
shared.gradle file.

Thanks,
Courage

On Wed, Jun 13, 2018 at 11:37 AM Ebenezer Graham 
wrote:

> Hello everyone,
>
> I have managed to get my VM up and running. A big thank you to Isaac,
> Yannick and Victor for the constant support.
>
> I am now incorporating the notification service into the demo-server
> however, I keep getting this error. https://pastebin.com/LW6CUwJ3
>
> NB: I have made a build of the notification microservice and
> publishToMavenLocal. I have also added the dependency to the build.gradle
> file in the demo server.
>
> I believe this issue has to do with locating the notification artefacts in
> the .m2.
>
> *Best Regards,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> Beau Plan Business Park | West Building
>
> Pamplemousses |  Mauritius
>
>
> 
> ​​ 
> www.pactmart.com | Freelancing made easy.
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
>  | Website
> 
> ​
> *skype*:
> ​ebenezer.graham
> ​ | *Phone*:
> +230 5840 9206
>
>
> *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> that makes you good.”*
> -*Malcolm Gladwell*
>
>
>
> On 6 June 2018 at 13:13, Awasum Yannick  wrote:
>
> > ​Hi Graham,
> >
> > Delete your /tmp/* directory. Shutdown MySQL and Cassandra if you are not
> > using persistence.
> >
> > ​If you run with peristent=true, make sure to delete the seshat and
> > playground DBs in both MySQL and Cassandra before next run.
> >
> > Try to run the system without your changes. When that is successful you
> can
> > start your integration.
> >
> >
> > On Fri, Jun 1, 2018 at 1:17 PM, Ebenezer Graham <
> egraha...@alustudent.com>
> > wrote:
> >
> > > Hello Everyone,
> > >
> > > I have been studying my logs carefully and noticed this error occurring
> > > long before the failure message
> > >
> > > https://pastebin.com/9237iFaR
> > >
> > > Please let me know how I can resolve this.
> > >
> > > *Best Regards,*
> > >
> > > *Ebenezer Graham*
> > >
> > > *BSc (Hons) Computing*
> > >
> > >
> > > [image: EmailSignature.png]
> > >
> > > Beau Plan Business Park | West Building
> > >
> > > Pamplemousses |  Mauritius
> > >
> > >
> > > 
> > > ​​ 
> > > www.pactmart.com | Freelancing made easy.
> > > GitHub  | LinkedIn
> > >  | Twitter
> > >  | Facebook
> > >  | Website
> > > 
> > > ​
> > > *skype*:
> > > ​ebenezer.graham
> > > ​ | *Phone*:
> > > +230 5840 9206
> > >
> > >
> > > *“Practice isn’t the thing you do once you’re good. It’s the thing you
> do
> > > that makes you good.”*
> > > -*Malcolm Gladwell*
> > >
> > >
> > >
> > > On 31 May 2018 at 13:19, Ebenezer Graham 
> > wrote:
> > >
> > > > Hello Yannick,
> > > >
> > > > Thanks for your email. I will limit my scope for now and gradually
> make
> > > > progress with the entire scope.
> > > >
> > > > Thanks for the archive email. It was very insightful, I will focus on
> > the
> > > > customer and portfolio service for now and then we can include others
> > > > later.
> > > >
> > > > The target audience includes all MFI member (Customers and Staff).
> > > > However, the customers are my priority for now. I will focus on your
> > > > suggested events and code their logic for testing.
> > > >
> > > > I will share a set of use cases for the entire system and all MFI
> > members
> > > > so that we can eliminate and add some use cases for both customers
> and
> > > > staff.
> > > >
> > > > I have written minimum code for SMS and so I will further develop the
> > > > classes in this scope and ensure that I am processing live
> notification
> > > for
> > > > the SMS. Please note that I am working on the *increment- one branch*
> > of
> > > > the repository so checks that out when looking at the repository.
> > > >
> > > > I have set up another VM (C2L) on Scaleway following my mentor's and
> > > > Yannick's advise.
> > > >
> > > > In summary, it has 30GB RAM, 8 cores and running on Ubuntu 16.04 LTS.
> > > >
> > > > I have also installed, JDK 8, git, MySQL 5.7, Gradle 4.5, Maven
> 3.3.9,
> > > > Cassandra 3.11, the latest Nginx, Nodejs, and NPM
> > > >
> > > > NB: I am using the root account.
> > > >
> > > > After the installation, I used option A and got a Cassandra error. I
> > used
> > > > option B and managed to get the build to run for over 30 mins. but I
> > got
> > > > this error https://pastebin.com/0rVWCpgD
> > > >
> > > > I restarted the server and tried again 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-13 Thread Ebenezer Graham
Hello everyone,

I have managed to get my VM up and running. A big thank you to Isaac,
Yannick and Victor for the constant support.

I am now incorporating the notification service into the demo-server
however, I keep getting this error. https://pastebin.com/LW6CUwJ3

NB: I have made a build of the notification microservice and
publishToMavenLocal. I have also added the dependency to the build.gradle
file in the demo server.

I believe this issue has to do with locating the notification artefacts in
the .m2.

*Best Regards,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

Beau Plan Business Park | West Building

Pamplemousses |  Mauritius



​​ 
www.pactmart.com | Freelancing made easy.
GitHub  | LinkedIn
 | Twitter
 | Facebook
 | Website

​
*skype*:
​ebenezer.graham
​ | *Phone*:
+230 5840 9206


*“Practice isn’t the thing you do once you’re good. It’s the thing you do
that makes you good.”*
-*Malcolm Gladwell*



On 6 June 2018 at 13:13, Awasum Yannick  wrote:

> ​Hi Graham,
>
> Delete your /tmp/* directory. Shutdown MySQL and Cassandra if you are not
> using persistence.
>
> ​If you run with peristent=true, make sure to delete the seshat and
> playground DBs in both MySQL and Cassandra before next run.
>
> Try to run the system without your changes. When that is successful you can
> start your integration.
>
>
> On Fri, Jun 1, 2018 at 1:17 PM, Ebenezer Graham 
> wrote:
>
> > Hello Everyone,
> >
> > I have been studying my logs carefully and noticed this error occurring
> > long before the failure message
> >
> > https://pastebin.com/9237iFaR
> >
> > Please let me know how I can resolve this.
> >
> > *Best Regards,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > Beau Plan Business Park | West Building
> >
> > Pamplemousses |  Mauritius
> >
> >
> > 
> > ​​ 
> > www.pactmart.com | Freelancing made easy.
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> >  | Website
> > 
> > ​
> > *skype*:
> > ​ebenezer.graham
> > ​ | *Phone*:
> > +230 5840 9206
> >
> >
> > *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> > that makes you good.”*
> > -*Malcolm Gladwell*
> >
> >
> >
> > On 31 May 2018 at 13:19, Ebenezer Graham 
> wrote:
> >
> > > Hello Yannick,
> > >
> > > Thanks for your email. I will limit my scope for now and gradually make
> > > progress with the entire scope.
> > >
> > > Thanks for the archive email. It was very insightful, I will focus on
> the
> > > customer and portfolio service for now and then we can include others
> > > later.
> > >
> > > The target audience includes all MFI member (Customers and Staff).
> > > However, the customers are my priority for now. I will focus on your
> > > suggested events and code their logic for testing.
> > >
> > > I will share a set of use cases for the entire system and all MFI
> members
> > > so that we can eliminate and add some use cases for both customers and
> > > staff.
> > >
> > > I have written minimum code for SMS and so I will further develop the
> > > classes in this scope and ensure that I am processing live notification
> > for
> > > the SMS. Please note that I am working on the *increment- one branch*
> of
> > > the repository so checks that out when looking at the repository.
> > >
> > > I have set up another VM (C2L) on Scaleway following my mentor's and
> > > Yannick's advise.
> > >
> > > In summary, it has 30GB RAM, 8 cores and running on Ubuntu 16.04 LTS.
> > >
> > > I have also installed, JDK 8, git, MySQL 5.7, Gradle 4.5, Maven 3.3.9,
> > > Cassandra 3.11, the latest Nginx, Nodejs, and NPM
> > >
> > > NB: I am using the root account.
> > >
> > > After the installation, I used option A and got a Cassandra error. I
> used
> > > option B and managed to get the build to run for over 30 mins. but I
> got
> > > this error https://pastebin.com/0rVWCpgD
> > >
> > > I restarted the server and tried again with option B and got an error
> > with
> > > the Cassandra. After troubleshooting with nodetool status I got this
> > error:
> > >
> > > nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException:
> > > 'Connection refused (Connection refused)'.
> > >
> > > I followed this guide
> > >  > 127-0-0-17199-connection-refused-cassandra-solved/> to
> > > modify my Cassandra-env.sh and this allowed me to connect to the
> > > Cassandra after that. Please let me know if I should revert to the
> > original.
> > >
> > > 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-06-06 Thread Awasum Yannick
​Hi Graham,

Delete your /tmp/* directory. Shutdown MySQL and Cassandra if you are not
using persistence.

​If you run with peristent=true, make sure to delete the seshat and
playground DBs in both MySQL and Cassandra before next run.

Try to run the system without your changes. When that is successful you can
start your integration.


On Fri, Jun 1, 2018 at 1:17 PM, Ebenezer Graham 
wrote:

> Hello Everyone,
>
> I have been studying my logs carefully and noticed this error occurring
> long before the failure message
>
> https://pastebin.com/9237iFaR
>
> Please let me know how I can resolve this.
>
> *Best Regards,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> Beau Plan Business Park | West Building
>
> Pamplemousses |  Mauritius
>
>
> 
> ​​ 
> www.pactmart.com | Freelancing made easy.
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
>  | Website
> 
> ​
> *skype*:
> ​ebenezer.graham
> ​ | *Phone*:
> +230 5840 9206
>
>
> *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> that makes you good.”*
> -*Malcolm Gladwell*
>
>
>
> On 31 May 2018 at 13:19, Ebenezer Graham  wrote:
>
> > Hello Yannick,
> >
> > Thanks for your email. I will limit my scope for now and gradually make
> > progress with the entire scope.
> >
> > Thanks for the archive email. It was very insightful, I will focus on the
> > customer and portfolio service for now and then we can include others
> > later.
> >
> > The target audience includes all MFI member (Customers and Staff).
> > However, the customers are my priority for now. I will focus on your
> > suggested events and code their logic for testing.
> >
> > I will share a set of use cases for the entire system and all MFI members
> > so that we can eliminate and add some use cases for both customers and
> > staff.
> >
> > I have written minimum code for SMS and so I will further develop the
> > classes in this scope and ensure that I am processing live notification
> for
> > the SMS. Please note that I am working on the *increment- one branch* of
> > the repository so checks that out when looking at the repository.
> >
> > I have set up another VM (C2L) on Scaleway following my mentor's and
> > Yannick's advise.
> >
> > In summary, it has 30GB RAM, 8 cores and running on Ubuntu 16.04 LTS.
> >
> > I have also installed, JDK 8, git, MySQL 5.7, Gradle 4.5, Maven 3.3.9,
> > Cassandra 3.11, the latest Nginx, Nodejs, and NPM
> >
> > NB: I am using the root account.
> >
> > After the installation, I used option A and got a Cassandra error. I used
> > option B and managed to get the build to run for over 30 mins. but I got
> > this error https://pastebin.com/0rVWCpgD
> >
> > I restarted the server and tried again with option B and got an error
> with
> > the Cassandra. After troubleshooting with nodetool status I got this
> error:
> >
> > nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException:
> > 'Connection refused (Connection refused)'.
> >
> > I followed this guide
> >  127-0-0-17199-connection-refused-cassandra-solved/> to
> > modify my Cassandra-env.sh and this allowed me to connect to the
> > Cassandra after that. Please let me know if I should revert to the
> original.
> >
> > Currently, I have run the build several times and this is the error log I
> > am getting -  https://pastebin.com/YQnLVMFQ
> >  sa=D=hangouts=1527816499142000=AFQjCNF503CCHSobASiks1_
> RBMazyPT61Q>.
> > I think it has something to do with the identity service.
> >
> > Looking forward to your suggestions.
> >
> > *Best Regards,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > Beau Plan Business Park | West Building
> >
> > Pamplemousses |  Mauritius
> >
> >
> > 
> > ​​ 
> > www.pactmart.com | Freelancing made easy.
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> >  | Website
> > 
> > ​
> > *skype*:
> > ​ebenezer.graham
> > ​ | *Phone*:
> > +230 5840 9206
> >
> >
> > *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> > that makes you good.”*
> > -*Malcolm Gladwell*
> >
> >
> >
> > On 30 May 2018 at 14:16, Awasum Yannick  wrote:
> >
> >> Hello Graham,
> >>
> >> What is the target audience for your project? Are the SMSs being sent
> out
> >> to Customers or to Employees? I think we should serve the customer first
> >> as
> >> updating them on the state of their account is of 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-05-31 Thread Ebenezer Graham
Hello Yannick,

Thanks for your email. I will limit my scope for now and gradually make
progress with the entire scope.

Thanks for the archive email. It was very insightful, I will focus on the
customer and portfolio service for now and then we can include others
later.

The target audience includes all MFI member (Customers and Staff). However,
the customers are my priority for now. I will focus on your suggested
events and code their logic for testing.

I will share a set of use cases for the entire system and all MFI members
so that we can eliminate and add some use cases for both customers and
staff.

I have written minimum code for SMS and so I will further develop the
classes in this scope and ensure that I am processing live notification for
the SMS. Please note that I am working on the *increment- one branch* of
the repository so checks that out when looking at the repository.

I have set up another VM (C2L) on Scaleway following my mentor's and
Yannick's advise.

In summary, it has 30GB RAM, 8 cores and running on Ubuntu 16.04 LTS.

I have also installed, JDK 8, git, MySQL 5.7, Gradle 4.5, Maven 3.3.9,
Cassandra 3.11, the latest Nginx, Nodejs, and NPM

NB: I am using the root account.

After the installation, I used option A and got a Cassandra error. I used
option B and managed to get the build to run for over 30 mins. but I got
this error https://pastebin.com/0rVWCpgD

I restarted the server and tried again with option B and got an error with
the Cassandra. After troubleshooting with nodetool status I got this error:

nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException:
'Connection refused (Connection refused)'.

I followed this guide

to
modify my Cassandra-env.sh and this allowed me to connect to the
Cassandra after that. Please let me know if I should revert to the original.

Currently, I have run the build several times and this is the error log I
am getting -  https://pastebin.com/YQnLVMFQ
.
I think it has something to do with the identity service.

Looking forward to your suggestions.

*Best Regards,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

Beau Plan Business Park | West Building

Pamplemousses |  Mauritius



​​ 
www.pactmart.com | Freelancing made easy.
GitHub  | LinkedIn
 | Twitter
 | Facebook
 | Website

​
*skype*:
​ebenezer.graham
​ | *Phone*:
+230 5840 9206


*“Practice isn’t the thing you do once you’re good. It’s the thing you do
that makes you good.”*
-*Malcolm Gladwell*



On 30 May 2018 at 14:16, Awasum Yannick  wrote:

> Hello Graham,
>
> What is the target audience for your project? Are the SMSs being sent out
> to Customers or to Employees? I think we should serve the customer first as
> updating them on the state of their account is of highest priority to me.
> If to Customers, I see no need to do accounting listener except there is a
> use case I have not seen.
>
> I suggest you reduce the scope of project for this month(June) and do the
> following:
>
> 1.) Support SMS notifications only to show proof of concept. Once this is
> done, we will move to email notification. SMS is more ubiquitous in the
> developing world given we are doing financial inclusion and most of the
> customers are in our continent. Look around you, everyone has a GSM enabled
> phone. Larger addressable market for your project to make a major impact. I
> guess this is one of the reasons you got into open source as this was also
> my motivation...Max Impact.
>
> 2.) Support CreateCustomer, ActivateCustomer in the customer service.
> Support Loan Account Creation within the portfolio service along with Loan
> Disbursement and Loan Repayment. Also support Deposit(Checking, Savings and
> Share) account creation and their corresponding Cash in (Deposit), Cash out
> (Withdrawal) events and send out notifications using the customer's mobile
> number. No scheduling or retry for now. Assume the system is always up and
> test these happy cases. We will deal with failures in the next iteration.
>
> 3.) Forget about GCM for now, it makes no sense considering this when you
> have not even sent out one normal email or SMS to the a single customer.
> *Don't
> abstract what you don't fully understand. Premature Optimization is a
> disease. *We can handle this later when basic use cases have been
> completed. Dont think too much about performance at the moment except you
> have the experience, It will come with time. Else you will spend alot of
> time just wrapping your head around something beyond your scope. 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-05-27 Thread Ebenezer Graham
​​
Hello Yannick,

Thanks for your email. Yes, SMS and Emails will be sent out for events
occurring in the accounting microservice. The tentative events shortlisted
for consideration are  onCreateAccount, onChangeAccount, onCloseAccount,
 onLockAccount, onUnlockAccount, onReopenAccount, onDeleteAccount.

The scope of this project is to develop the notification microservice and
incorporate it into the demo-server. Secondly, develop an interface for the
notification service in the fims-web-app which will allow configuration of
the service i.e flexibility to select permitted notifications, the default
messages for each notification and the configurations for the Email and SMS
gateways. My milestone for this month is to accomplish the first scope and
successfully trigger at least one event from each microservice and
receive an Email or SMS on the other end.

Additional scope under discussion is the Google Cloud Messaging
notification integration for the mobile app. I have dug up some of the
previous emails on GCM and currently reading on what needs to be done.
Anyone who was involved in the GCM discussion should please forward some fo
the treads to me.

About the libraries, I am using spring boot's JavaMail library
 for emails and the Twilio SDK for
SMS. I have written minimum code for both and working on running my
demo-server to test them. For now, this is the libraries I have chosen to
work with.

About the services, the idea is to create both SMS and Email
functionalities in the same notification microservice. I have defined the
Email and SMS Sender classes and defined a Bean for the JavaMailSender to
connect to google's mail server. This will be fleshed out once I have
tested the notification service in the demo-server.

Also, I haven't been able to successfully login to see the structure of
Fineract CN. HIs has affected how the wireframe looks. I am actively
working on resolving this as I write this mail. My mentor has suggested a
way to resolve this issue and I have Victor helping me to fix my GCP as we
speak. So I will definitely have a successful build in a matter of days.

Once I have an idea of the look and feel I will incorporate the look into
the design. The UI comes later so the look and functionality will evolve as
we discuss it. All the same, the UI will typically have an interface to
configure the Email and SMS gateways for each MFI on the platform, a
section to define custom email/SMS templates and a section to enable and
select the frequency of notifications retries.

For now, the use case I am considering is instant notification via Email
and SMS given that the recipient has opted for both. I will work on
scheduled notification use cases when I have achieved my milestone for the
first month.

For the phases, the first is the notification services itself, secondly,
incorporate the service into the demo server, and then move on to the UI.
Finally, iterate through the previous phases. I am currently implementing
the first and second scope.

Phases of the notification service itself include creating JMS listeners
for each microservice, I am still coding the logic for each listener. I
believe this will happen throughout the lifetime of this project. Next is
the notification models, and the Sender classes.

PS: I am currently coding the notification models after the event
listeners. The basic idea was to create a notification object from each
event generated. It will then be queued and singleton Sender class will pop
the queue and forward them to the relevant recipients. Please share your
thoughts on the impact on performance and what to consider in other to
improve the efficiency of the system.

Also, I am currently thinking of the stage at which localization and
templating of the messages should be done for the emails. For now, I am
skewed towards what I have in the proposal.

* At your service*
*,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

Beau Plan Business Park | West Building

Pamplemousses |  Mauritius




www.pactmart.com | Freelancing made easy.
GitHub  | LinkedIn
 | Twitter
 | Facebook
 | Website

​
*skype*:
​ebenezer.graham
​ | *Phone*:
+230 5840 9206


*“Practice isn’t the thing you do once you’re good. It’s the thing you do
that makes you good.”*
-*Malcolm Gladwell*



On 27 May 2018 at 14:36, Awasum Yannick  wrote:

> Thanks you Graham,
>
> Are you going to be sending SMS or emails for accounting events??
>
> What's the scope and phases of the project? Will you do SMS and email
> within the same service? Which of them will you do first? Have you decided
> on an SMS or email library or provider?
>
> Have you ran fineract cn and seen the fims web app and the way 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-05-27 Thread Awasum Yannick
Thanks you Graham,

Are you going to be sending SMS or emails for accounting events??

What's the scope and phases of the project? Will you do SMS and email
within the same service? Which of them will you do first? Have you decided
on an SMS or email library or provider?

Have you ran fineract cn and seen the fims web app and the way the ui looks
so as to know how your wireframe will fit into it??

Please try to think about these and let's all discuss on this thread about
how the notification should look like. I also think we should start with
very simple uses cases and start with one service, SMS or email..then we
can incrementally add others.

What do you all think??

On Fri, May 18, 2018, 23:41 Ebenezer Graham 
wrote:

> I have updated the cwiki page
>  >
>
> *Best Regards,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> Beau Plan Business Park | West Building
>
> Pamplemousses |  Mauritius
>
>
> 
> ​​ 
> www.pactmart.com | Freelancing made easy.
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
>  | Website
> 
> ​
> *skype*:
> ​ebenezer.graham
> ​ | *Phone*:
> +230 5840 9206
>
>
> *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> that makes you good.”*
> -*Malcolm Gladwell*
>
>
>
> On 19 May 2018 at 01:47, Ebenezer Graham  wrote:
>
> > ​Sure I will do that.​
> >
> > *Best Regards,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > Beau Plan Business Park | West Building
> >
> > Pamplemousses |  Mauritius
> >
> >
> > 
> > ​​ 
> > www.pactmart.com | Freelancing made easy.
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> >  | Website
> > 
> > ​
> > *skype*:
> > ​ebenezer.graham
> > ​ | *Phone*:
> > +230 5840 9206
> >
> >
> > *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> > that makes you good.”*
> > -*Malcolm Gladwell*
> >
> >
> >
> > On 19 May 2018 at 01:28, Awasum Yannick  wrote:
> >
> >> Hello Graham,
> >>
> >> Please paste the contents of that document into your confluence page. I
> >> think here is the wiki you have been using:
> >>
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=75975771
> >>
> >> For Fineract, Proposals and designs are documented on Confluence not
> >> Google
> >> Docs. That way there is more transparency and accessibility. Good thing
> is
> >> that Confluence is version controlled.
> >>
> >>
> >> Thanks.
> >> Awasum
> >>
> >> On Fri, May 18, 2018 at 9:41 PM, Ebenezer Graham <
> >> egraha...@alustudent.com>
> >> wrote:
> >>
> >> > Hi everyone,
> >> >
> >> > I am Ebenezer a student from the African Leadership University and I
> >> will
> >> > be working on this project under the mentorship of Isaac Kamga.
> >> >
> >> > The idea is to use this thread to discuss the decisions being made on
> >> this
> >> > project so that the community has visibility on what's happening and
> >> most
> >> > importantly give constructive feedback.
> >> >
> >> > *EventListeners:*
> >> > This is the Doc
> >> >  >> > 0lbX-CrBH4js7o/edit?usp=sharing>
> >> > containing the shortlisted events which I believe qualify for an Email
> >> or
> >> > SMS notification. Please review and comment on the doc suggesting any
> >> > addition or deletion or related feedback.
> >> >
> >> > *UI for the service:*
> >> > This is a link  to the
> >> > wireframes for the UI of the service. Please give pointers on what
> >> could be
> >> > added and what should be taken out.
> >> >
> >> >
> >> > *​At your service*
> >> > *,*
> >> >
> >> > *Ebenezer Graham*
> >> >
> >> > *BSc (Hons) Computing*
> >> >
> >> >
> >> > [image: EmailSignature.png]
> >> >
> >> > Beau Plan Business Park | West Building
> >> >
> >> > Pamplemousses |  Mauritius
> >> >
> >> >
> >> > 
> >> > 
> >> > www.pactmart.com | Freelancing made easy.
> >> > GitHub  | LinkedIn
> >> >  | Twitter
> >> >  | Facebook
> >> >  | Website
> >> > 
> >> > ​
> >> > *skype*:
> >> > ​ebenezer.graham
> >> > ​ | *Phone*:
> >> > +230 5840 9206
> >> >
> >> >
> >> > *“Practice 

Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-05-18 Thread Ebenezer Graham
I have updated the cwiki page


*Best Regards,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

Beau Plan Business Park | West Building

Pamplemousses |  Mauritius



​​ 
www.pactmart.com | Freelancing made easy.
GitHub  | LinkedIn
 | Twitter
 | Facebook
 | Website

​
*skype*:
​ebenezer.graham
​ | *Phone*:
+230 5840 9206


*“Practice isn’t the thing you do once you’re good. It’s the thing you do
that makes you good.”*
-*Malcolm Gladwell*



On 19 May 2018 at 01:47, Ebenezer Graham  wrote:

> ​Sure I will do that.​
>
> *Best Regards,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> Beau Plan Business Park | West Building
>
> Pamplemousses |  Mauritius
>
>
> 
> ​​ 
> www.pactmart.com | Freelancing made easy.
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
>  | Website
> 
> ​
> *skype*:
> ​ebenezer.graham
> ​ | *Phone*:
> +230 5840 9206
>
>
> *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> that makes you good.”*
> -*Malcolm Gladwell*
>
>
>
> On 19 May 2018 at 01:28, Awasum Yannick  wrote:
>
>> Hello Graham,
>>
>> Please paste the contents of that document into your confluence page. I
>> think here is the wiki you have been using:
>> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=75975771
>>
>> For Fineract, Proposals and designs are documented on Confluence not
>> Google
>> Docs. That way there is more transparency and accessibility. Good thing is
>> that Confluence is version controlled.
>>
>>
>> Thanks.
>> Awasum
>>
>> On Fri, May 18, 2018 at 9:41 PM, Ebenezer Graham <
>> egraha...@alustudent.com>
>> wrote:
>>
>> > Hi everyone,
>> >
>> > I am Ebenezer a student from the African Leadership University and I
>> will
>> > be working on this project under the mentorship of Isaac Kamga.
>> >
>> > The idea is to use this thread to discuss the decisions being made on
>> this
>> > project so that the community has visibility on what's happening and
>> most
>> > importantly give constructive feedback.
>> >
>> > *EventListeners:*
>> > This is the Doc
>> > > > 0lbX-CrBH4js7o/edit?usp=sharing>
>> > containing the shortlisted events which I believe qualify for an Email
>> or
>> > SMS notification. Please review and comment on the doc suggesting any
>> > addition or deletion or related feedback.
>> >
>> > *UI for the service:*
>> > This is a link  to the
>> > wireframes for the UI of the service. Please give pointers on what
>> could be
>> > added and what should be taken out.
>> >
>> >
>> > *​At your service*
>> > *,*
>> >
>> > *Ebenezer Graham*
>> >
>> > *BSc (Hons) Computing*
>> >
>> >
>> > [image: EmailSignature.png]
>> >
>> > Beau Plan Business Park | West Building
>> >
>> > Pamplemousses |  Mauritius
>> >
>> >
>> > 
>> > 
>> > www.pactmart.com | Freelancing made easy.
>> > GitHub  | LinkedIn
>> >  | Twitter
>> >  | Facebook
>> >  | Website
>> > 
>> > ​
>> > *skype*:
>> > ​ebenezer.graham
>> > ​ | *Phone*:
>> > +230 5840 9206
>> >
>> >
>> > *“Practice isn’t the thing you do once you’re good. It’s the thing you
>> do
>> > that makes you good.”*
>> > -*Malcolm Gladwell*
>> >
>>
>
>


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-05-18 Thread Ebenezer Graham
​Sure I will do that.​

*Best Regards,*

*Ebenezer Graham*

*BSc (Hons) Computing*


[image: EmailSignature.png]

Beau Plan Business Park | West Building

Pamplemousses |  Mauritius



​​ 
www.pactmart.com | Freelancing made easy.
GitHub  | LinkedIn
 | Twitter
 | Facebook
 | Website

​
*skype*:
​ebenezer.graham
​ | *Phone*:
+230 5840 9206


*“Practice isn’t the thing you do once you’re good. It’s the thing you do
that makes you good.”*
-*Malcolm Gladwell*



On 19 May 2018 at 01:28, Awasum Yannick  wrote:

> Hello Graham,
>
> Please paste the contents of that document into your confluence page. I
> think here is the wiki you have been using:
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=75975771
>
> For Fineract, Proposals and designs are documented on Confluence not Google
> Docs. That way there is more transparency and accessibility. Good thing is
> that Confluence is version controlled.
>
>
> Thanks.
> Awasum
>
> On Fri, May 18, 2018 at 9:41 PM, Ebenezer Graham  >
> wrote:
>
> > Hi everyone,
> >
> > I am Ebenezer a student from the African Leadership University and I will
> > be working on this project under the mentorship of Isaac Kamga.
> >
> > The idea is to use this thread to discuss the decisions being made on
> this
> > project so that the community has visibility on what's happening and most
> > importantly give constructive feedback.
> >
> > *EventListeners:*
> > This is the Doc
> >  > 0lbX-CrBH4js7o/edit?usp=sharing>
> > containing the shortlisted events which I believe qualify for an Email or
> > SMS notification. Please review and comment on the doc suggesting any
> > addition or deletion or related feedback.
> >
> > *UI for the service:*
> > This is a link  to the
> > wireframes for the UI of the service. Please give pointers on what could
> be
> > added and what should be taken out.
> >
> >
> > *​At your service*
> > *,*
> >
> > *Ebenezer Graham*
> >
> > *BSc (Hons) Computing*
> >
> >
> > [image: EmailSignature.png]
> >
> > Beau Plan Business Park | West Building
> >
> > Pamplemousses |  Mauritius
> >
> >
> > 
> > 
> > www.pactmart.com | Freelancing made easy.
> > GitHub  | LinkedIn
> >  | Twitter
> >  | Facebook
> >  | Website
> > 
> > ​
> > *skype*:
> > ​ebenezer.graham
> > ​ | *Phone*:
> > +230 5840 9206
> >
> >
> > *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> > that makes you good.”*
> > -*Malcolm Gladwell*
> >
>


Re: [Discussion] Fineract CN SMS & Email Notifications Project

2018-05-18 Thread Awasum Yannick
Hello Graham,

Please paste the contents of that document into your confluence page. I
think here is the wiki you have been using:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=75975771

For Fineract, Proposals and designs are documented on Confluence not Google
Docs. That way there is more transparency and accessibility. Good thing is
that Confluence is version controlled.


Thanks.
Awasum

On Fri, May 18, 2018 at 9:41 PM, Ebenezer Graham 
wrote:

> Hi everyone,
>
> I am Ebenezer a student from the African Leadership University and I will
> be working on this project under the mentorship of Isaac Kamga.
>
> The idea is to use this thread to discuss the decisions being made on this
> project so that the community has visibility on what's happening and most
> importantly give constructive feedback.
>
> *EventListeners:*
> This is the Doc
>  0lbX-CrBH4js7o/edit?usp=sharing>
> containing the shortlisted events which I believe qualify for an Email or
> SMS notification. Please review and comment on the doc suggesting any
> addition or deletion or related feedback.
>
> *UI for the service:*
> This is a link  to the
> wireframes for the UI of the service. Please give pointers on what could be
> added and what should be taken out.
>
>
> *​At your service*
> *,*
>
> *Ebenezer Graham*
>
> *BSc (Hons) Computing*
>
>
> [image: EmailSignature.png]
>
> Beau Plan Business Park | West Building
>
> Pamplemousses |  Mauritius
>
>
> 
> 
> www.pactmart.com | Freelancing made easy.
> GitHub  | LinkedIn
>  | Twitter
>  | Facebook
>  | Website
> 
> ​
> *skype*:
> ​ebenezer.graham
> ​ | *Phone*:
> +230 5840 9206
>
>
> *“Practice isn’t the thing you do once you’re good. It’s the thing you do
> that makes you good.”*
> -*Malcolm Gladwell*
>