Don't use FileBasedMailboxType, it's deprecated and not something we
recommend doing (semantics wise).
Use Persistent Actors, they are documented here:
http://doc.akka.io/docs/akka/current/scala/persistence.html

On Tue, Mar 24, 2015 at 4:03 AM, Aditya Devisetty <[email protected]
> wrote:

> Hi,
>
> Using Persistent we can save the sate of an actor , but how to save the
> mailbox messages of a persistent actor.
>
>  I heard about *Durable Mailbox*. But this durable mailbox   of type
> *akka.actor.mailbox.filebased.FileBasedMailboxType* is not working with
> persistent actor. It is throwing below exception :
>
> Exception in thread "main" akka.ConfigurationException: configuration
> problem while creating [akka://example/user/persistentActor-4-java] with
> dispatcher [my-dispatcher] and mailbox [akka.actor.default-mailbox]
>     at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:722)
>     at akka.actor.dungeon.Children$class.makeChild(Children.scala:206)
>     at akka.actor.dungeon.Children$class.attachChild(Children.scala:41)
>     at akka.actor.ActorCell.attachChild(ActorCell.scala:369)
>     at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:553)
>     at
> sample.persistence.PersistentActorExample.main(PersistentActorExample.java:209)
> Caused by: java.lang.IllegalArgumentException: produced message queue type
> [interface akka.dispatch.MessageQueue] does not fulfill requirement for
> actor class [class sample.persistence.ExamplePersistentActor]
>     at akka.dispatch.Mailboxes.verifyRequirements$1(Mailboxes.scala:148)
>     at akka.dispatch.Mailboxes.getMailboxType(Mailboxes.scala:156)
>     at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:717)
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
Akka <http://akka.io/> @ Typesafe <http://typesafe.com/>

JOIN US. REGISTER TODAY! <http://event.scaladays.org/scaladays-sanfran-2015>
Scala <http://event.scaladays.org/scaladays-sanfran-2015>
Days <http://event.scaladays.org/scaladays-sanfran-2015>
March 16th-18th, <http://event.scaladays.org/scaladays-sanfran-2015>
San Francisco <http://event.scaladays.org/scaladays-sanfran-2015>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to