ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Migrating Servlets into message broker

Post new topic  Reply to topic
 Migrating Servlets into message broker « View previous topic :: View next topic » 
Author Message
mBMQP
PostPosted: Fri Mar 07, 2014 3:02 am    Post subject: Migrating Servlets into message broker Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 07, 2014 3:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Mar 07, 2014 6:04 am    Post subject: Re: Migrating Servlets into message broker Reply with quote

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
View user's profile Send private message
mBMQP
PostPosted: Sun Mar 09, 2014 10:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Sun Mar 09, 2014 11:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Mar 10, 2014 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Migrating Servlets into message broker
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.