Publish Directly to Database

20 visualizzazioni
Passa al primo messaggio da leggere

Justin Schneck

da leggere,
26 mar 2013, 13:05:0526/03/13
a web...@googlegroups.com
I am using the SqlStateless provider for WebSync 4 and would like to know how to publish messages by inserting them directly into the database. Does anyone know how to go about this or if thee is a better way? I am running WebSync in an MVC 4 app in a separate app pool from the app I will be publishing data from. I didn't want to include the references to FM.WebSync because I feel that it would waste resources considering no websync clients would be connection to the app anyways.

Thanks

Jerod Venema

da leggere,
26 mar 2013, 13:35:5926/03/13
a web...@googlegroups.com
Hey Justin!

You shouldn't directly insert them, because if the API changes internally you'll be stuck :).

However, we've already accounted for this situation. Add the reference to WebSync in your project, but don't add a request handler in your config file. If WebSync doesn't see the entry in your config, it won't start up all the threads that communicate with the server to pick up messages for delivery, but will still let you publish via the API.

Best,

On Tue, Mar 26, 2013 at 1:05 PM, Justin Schneck <justin....@azzurgroup.com> wrote:
I am using the SqlStateless provider for WebSync 4 and would like to know how to publish messages by inserting them directly into the database. Does anyone know how to go about this or if thee is a better way? I am running WebSync in an MVC 4 app in a separate app pool from the app I will be publishing data from. I didn't want to include the references to FM.WebSync because I feel that it would waste resources considering no websync clients would be connection to the app anyways.

Thanks

--
You received this message because you are subscribed to the Google Groups "WebSync" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websync+u...@googlegroups.com.
To post to this group, send email to web...@googlegroups.com.
Visit this group at http://groups.google.com/group/websync?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/websync/-/s5GQpk1Th2wJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jerod Venema
Frozen Mountain Software
919-300-5141 (United States)
604-227-2453 (Canada)
888-379-6686 (Extension 101)

Justin Schneck

da leggere,
26 mar 2013, 14:22:1826/03/13
a web...@googlegroups.com
Thanks for the reply. I am getting a little further on things. Any reason why it would write an empty logfile out? Seems I am having trouble trying to figure out now why its not publishing. I am trying to catch it before publish deliver a message from the other app so in the MVC 4 app I put a breakpoint in a beforepublish event but it seems to never get called. Any advise?

thanks.

Jerod Venema

da leggere,
26 mar 2013, 14:36:4526/03/13
a web...@googlegroups.com
Empty logfile is the default. Set to debug if you want more info.

As for the other issue, make sure you're pointing to the right database, and debug logging will help there too.

To view this discussion on the web visit https://groups.google.com/d/msg/websync/-/C9PNzSPhNWEJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi