A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
4 grammar corrections, capitalization
source | link

Can i UseI use DD4T Framework on a C# based Windows Serviceservice?

We have a Windows Serviceservice running on CD Server, which is scheduled to run daily. This service basically does some Databasedatabase interaction and send details in Emailemail to registered Usersusers.

Earlier MailAn earlier mail template was created in Tridion and published on the File Systemfile system, this service they were using that template to send emails.  (Template PathThe template path was configured in Service Configurationa service configuration file.)

Now, as we have moved to DD4T, Mailthe mail template will be published as JSON in Broker,the Broker; as we dintdidn't change windowsthe Windows service logic so, our windowsWindows service is still neededneeds that Templatetemplate file available in CD Server. For temporaryTo make it work temporarily we deployed Email Templatethe email template file on CD Server. (So now the Email template is no morenot coming from Tridion itsanymore; it's a file which is already deployed in the server.)

But, Nownow as we have time, we decided to fetch Email Templatethe email template from Brokerthe broker in my Windows Serviceservice. So that isit should come to formfrom Tridion only. I can see Two waytwo ways to do this.:

  1. Add the Tridion Dll'sDLLs to the Windows Service, Createcreate a class for the mail template, make a broker query to retrieve Page Datathe page data as JSON, then parse it to the newly created Email Classemail class.

  2. Add the DD4T DLL'sDLLs, create a class for the mail template, use the DD4T Framework to Fetchfetch JSON from the Broker, and parse it to the newly created Email Classemail class.

My First Questionfirst question is in both the approaches, somehow I have to create the view which will use this model, but I am not sure if this is really possible to use HTML with a model in a Windows service.

The second Questionquestion is: can I use DD4T on a Windows Serviceservice (I believe I need a controller to initialize DD4T Objectsobjects like page factory and all), so is it possible to use the DD4T Framework on Windows Serviceservice, or I should go with my first approach that is making a broker query?

If I can't make it a view in windowsWindows service then I am thinking to publish Html Templatean HTML template (With Htmlwith HTML using DWT as it was earlier) to the Broker, then I can use this HTML in my Windows Serviceservice using abovethe first or second approach above.

Can i Use DD4T Framework on C# based Windows Service?

We have a Windows Service running on CD Server, which is scheduled to run daily. This service basically does some Database interaction and send details in Email to registered Users.

Earlier Mail template was created in Tridion and published on the File System, this service they were using that template to send emails.(Template Path configured in Service Configuration file)

Now, as we have moved to DD4T, Mail template will be published as JSON in Broker, as we dint change windows service logic so our windows service is still needed that Template file available in CD Server. For temporary make it work we deployed Email Template file on CD Server. (So now Email template is no more coming from Tridion its a file which is already deployed in the server)

But, Now as we have time, we decided to fetch Email Template from Broker in my Windows Service. So that is should come to form Tridion only. I can see Two way to do this.

  1. Add the Tridion Dll's to Windows Service, Create a class for mail template, make a broker query to retrieve Page Data as JSON then parse it to the newly created Email Class.

  2. Add the DD4T DLL's, create a class for mail template, use DD4T Framework to Fetch JSON from Broker, and parse it to the newly created Email Class

My First Question is in both the approaches, somehow I have to create the view which will use this model, but I am not sure if this is really possible to use HTML with a model in Windows service.

The second Question is can I use DD4T on Windows Service (I believe I need a controller to initialize DD4T Objects like page factory and all), so is it possible to use DD4T Framework on Windows Service, or I should go with my first approach that is making a broker query?

If I can't make it a view in windows service then I am thinking to publish Html Template (With Html using DWT as it was earlier) to Broker then I can use this HTML in my Windows Service using above first or second approach.

Can I use DD4T Framework on a C# based Windows service?

We have a Windows service running on CD Server, which is scheduled to run daily. This service basically does some database interaction and send details in email to registered users.

An earlier mail template was created in Tridion and published on the file system, this service they were using that template to send emails.  (The template path was configured in a service configuration file.)

Now, as we have moved to DD4T, the mail template will be published as JSON in the Broker; as we didn't change the Windows service logic, our Windows service still needs that template file available in CD Server. To make it work temporarily we deployed the email template file on CD Server. (So now the Email template is not coming from Tridion anymore; it's a file which is already deployed in the server.)

But, now as we have time, we decided to fetch the email template from the broker in my Windows service. So that it should come from Tridion only. I can see two ways to do this:

  1. Add the Tridion DLLs to the Windows Service, create a class for the mail template, make a broker query to retrieve the page data as JSON, then parse it to the newly created email class.

  2. Add the DD4T DLLs, create a class for the mail template, use the DD4T Framework to fetch JSON from the Broker, and parse it to the newly created email class.

My first question is in both approaches, somehow I have to create the view which will use this model, but I am not sure if this is really possible to use HTML with a model in a Windows service.

