Ask questions and see you at March, 7th at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
- Java EE 8 News
Ask questions and see you at March, 7th at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
Hello Adam,
I want to ask you about concurrency and stateless session beans.
As you mentioned earlier (in 2010 year :) ) in post - http://www.adam-bien.com/roller/abien/entry/do_we_need_stateless_session
With pools you can throttle the concurrency, because most (all I know) application servers allow you the configuration of max number of instances. You can control the concurrency of every bean type (Boundary) in a fine grained way. This is important for the avoidance of DoS attacks and dealing with legacy resources.
But few days ago i found that glassfish / payara can't provide this behavior, issue was created payara/Payara#646
Lets consider following case - let's assume that application communicate with billing platform, but billing have some limitations - number of concurrent requests (5 for instance).
So, how we can control the number of concurrently executed threads on Billing Business Delegate Bean?
Is there another one way to solve this issue in Java EE way?
In my opinion will be great if payara will be able to provide this behavior.
Thank you.
Hi Adam,
I'd like your advice for building a webapp (using jee of course ;-) ) that must support a plugin mechanism.
The plugin system should be able to hook into both the application business code (via well defined API of course) but also it should participate & integrate the rendered frontend (HTML5 using MVC JSR-371).
Do you think:
Instance
are then good candidates for hooks.Thank you for your hints.
Matthieu
Hi Adam,
I hope it's not to greedy if I ask two questions:
Many thanks in advance,
Mirko
In latest talk about removing bloat with Java EE in Brazil it was mentioned
By not using DAOs and having Fat Entities, the code was more lean, concise, understandible, and the objects had more accountability. We were able to use inheritance and interceptors to give entities the CRUD usability they required
Could you explain that? Would this just duplicate all of your entities? And how are interceptors used to give the entities the CRUD operability?
What is the best approach to generate demo scenarios?
Demos are there to showcase the product to clients. Would you just use something like Java EE 7 Batch processing for that? Most of the time our current operation involves creating a scenario by hand with several thousands of entities being created with context and temporal sensitive generation.
Hi Adam,
1.I wan to know in an EAR (WAR + JAR) can I use in that JAR the CDI features? currently I could not achieve this even if I add the beans.xml in META-INF
2.Now in 2016 developing portlets is considered "in" or should we go with JavaScript Frameworks + WebServices (JavaEE)?
HI Adam
I have gone through nice article about Wildfly Datasource .http://www.adam-bien.com/roller/abien/entry/installing_oracle_jdbc_driver_on
Any idea on setting up with
oracle.ucp.jdbc.PoolDataSource ?
on tomcat we setup context.xml with
<Resource
name="jdbc/SOME"
auth="Container"
factory="oracle.ucp.jdbc.PoolDataSourceImpl"
type="oracle.ucp.jdbc.PoolDataSource"
connectionFactoryClassName="oracle.jdbc.pool.OracleDataSource"
maxPoolSize="25"
minPoolSize="2"
initialPoolSize="2"
driverClassName="oracle.jdbc.OracleDriver"
connectionPoolName="SOMENAME"
user="8888"
password="8888"
url="jdbc:oracle:thin:@URL"
sqlForValidateConnection="select 2 from DUAL"
validateConnectionOnBorrow="true"
/>
Hello Adam,
Let's say we have a custom annotation @Myannotation(10) and we want in a JavaEE project to be able to change the value "10" in runtime. Is there a lean way to do this?
For example we have the following
@Myannotation(10) public void doSomethingNice() { }
, and the value 10 is stored in a database. A rest resource is responsible to take this value and apply it to the annotation.
Hello Adam,
A SOA goal is service composition for reusability. In real world SOA practice what is the best strategy to manage
common data that is sharing by many modules in a big enterprise application using service composition?
We have many modules (planning, accounting, etc) that use common data like Country, Region, Product, Division, etc. in a shared database and we developed a component (named Master Data Module) that expose (REST Webservices) that common master data in order to other modules use it to access common data.
SOA recommend service composition, I understand that if a service in the Accounting Module (ex. PaymentService) need common data,
this service has to do a request to the Master Data Module component to read this data, but that strategy has a increment in the response time if PaymentService need to request many common data.
What is the best strategy in a SOA implementation to apply service composition without bad response time or bad performance using service composition?
Hello Adam,
what is your opinion about when to use streams vs the old collections? Are there already some best practices on when to use which option?
Thanks for your opinion in advance,
Sebastian
Hi Adam,
The question about abstract classes and interfaces is never adequately answered in view of the BCE . If you have business components that have dependency how do you handle that ?. Can you please elaborate this in more detail .
Thanks,
Kenneth
Hi Adam,
Can I inject an EJB into a JAX-RS Interceptor and Filter? If so, how can I achieve this?
Thanks in advance,
Armando
Hey Adam,
I'm using payara , i try to make a SOAP Call(What a shame...) and i'm getting the following error
Severe: SAAJ0009: Message send failed
Severe: com.sun.xml.messaging.saaj.SOAPExceptionImpl: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:164)
I read few solutions but they didn't work.How to solve this ?
Thanks!
EDIT : I used this and it worked but i don't want to use this in production , which is the proper way to fix it?
Hi Adam,
JEE7 has a lot of features supporting container-based security, but there isn't much if you want to manage security directly in your application. Even such simple things as HTTP BASIC Auth must be implemented from scratch. Why is that? Am I missing something?
Hello Adam,
would be glad to here your anwsers and your opinion of following architectural questions:
Thanks in advance!
Hi Adam;
I would like to know how to handle session expiration in jsf application.