Allexicus Kernikus

Ranch Hand
+ Follow
since Oct 07, 2009
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Allexicus Kernikus

In a department meeting we had a discussion on changing our methods on addressing staging environments.

Up to now we generated a deployable for each staging environment (e.g. DEV, QA, PROD). From now on we want to generate one deployable and load the configuration file at runtime.

Is that the right way to go? Does it really bring along additional flexibility?

Also, a good how to/best practices guide would be very much appreciated.

Thanks in advance! - LX
Is there a good rule of thumb when to use an attribute and when to use an element?

What do you guys say?
5 years ago
I have a security issue to which I have yet to find a viable solution.

A JSF application asks the user for her credentials. These are stored in a cookie.

For some functionality a browser applet is used.

How should I access/pass the user credentials to the applet?

To be specific: the applet needs access to the username, not the password.

Many thanks in advance!

- Alex

5 years ago
I have inherited a legacy application that uses the java.util.logging.Logger.

The application itself runs in a Tomcat container.

The server administrators have complained that the log files are growing to be too large due to the fact, that also INFO level log entries are generated.

As much as I can see, there is no log configuration file.

Is there a way to configure the log level centrally, similar to that of Log4j? Is that setting part of the tomcat configuration, or must I create a new configuration file?

Many thanks in advance - Alex
5 years ago
I'm using JAX-WS to generate my WS-stubs from a WSDL (contract first approach).

The WSDL uses 'PlolicyReference' elements to enforce security. Everything works - the service is secure and only if I provide the necessary information, my WS is accessible.

My question is though, where is the security information of the policy generated to? In which generated java file can I find the required annotation? Somewhere something down the line of '@RolesAllowed' must be encoded.

Many thanks in advance for your help!!

- Alex
5 years ago
I'm deploying my application on a WebLogic server & was wondering, where log4j would log if the following line was not given in the log4j.xml file:

<!-- <param name="File" value="/apps/ci/oramw12c/user_projects/domains/DEV_KERNA4/servers/rbals72_dev_kerna4/logs/MosaicWS.log"/> -->

In my opinion it should add the log entries to the log file in my server\log folder, right? I cannot find any entries....
I just can't decide an the dependencies within my component diagram. Cade used nothing but <<uses>> stereotypes.

But in my opinion the dependencies should be the following:
- remote EJB calls: <<Reference>> (following the JSR-26 standard, which maps JEE elements to UML)
- Calls between classes (same container): <<uses>>
- Calls to external system (e.g. via SOAP or LDAP): <<call>>
- Access of DBs (e.g. JDBC): <<uses>>

What do you guys say? Cade has such a simplified version of all diagrams, that I just can't believe that such a design will let you pass...

My Class Diagram is more or less divided into two groups of classes: those, that make up the domain model, and those which make up the architecture classes (backing beans, DAOs, services etc.).

Since these are not connected (a DAO does not hold references to it's entities, hence I do not model those) I would like to devide the diagram into two (one called 'Domain Model', the other called 'Architecture Classes'). My only concern is that I have read that Oracle might return the submission stating the class diagram must (!) be submitted as whole.

Has anyone ever submitted it in a similar division as I have proposed? What is your experience?

I have a quick question concerning external systems within component diagrams: can they be depicted by a component in combination with the stereotype <<external>>? Or should I use another notation?

One discussion in this forum was on the same subject - only in combination with RationalRose as a tool - their final verdict was to use a package symbol with the stereotype <<subsystem>> - but that sounds a bit odd to me... (see

Many thanks in advance!
I have read that technology specific stereotypes should be added to the class diagram - I have decided on <<JPA entity class>> for my entities, <<JSP page>> for my views, <<stateless session bean>> for my managers/helpers and <<stateful session bean>> for my controllers. I was wondering if the classes should carry those stereotypes also when referenced within sequence diagrams...

Also, I guess it is safe to assume that when using JPA entity classes, no DAOs are needed. Furthermore I have refrained from referencing the EntityManager within my diagrams, similar to the rest of JEE services & classes.

Finally, I have assumed that persist calls don't have to be shown within the sequence diagrams, unless they are explicitly stated within the use case description (especially when using JPA).
I have noticed a strange usage of Controller objects within Cade's example for Part II & III.

In his exemplary class diagram he uses one central Controller object for all views (JSPs). In his subsequent sequence diagram he uses a NoticeController for his CreateNotice.jsp.

First of all, isn't it advisable to design your system to use one central controller, and each view to use its own model (e.g. a backing bean). I've so far not come across multiple controllers, each for a specific view...

Second, if multiple controllers would be advisable, shouldn't these be denoted in the Class Diagram as well?

- Alex
Within the Component Diagram, would it be advisable to denote an external tool (a jar file) as an external system which is accessed by a DAO on the integration tier? Or as a simple component on the business logic and presentation tier?

Also, a simple jar file should not be referenced within the deployment diagram, since it is packaged within the application, correct?

Many thanks in advance! - Alexander
I've been using Cade & Sheil SCEA Study Guide as a reference.

Their example class diagram does not include anything outside of the domain model - also all DAOs are not referenced within the class diagram, only in the component diagram.

Since the sequence diagrams should not use classes not referenced within the class diagram, I have been wondering if they should reference the necessary DAOs etc. If not, the sequence diagrams will have very few actors (front end, controller & some arbitrary manager).

My question: should classes from the integration tier (e.g. DAOs) be referenced within class diagrams? And/or should they be referenced within sequence diagrams?

Many thanks in advance for your support - Alex
As much as I know stateful session beans CAN be exposed as web services (just add the @WebService annotationand you are ready to go).

Why does the SCEA literature suggest otherwise?