The second question is: can I use DD4T on a Windows service (I believe I need a controller to initialize DD4T objects like page factory and all), so is it possible to use the DD4T Framework on Windows service, or I should go with my first approach that is making a broker query?

If I can't make it a view in Windows service then I am thinking to publish an HTML template (with HTML using DWT as it was earlier) to the Broker, then I can use this HTML in my Windows service using the first or second approach above.

    Tweeted twitter.com/StackTridion/status/1059732118845247488
3 added 7 characters in body
source | link

We have a Windows Service running on CD Server  , which is scheduled to run daily. This service basically does some Database interaction and send details in Email to registered Users.

Earlier Mail template was created in Tridion and published on the File System, this service thenthey were using that template to send emails.(Template Path configutredconfigured in Service Configuration file)

Now, as we have moved to DD4T  ,Mail Mail template will be published as JsonJSON in Broker, as we dint change windows service logic so our windows service is still needsneeded that Template file available in CD Server. For temperorytemporary make it work we deployed Email Template file on CD Server. (So now Email template is no more coming from Tridion its a file which is already deployed in the server)

But, Now as we have time, we decided to fetch Email Template from Broker in my Windows Service. So that is should come to form Tridion only. I can see Two way to do this.

  1. Add the Tridion Dll's to Windows Service  , Create a class for mail template  , make a broker query to retrieve Page Data as jsonJSON then parse it to the newly created Email Class.

  2. Add the DD4T Dll's DLL's, create a class for mail template, use DD4T Framework to Fetch JsonJSON from Broker, and parse it to the newly created Email Class

My First Question is in both the approaches, somehow iI have to create the view which will use this model, but iI am not sure if this is really possible to use htmlHTML with a model in Windows service  .

SecondThe second Question is can iI use DD4T on windowsWindows Service (I believe iI need a controller to initialize DD4T Objects like page factory and all)  , so is it possible to use DD4T Framework on Windows Service, or iI should go with my frstfirst approach that is makemaking a broker query  ?

If i cantI can't make it a view in windows service then iI am thinking to publish Html Template (With Html using DWtDWT as it was earlier) to Broker then iI can use this htmlHTML in my Windows Service using abouveabove first or second approach.

We have a Windows Service running on CD Server  , which is scheduled to run daily. This service basically does some Database interaction and send details in Email to registered Users.

Earlier Mail template was created in Tridion and published on the File System, this service then were using that template to send emails.(Template Path configutred in Service Configuration file)

Now, as we have moved to DD4T  ,Mail template will be published as Json in Broker, as we dint change windows service logic so our windows service is still needs that Template file available in CD Server. For temperory make it work we deployed Email Template file on CD Server. (So now Email template is no more coming from Tridion its a file which is already deployed in server)

But, Now as we have time, we decided to fetch Email Template from Broker in my Windows Service. So that is should come form Tridion only. I can see Two way to do this.

  1. Add the Tridion Dll's to Windows Service  , Create a class for mail template  , make a broker query to retrieve Page Data as json then parse it to the newly created Email Class.

  2. Add the DD4T Dll's , create a class for mail template, use DD4T Framework to Fetch Json from Broker, and parse it to the newly created Email Class

My First Question is in both the approaches, somehow i have to create the view which will use this model, but i am not sure if this is really possible to use html with a model in Windows service  .

Second Question is can i use DD4T on windows Service (I believe i need a controller to initialize DD4T Objects like page factory and all)  , so is it possible to use DD4T Framework on Windows Service, or i should go with my frst approach that is make a broker query  ?

If i cant make it a view in windows service then i am thinking to publish Html Template (With Html using DWt as it was earlier) to Broker then i can use this html in my Windows Service using abouve first or second approach.

We have a Windows Service running on CD Server, which is scheduled to run daily. This service basically does some Database interaction and send details in Email to registered Users.

Earlier Mail template was created in Tridion and published on the File System, this service they were using that template to send emails.(Template Path configured in Service Configuration file)

Now, as we have moved to DD4T, Mail template will be published as JSON in Broker, as we dint change windows service logic so our windows service is still needed that Template file available in CD Server. For temporary make it work we deployed Email Template file on CD Server. (So now Email template is no more coming from Tridion its a file which is already deployed in the server)

But, Now as we have time, we decided to fetch Email Template from Broker in my Windows Service. So that is should come to form Tridion only. I can see Two way to do this.

  1. Add the Tridion Dll's to Windows Service, Create a class for mail template, make a broker query to retrieve Page Data as JSON then parse it to the newly created Email Class.

  2. Add the DD4T DLL's, create a class for mail template, use DD4T Framework to Fetch JSON from Broker, and parse it to the newly created Email Class

