Author |
Message
|
mBMQP |
Posted: Fri Mar 07, 2014 3:02 am Post subject: Migrating Servlets into message broker |
|
|
Newbie
Joined: 07 Mar 2014 Posts: 2
|
Hi everyone,
We have a requirement to migrate Servlets (running on weblogic) into WMB to avoid the dependency on application server. The functionality of existing servlets is Login, Authentication, Validation , DB update and MQOperations.
Our plan of implementation is by rewriting all classes/methods of Servlet in JavaComputNode classes. I would like to know for any suggestions if anyone has come across the similar requirement and if so how it has been implemented.
Thanks in advance |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Mar 07, 2014 3:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Bad Idea to just port it. YOu need to look at how authentication is performed and think about PEP node etc...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 07, 2014 6:04 am Post subject: Re: Migrating Servlets into message broker |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mBMQP wrote: |
Our plan of implementation is by rewriting all classes/methods of Servlet in JavaComputNode classes. I would like to know for any suggestions if anyone has come across the similar requirement and if so how it has been implemented. |
For a start, performing WMQ operations outside the supplied nodes (i.e. in a Java Compute Node) is explictily banned by the product documentation.
For the other operations WMB has built in functions that perform all of this which (at best) mean that by writing JCNs you're reinventing the wheel and at worst you're going to break something.
As my worthy associate points out, this is a bad idea. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mBMQP |
Posted: Sun Mar 09, 2014 10:47 pm Post subject: |
|
|
Newbie
Joined: 07 Mar 2014 Posts: 2
|
Hi Vitor,
Thanks for the response.
As mentioned below "For the other operations WMB has built in functions that perform all of this " , could you please list out the WMB built in functions for my reference.
We actually can't figure out how to implement HttpServletRequest, HttpServletrResponse along with doGet() and doPost(). The reason Iam asking is in Java Servlets, doGet() and doPost() methods will take care of sessions and authentication etc. But when we are replacing with WMB not sure how to implement them? do we need to write entire functionality of Servlets or WMB has any built in classes which actually can do the same thing.
Thanks in advance. |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Mar 09, 2014 11:16 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
All the WMB Builtin Java functions are documented. Why wouldn't they be?
Have you tried to find them?
You may have to change your whole tack about this job. Message Broker is NOT a J2EE Application Server.
Has whoever told you to do this actually verified that it can be done? Why not go back and ask them?
My post entitled 'And the requirement is' is worth reading.
http://mqseries.net/phpBB/viewtopic.php?p=345893 _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 10, 2014 4:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mBMQP wrote: |
But when we are replacing with WMB not sure how to implement them? do we need to write entire functionality of Servlets or WMB has any built in classes which actually can do the same thing. |
WMB is not WAS and is not written in Java. It does not have "built in classes" but does have nodes which perform these functions. So WMQ functions are performed with the MQ nodes, HTTP functions with the HTTP nodes and so forth.
So as my worthy associate points out, you need to change tack. You can't just rewrite some classes, you need to reproduce the functionality within a series of WMB flows. Development in WMB is very different to developing servlets. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|