Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 23 13:51
    vellrya edited #2598
  • May 23 13:23
    vellrya opened #2598
  • May 23 10:01
    jknack labeled #2594
  • May 23 10:01
    jknack labeled #2594
  • May 23 10:01
    jknack commented #2594
  • May 23 07:18
    walkman90 commented #2594
  • May 23 00:45
    jknack milestoned #2596
  • May 23 00:45
    jknack milestoned #2594
  • May 23 00:45
    jknack labeled #2596
  • May 23 00:45
    jknack labeled #2596
  • May 23 00:45
    jknack labeled #2596
  • May 23 00:44
    jknack closed #2596
  • May 23 00:44
    jknack commented #2596
  • May 23 00:38
    dependabot[bot] labeled #2597
  • May 23 00:38
    dependabot[bot] labeled #2597
  • May 23 00:38
    dependabot[bot] opened #2597
  • May 23 00:38

    dependabot[bot] on maven

    build(deps): bump nexus-staging… (compare)

  • May 23 00:20
    jknack edited #2596
  • May 23 00:16
    jknack opened #2596
  • May 23 00:13
    dependabot[bot] labeled #2595
Mészáros István
@imeszaros
@JohannesBeranek No for 2.x as far as i know.
@jknack i discovered a problem with Netty 4.1.52 and SSL. The cause is not yet identified. I created an issue here: netty/netty#10720 I'll make a PR if something has to be done on our side.
Edgar Espina
@jknack
@snowyukischnee no support for http 2 yet
@JohannesBeranek there is an integration module for node: https://jooby.io/modules/node (we moved away from any custom done in Java)
@imeszaros Odd, let me know how it goes
Mészáros István
@imeszaros
@jknack TL;DR: had to upgrade to newer openjdk because older releases (we used 11.0.2) had problems with TLS 1.3 which was enabled by default since Netty 4.1.52
Edgar Espina
@jknack
do you know how to enable TLS1.2 or 1.3 in netty?
Mészáros István
@imeszaros
I made a copy of io.jooby.netty.Netty to be able to specify a list of protocols to the constructor of io.netty.handler.ssl.JdkSslContext where I excluded TLS 1.3
Edgar Espina
@jknack
I would like to move https to his own module
and probably add more options like setting TLS version
that will give us: jooby-{server}-https
all these integrated with ServiceLoader API
same for http2
Mészáros István
@imeszaros
good idea, especially the ability to be able to configure the protocol
what happens if someone configures jooby to use https but uses a server for http only?
Edgar Espina
@jknack
don’t follow
Mészáros István
@imeszaros
if I understood there would jooby-netty and jooby-netty-https in the future?
Edgar Espina
@jknack
yea
Mészáros István
@imeszaros
then what happens if I would like to turn https on in the conf file but have no '-https' on classpath?
Edgar Espina
@jknack
nothing or error
if user add the dependency we should configure https
have a look at this discussion: jooby-project/jooby#2074
Mészáros István
@imeszaros
okay
Edgar Espina
@jknack
is like the conf file will be irrelevant
Mészáros István
@imeszaros
and for http2 .. would that be also an implementation provider for io.jooby.Server
because then what if someone wants both https and http2?
Edgar Espina
@jknack
should be a pluggable system
no custom Server implementation
Mészáros István
@imeszaros
cool
that makes it clear
let me know if I can assist at any point
Edgar Espina
@jknack
cool
Edgar Espina
@jknack
Nguyen Huu Tuan
@snowyukischnee
hi, how can i using jooby hibernate with multiple datasource?
Edgar Espina
@jknack
multiple hibernate instances?
{
   install(new HibernateModule(“db.first"));
   install(new HibernateModule(“db.second"));
}
The keys db.first and db.second must be configuration prooperties
then you can request or inject one or the other by:
require(EntityManager.class, “db.first”);
or inject:
@Inject
public MyRepo(@Named(“db.first”) EntityManager em)
Edgar Espina
@jknack
@reddierocket https://github.com/jooby-project/jooby/pull/2078/files will be available in next release
Nguyen Huu Tuan
@snowyukischnee
@jknack i've done configure hibernate with multiple datasources.
however the @Inject seems not work when I inject EntityManager into mvc router
Edgar Espina
@jknack
what is the error?
Nguyen Huu Tuan
@snowyukischnee
it throws NPE
Nguyen Huu Tuan
@snowyukischnee
oh i forgot
Edgar Espina
@jknack
you need two
one for each datasourcce