My First Question is in both the approaches, somehow I have to create the view which will use this model, but I am not sure if this is really possible to use HTML with a model in Windows service.

The second Question is can I use DD4T on Windows Service (I believe I need a controller to initialize DD4T Objects like page factory and all), so is it possible to use DD4T Framework on Windows Service, or I should go with my first approach that is making a broker query?

If I can't make it a view in windows service then I am thinking to publish Html Template (With Html using DWT as it was earlier) to Broker then I can use this HTML in my Windows Service using above first or second approach.

2 added 327 characters in body
source | link

We have a Windows Service running on CD Server , which is scheduled to run daily. This service basically does some Database interaction and send details in Email to registered Users.

Earlier Mail template was created in Tridion and published on the File System, this service then were using that template to send emails.(Template Path configutred in Service Configuration file)

Now, as we have moved to DD4T ,Mail template will be published as Json in Broker, as we dint change windows service logic so our windows service is still needs that Template file available in CD Server. For temperory make it work we deployed Email Template file on CD Server. (So now Email template is no more coming from Tridion its a file which is already deployed in server)

But, Now as we have time, we decided to fetch Email Template from Broker in my Windows Service. So that is should come form Tridion only. I can see Two way to do this.

  1. Add the Tridion Dll's to Windows Service , Create a class for mail template , make a broker query to retrieve Page Data as json then parse it to the newly created Email Class. 

  2. Add the DD4T Dll's , create a class for mail template, use DD4T Framework to Fetch Json from Broker, and parse it to the newly created Email Class

NowMy First Question is in both the approaches, questionsomehow i have to create the view which will use this model, but i am not sure if this is really possible to use html with a model in Windows service .

Second Question is can i use DD4T on windows Service (I believe i need a controller to initialize DD4T Objects like page factory and all) , so is it possible to use DD4T Framework on Windows Service, or i should go with my frst approach that is make a broker query ?

Or do you think that there may beIf i cant make it a better wawyview in windows service then i am thinking to achieve thispublish Html Template ?(With Html using DWt as it was earlier) to Broker then i can use this html in my Windows Service using abouve first or second approach.

We have a Windows Service running on CD Server , which is scheduled to run daily. This service basically does some Database interaction and send details in Email to registered Users.

Earlier Mail template was created in Tridion and published on the File System, this service then were using that template to send emails.(Template Path configutred in Service Configuration file)

Now, as we have moved to DD4T ,Mail template will be published as Json in Broker, as we dint change windows service logic so our windows service is still needs that Template file available in CD Server. For temperory make it work we deployed Email Template file on CD Server. (So now Email template is no more coming from Tridion its a file which is already deployed in server)

But, Now as we have time, we decided to fetch Email Template from Broker in my Windows Service. So that is should come form Tridion only. I can see Two way to do this.

  1. Add the Tridion Dll's to Windows Service , Create a class for mail template , make a broker query to retrieve Page Data as json then parse it to the newly created Email Class.

  2. Add the DD4T Dll's , create a class for mail template, use DD4T Framework to Fetch Json from Broker, and parse it to the newly created Email Class

Now, question is can i use DD4T on windows Service (I believe i need a controller to initialize DD4T Objects like page factory and all) , so is it possible to use DD4T Framework on Windows Service, or i should go with my frst approach that is make a broker query ?

Or do you think that there may be a better wawy to achieve this ?

We have a Windows Service running on CD Server , which is scheduled to run daily. This service basically does some Database interaction and send details in Email to registered Users.

Earlier Mail template was created in Tridion and published on the File System, this service then were using that template to send emails.(Template Path configutred in Service Configuration file)

Now, as we have moved to DD4T ,Mail template will be published as Json in Broker, as we dint change windows service logic so our windows service is still needs that Template file available in CD Server. For temperory make it work we deployed Email Template file on CD Server. (So now Email template is no more coming from Tridion its a file which is already deployed in server)

But, Now as we have time, we decided to fetch Email Template from Broker in my Windows Service. So that is should come form Tridion only. I can see Two way to do this.

  1. Add the Tridion Dll's to Windows Service , Create a class for mail template , make a broker query to retrieve Page Data as json then parse it to the newly created Email Class. 

  2. Add the DD4T Dll's , create a class for mail template, use DD4T Framework to Fetch Json from Broker, and parse it to the newly created Email Class

My First Question is in both the approaches, somehow i have to create the view which will use this model, but i am not sure if this is really possible to use html with a model in Windows service .

Second Question is can i use DD4T on windows Service (I believe i need a controller to initialize DD4T Objects like page factory and all) , so is it possible to use DD4T Framework on Windows Service, or i should go with my frst approach that is make a broker query ?

If i cant make it a view in windows service then i am thinking to publish Html Template (With Html using DWt as it was earlier) to Broker then i can use this html in my Windows Service using abouve first or second approach.

1
source | link