by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Bernhard Wick
    @wick-ed
    Hi there @jefkin
    I had a look at your rewrites
    looks good to me
    jefkin
    @jefkin
    Oh, good news, I will try it out later today and let you know if something seems amiss :)
    Bernhard Wick
    @wick-ed
    I only see an issue with the order of the conditions?
    Is it ok to discuss it here?
    jefkin
    @jefkin
    sure
    but we could take it to private to prevent clutter, unless you think it's better here
    Bernhard Wick
    @wick-ed
    I assume the first condition will always match, and the second one will never apply
    lets make it private
    jefkin
    @jefkin
    I have a logger question, my app defined a few logger entries in META-INF/context.xml the first was a servlet logger, and my servlet has been able to use it with a dependency injected -> protected $application; and a simple access function like: return $this->application->getLogger('servlet');
    This created my log file and I was able to happily log to it. So I wanted to do the same thing on the service side, specifically to seperate out soap logs from the rest of the logs so I added a soap logger to META-INF/context.xml. Now, I extend all my services from a copy of the Example App's AbstractProcessor class, and each service has an entry in META-INF/epd.xml for injecting the application interface .. I've used this application interface for system logging with $this->getInitialContext()->getSystemLogger()->info($text); and this worked fine, but to the system log. getInitialContext() is defined as: return $this->getApplication()->getInitialContext(); and getApplication() is defined as return $this->application; So I figured I could get to my configured 'soap' log with public function getSoapLogger() { return $this->getApplication()->getLogger('soap'); }
    SO then my AbcService has $this->getSoapLogger()->info($soap_request);
    However this generates the application error log entry
    [2019-05-27 21:27:48] - host.com (error): PHP Fatal Error: Call to a member function info() on null in /opt/appserver/var/tmp/localhost/mno/cache/Provider_Project_Services_AbcService.php on line 231 []
    Is there something I have to do to get the Service side Application to be aware of the Log files?
    Tim Wagner
    @wagnert
    @jefkin Hm, did you register the soapLogger int the context.xml file? If yes, please post the XML with the registration here :-)
    jefkin
    @jefkin
    ok here:

    <?xml version="1.0"?>

    <context xmlns="http://www.appserver.io/appserver" name="wssap" type="AppserverIo\Appserver\Application\Application">
    <loggers>
    <logger channelName="soap" name="Soap" type="\AppserverIo\Logger\Logger">
    <handlers>
    <handler type="\AppserverIo\Logger\Handlers\CustomFileHandler">
    <formatter type="\AppserverIo\Logger\Formatters\StandardFormatter"/>
    <params>
    <param name="logFile" type="string">var/log/${webapp.name}-soap.log</param>
    <param name="logLevel" type="string">info</param>
    </params>
    </handler>
    </handlers>
    </logger>
    <logger channelName="servlet" name="servlet" type="\AppserverIo\Logger\Logger">
    <handlers>
    <handler type="\AppserverIo\Logger\Handlers\CustomFileHandler">
    <formatter type="\AppserverIo\Logger\Formatters\StandardFormatter"/>
    <params>
    <param name="logFile" type="string">var/log/${webapp.name}-servlet.log</param>
    <param name="logLevel" type="string">info</param>
    </params>
    </handler>
    </handlers>
    </logger>
    </loggers>
    </context>

    note that I just coppied the lines for servlet that work to soap, if there was something more I was supposed to add, it eluded me.
    Oh I do see a difference, the name tag in soap is name="Soap", so should i be trying to get the loger by the channelName? or the name?
    Tim Wagner
    @wagnert
    Did you test to set the name from uppercase Soap to soap as you use soap to load the logger :-D
    I think it's the name :-)
    jefkin
    @jefkin
    trying that now ;)
    Tim Wagner
    @wagnert
    Yea, keep us updated :-)
    jefkin
    @jefkin
    shweeet! that was the ticket.
    so we load by name="" so 'Soap' in this case
    Tim Wagner
    @wagnert
    Perfect, like to hear that :-)
    jefkin
    @jefkin
    nice
    jefkin
    @jefkin
    I see that app.io 1.1.4 is still PHP 5, is there a pathway to upgrading to PHP 7? My team found this link: appserver-io/webserver#202 which hints it's possible, but it would be a very big boon if we had a known path to follow for this.
    Tim Wagner
    @wagnert
    Yes, it's still PHP 5.6 and we actually have no concrete plan for upgrading to PHP 7 as Joe Watkins is actually working on a new extension called parallel and he recommends to use it in a recent blog post when thinking about multithreading and PHP. We'll evaluating it during the next weeks regarding appserver.io requirements and how we can use it for our purposes ... so it'll take a while for sure to upgrade it to PHP 7
    Troy Rudolph
    @troy-rudolph

    Hello. At Alchemy Systems, we are looking for a message queuing/handling solution for our LAMPR-based applications. Appserver seems to fit our needs. Before we can introduce it into our stack, we need some additional information.

    1) It sounds like Appserver does not run on PHP 7. I do see some references to PHP 7 in the code, but the threads here indicate that Appserver still required PHP 5.6. Is that correct?
    2) We would like to find, if possible, some people to ask about the use of AppServer in high-volume production environments. Do any of you know of someone we can speak with?
    3) Roughly how many users (companies) are using Appserver?
    4) Is there a working example of using STOMP in an external application to post messages to the Appserver queues?
    5) Is there a product roadmap?
    6) When will the next release be?

    I know this is a long list, but we do need to "sell" this idea to our architecture team before proceeding.

    Thank you in advance for your help.

    Tim Wagner
    @wagnert

    Hi @troy-rudolph,

    I'm happy to see that you're interested in appserver.io. I'll answer your questions as follows:

    1. Yes, appserver.io only supports 5.6 actually (only the webserver itself should also run with PHP 7.2, last tested a year ago - https://hub.docker.com/r/appserver/webserver)
    2. We've some customers that run appserver.io in production like https://www.proffile.de/app/ or https://lab.report/app/#/account/login and both have some traffic but it's for sure not a high-volume production environment. Besides that, we're not really aware who is using appserver.io
    3. Not too much I think, although we've 10.000+ downloads on Github which doesn't mean anything
    4. No, we don't have a STOMP implementation, appserver.io comes with its own client implementation
    5. It's an Open Source project and we don't have a concrete roadmap. Actually, we're working on an internal project that is based on appserver.io and we plan to update it during the next year, but we don't have a concrete plan for that
    6. We release patch releases (actually only in form of Docker containers https://cloud.docker.com/u/appserver/repository/docker/appserver/dist) when we need an update for our own project, but within the next month there should also be updates on our Debian repositories as well as a Mac version (hopefully on Homebrew)

    I think this is not what you want to hear, but I hope it gives you a brief impression of what you're dealing with ;)

    Troy Rudolph
    @troy-rudolph
    Do you guys have a list of things that must be done to make the server run on PHP 7? If so, I might be able to do some of it for you in my spare time. Thanks.
    Tim Wagner
    @wagnert
    The problem is, that we‘llneed a replacement for pthreads 🙁 We‘re thinking of pht or something like this. We need to evaluate functionality before we can start refactoring for sure. So your help will be appreciated very much 🙂
    Thomas
    @alpham8
    Hi guys 👋
    @wagnert Why do you need an replacement for pthreds? It also works in PHP 7 and as usual, you have to compile it on your own. Maybe pecl support is given, but I'm not sure about this
    Tim Wagner
    @wagnert
    Hi @alpham8 Joe Watkins had stopped working on pthreads. As far as we know, it's not working on PHP 7.3+, so it doesn't make sense to count on a library that is definitely dead :( If you have any alternatives or know guys that keep working on pthreads, it'll be possible to stay with it :-)
    Thomas
    @alpham8

    @wagnert Indeed it works with PHP 7.4. But not for future versions of PHP because of the design as he said in his closing note issue: https://github.com/krakjoe/pthreads/issues/929#issue-410636734

    However, he is the project owner of "parallel" and he said that this is the future replacement of pthreads. But personally for me it doesn't feel like a replacement, because many functions and features of the C pthreads API are missing here

    @wagnert And sorry, I just looked closer now, before I didn't, so sorry about telling you the same story now as you did
    Tim Wagner
    @wagnert
    @alpham8 You're welcome :-) I didn't recognize, that it'll work with PHP 7.4, but I'll try it for sure, so let's see :) But besides this, it'll only make sense if there is someone out there, who takes care of future PHP versions and new functionality like those guy's from the PMMP project ... but they do not have an official statement that they'll take care of pthreads :-(
    Thomas
    @alpham8
    LOL a minecraft server using php. Isn't that unofficial minecraft server thing dead? I thougth Microsoft closed all
    Tim Wagner
    @wagnert
    It's funny for sure, but hopefully those guys take care, seems that they have a need for it, too :-)
    Thomas
    @alpham8
    Another question: Why is your website hosted by nginx?
    Tim Wagner
    @wagnert
    :-D As web agency, we've a department that automated such simple server setups and in general for Magento, Neos and all other stuff we do we use some kind of automated Nginx setup :-)
    Thomas
    @alpham8
    ok, good answer ^^
    Tim Wagner
    @wagnert
    We used appserver.io until before 2 weeks and it worked like a charm, but finally to make it easier, our dev ops department decided to use nginx as in all other projects :-)
    Thomas
    @alpham8
    Sounds interesting. What build pipeline or build / deploy tools do you use?
    Tim Wagner
    @wagnert
    Huh, I'm not part of the team, but in general we use GIT, Gitlab and Ansible in Combination with LXC containers, as far as I know :)