Ask questions and see you at July, 6th 2015 at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
- Do you see JavaScript frameworks in your work yet? Do you see MVVM becoming popular? [Michael K.]
- You mentioned in an earlier video the BCE package structure. For business-cases, this is really straight forward and a good structure. But there are many concerns, which does not really fit in this structure (sort of cross-concern), and because of this I have the question: Where to put the following concerns/classes:
- ResourceLocator (für REST-SubResources) bzw. AbstractResources (for functionality, which every resource needs (like @Context definitions))
- DateUtil? / MailService?
- AbstractEntity
- ApplicationConfiguration/JaxRSConfig
- REST-Adapter/Interceptoren/Filter/Mapper
- Tracing mit LoggerExposer?
- ValidationController / Validation-Annotations (which do not belong to a concrete domain-object, but is rather used for any validation) [Ulrich C.]
-
Is it ok to use DTO in a REST-method for request/response-payload? I would argue, that the DTO for the REST-method would separate the domain from a technical interface (REST). In addition, there is the possibility to version the interface (DTO) independently from the domain objects. Furthermore, there are some properties, which needs to be send via REST-interface, which are not needed in the domain objects. [Ulrich C.]
-
I'm 21 years old , and i'm at 3rd year studying Computer Science. At the moment i'm creating some apps in Java and more specially in Android , i like the server side applications too. What i have seen so far is that Java is very powerful but we must always look at future. By that i mean C# with mono-project.com you can write the truly write once run everywhere that Java tried to offer. So i'm asking the Java guru if i should change to C# ? Also one more question , for next month's Q&A : How annotations are useful ? Explain few of them. Thanks in advance and sorry for your time. [Giorgos]
-
I have long been a fan of JDO and welcomed JPA. Using annotations it is very easy to persist objects. However, there are very few examples to be found about how to persist third-party objects (assuming said objects provide getters and setters that will not change). I am thinking that using a wrapper around the objects would be one way to go, but I would like to hear how you would approach this. An example would be great, too. [Eddy]
-
Which cdi annotations are available in jsp? I want to use conversationscoped to design wizard form. TY @8indaas
-
Where would you put interceptors ? By definition they are "cross-cutting". In the project I am currently doing I have the boundary, control and entity
packages for each business "component". Because of the cross-cutting nature of interceptors I created a fourth package currently named
"interceptors". I know ! That's technical like "ejb" and
"jsf" ! I thought about putting it in a control package. But the
control package of which business component ? Just choosing at random a
component seems contrary to the "cross-cutting" nature of
interceptors. It would also introduce unwanted dependencies at the component
level. Your insight on this would be much appreciated. Ronald
Hi Adam, could you please show how to Unit-test a boundary utilizing other @stateless and @Inject (CDI) objects? What exactly do i need to test it fastly without having Arquillian in place?A simple example would be very helpful.
regards Karsten