Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Alessandro Aloisi

+ Follow
since Sep 07, 2010
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 Alessandro Aloisi



Passed with 140 ( Big Smoke Cigar Shop taken on 20 Jul)

Counter = 27

Part 2 = 20 Jul (Big Smoke Cigar)
Part 3 = 8 Aug
SLSB's method send a msg on a queue with a JMSReplyTo property setted, then it waits on the other queue for a response, like the jms requst/reply integration pattern

So, my doubt was: is correct to inject jms connection factory, queues, in my slsb or I have to use a proxy to abstract JMS interaction and leave the ejb free to think only its purpose, ask levels?
Do you mean in general or in my solution?
In general, What happens? MDB elaborates it, what else?
For my problem, the message should contain availability of a product requested by ejb client...
according with java ee 5 jms api

A message consumer is an object that is created by a session and used for receiving messages sent to a destination

and for consume I mean that MDB receives the message sent on its queue ( "fires" the onMessage method )
Yes but mbd fire on a message in the queue that this is listening viceversa, my requirement is to ask the external system when a client fire my business method.

Am I wronging something?

I really appreciate your help

Maybe I'm missing something but are not consumer? Listening on a queue.

My SLSB is a producer, send a message on queue e wait for a response ( this with a sync approach ) because requirements are a sync request from presentation tier and a jms integration with external system ( I have only this integration mechanism).
Presentation asks level to my SLSB, I would like to leave this separation

Thanks for your response Jimmy.

I miss details!

My ejb is a stateless session bean and receives request from client and have to return availability. This availability is on an external system who my ejb calls through a jms request/reply.

So, the only thing of my ejb is to call external system by a queue, this is its business logic ( today! )

Hi Guys,
is about a day I am thinking that:

I have an ejb that have to interacts with a request/reply queue. Solution is quite simple: dependency injection and go.... but.... but....

IMHO ejb implements business logic, gathering information from external system through a queue could be done but is really business logic? Maybe yes, today the only business is interact with an external system, tomorrow will be other...

A proxy could abstract queue interaction and leave ejb concerned on its purpose, business!
so collaboration will be:
but with a proxy I loose benefits of dependency injection and I have to implement a service locator and so on.....

mumble mumble....

What do you think?

Thanks in advance!
I finally decided to use a constraint in my class diagram to declare pragmatically security

Thanks to all!
I think you are right but I have read many post of people who used this annotation style and passed

Ok, I decided I'll use standard notation

But, what about declarative roles? Where and how do I have to write them? I'm thinking that a note is sufficient ...
Hi All,
I'm working on Part 2 and I have a question

On Cade's class diagram, the author uses annotation to describe Session beans, entities, and so on. This use is not UML compliat but if sun loves it....

the question is.... if I want to show declarative security on my solution, is the correct way? am I making it all up?

Any feedback is greatly appreciated

Hi everyone! I need your help

Do anyone know where I can buy a bidirectional italian-english/english-italian dictionary? XDXF or plain text....

I need it for a commercial "off-line" app!

Thanks in advance!
11 years ago