<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Web Service Development using Tomcat and OpenEJB</title>
	<atom:link href="http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/</link>
	<description>IT, Java, Ubuntu, Linux</description>
	<lastBuildDate>Thu, 13 Oct 2011 23:02:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1864</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 06 Jul 2011 18:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1864</guid>
		<description>You&#039;re welcome, Lan. :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome, Lan. <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lan</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1837</link>
		<dc:creator>Lan</dc:creator>
		<pubDate>Sat, 18 Jun 2011 19:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1837</guid>
		<description>Thanks for a very good tutorial.</description>
		<content:encoded><![CDATA[<p>Thanks for a very good tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1703</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 31 Mar 2011 05:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1703</guid>
		<description>Before I say anything, I think should clarify certain things you need to know.

1. Your explanation is insufficient to fully understand your problem so my answers would be very generic. It is very hard to answer those kinds of questions without actually having the code &amp; libraries you have, your development environment &amp; configuration, the scenarios that your application / service should handle, etc., and that&#039;s one of the reasons why people hire software development consultants.

2. I do NOT use OpenEJB at all.

3. Then why did I post those two blog entries regarding using OpenEJB, Tomcat and Hibernate, and OpenEJB and Web Services?
The reason is because I could not find any detailed tutorials for those technologies (you may already know it as you googled it already, I guess) so did it for others looking for it. I had some experiments and found several ways to do it and posted the simplest and easiest ones. Based on my experience, it is not convenient at all to implement those technologies. So if you decide to use it, I believe, you will experience many problems regarding only implementing those rather than solving your actual problems in the business logic (e.g. I had a problem with using OpenEJB and other versions of Hibernate than the one I mentioned in the blog post so I had to use that particular version).

4. What do I use then? I use the Spring Framework.

5. Does the Spring Framework solve the problems you mentioned? Yes, it does solve those easily although I don&#039;t know the details of yours so cannot really say with one hundred percent certainty.

6. So do I recommend it instead of using OpenEJB? Yes, I do. If you can use the Spring instead of OpenEJB, you can use almost any technologies, libraries and frameworks with the Spring so that you don&#039;t really need to be concerned about combining different technologies together (of course, it is still not the silver bullet, you may not use it for everything, but in general, for normal applications and web services, it is just sufficient). However, you need to learn how to use it, and it might not be as easy as reading one or two blog posts to figure it out. I still recommend it though. It is useful now and will be more and more useful in the future as your application grows and its requirements change.


Now, in regard to your questions,
=================================
how to add the MDBean project in addition to the existing top to bottom up axis2 webservice project?
-You can just use OpenEJB to have both the MD Bean and web service if your axis2 web service complies with JSR-181 like &lt;a href=&quot;http://axis.apache.org/axis2/java/core/docs/pojoguide.html#jsr181pojows&quot; rel=&quot;nofollow&quot;&gt;this one&lt;/a&gt; then it will be easy to run it with OpenEJB and without Axis2.
-Or what you want is sending SOAP messages over JMS, you probably want to use some other library for JMS working with Axis2 such as &lt;a href=&quot;http://ws.apache.org/commons/transport/jms.html&quot; rel=&quot;nofollow&quot;&gt;JMS Transport&lt;/a&gt;.


How to deploy this new addition MDBean/openejb project.jar in to tomcat+openejb in Lunux?
-As long as you use the Java platform and the OS you use supports it, you don&#039;t need to worry about deploying those to the tomcat server in different OSs.

How to deploy the openejb based MDB project.jar in to tomcat+openejb ?
-It is up to you. You can add it to the web service you&#039;ve already got or can make a separate message service and add it.

How to send message object to MDBean which would also run in same tomcat having openejb.war?
-It is also up to you. You can have both in the same project and make them directly communicate or have them separately and use message service / web service to communicate. It depends on your implementation of the technologies.
==================================

Finally, mixing and combining different technologies is not an easy topic especially when you have some legacy applications with which your new applications must work. If it is for your company, I rather recommend you hire the consultant. If it is solely for studying, you can anyway try it by making message service then understand it and try to combine it with the web service. Without understanding each technology, you cannot easily use these together. Well, if I were you, I would rather spend time on studying the Spring Framework. Don&#039;t get me wrong. I&#039;m not a fan of it. It is just suited for my needs. One day, if I find any better one, I will definitely use the new one.

Regards,
Kevin</description>
		<content:encoded><![CDATA[<p>Before I say anything, I think should clarify certain things you need to know.</p>
<p>1. Your explanation is insufficient to fully understand your problem so my answers would be very generic. It is very hard to answer those kinds of questions without actually having the code &amp; libraries you have, your development environment &amp; configuration, the scenarios that your application / service should handle, etc., and that&#8217;s one of the reasons why people hire software development consultants.</p>
<p>2. I do NOT use OpenEJB at all.</p>
<p>3. Then why did I post those two blog entries regarding using OpenEJB, Tomcat and Hibernate, and OpenEJB and Web Services?<br />
The reason is because I could not find any detailed tutorials for those technologies (you may already know it as you googled it already, I guess) so did it for others looking for it. I had some experiments and found several ways to do it and posted the simplest and easiest ones. Based on my experience, it is not convenient at all to implement those technologies. So if you decide to use it, I believe, you will experience many problems regarding only implementing those rather than solving your actual problems in the business logic (e.g. I had a problem with using OpenEJB and other versions of Hibernate than the one I mentioned in the blog post so I had to use that particular version).</p>
<p>4. What do I use then? I use the Spring Framework.</p>
<p>5. Does the Spring Framework solve the problems you mentioned? Yes, it does solve those easily although I don&#8217;t know the details of yours so cannot really say with one hundred percent certainty.</p>
<p>6. So do I recommend it instead of using OpenEJB? Yes, I do. If you can use the Spring instead of OpenEJB, you can use almost any technologies, libraries and frameworks with the Spring so that you don&#8217;t really need to be concerned about combining different technologies together (of course, it is still not the silver bullet, you may not use it for everything, but in general, for normal applications and web services, it is just sufficient). However, you need to learn how to use it, and it might not be as easy as reading one or two blog posts to figure it out. I still recommend it though. It is useful now and will be more and more useful in the future as your application grows and its requirements change.</p>
<p>Now, in regard to your questions,<br />
=================================<br />
how to add the MDBean project in addition to the existing top to bottom up axis2 webservice project?<br />
-You can just use OpenEJB to have both the MD Bean and web service if your axis2 web service complies with JSR-181 like <a href="http://axis.apache.org/axis2/java/core/docs/pojoguide.html#jsr181pojows" rel="nofollow">this one</a> then it will be easy to run it with OpenEJB and without Axis2.<br />
-Or what you want is sending SOAP messages over JMS, you probably want to use some other library for JMS working with Axis2 such as <a href="http://ws.apache.org/commons/transport/jms.html" rel="nofollow">JMS Transport</a>.</p>
<p>How to deploy this new addition MDBean/openejb project.jar in to tomcat+openejb in Lunux?<br />
-As long as you use the Java platform and the OS you use supports it, you don&#8217;t need to worry about deploying those to the tomcat server in different OSs.</p>
<p>How to deploy the openejb based MDB project.jar in to tomcat+openejb ?<br />
-It is up to you. You can add it to the web service you&#8217;ve already got or can make a separate message service and add it.</p>
<p>How to send message object to MDBean which would also run in same tomcat having openejb.war?<br />
-It is also up to you. You can have both in the same project and make them directly communicate or have them separately and use message service / web service to communicate. It depends on your implementation of the technologies.<br />
==================================</p>
<p>Finally, mixing and combining different technologies is not an easy topic especially when you have some legacy applications with which your new applications must work. If it is for your company, I rather recommend you hire the consultant. If it is solely for studying, you can anyway try it by making message service then understand it and try to combine it with the web service. Without understanding each technology, you cannot easily use these together. Well, if I were you, I would rather spend time on studying the Spring Framework. Don&#8217;t get me wrong. I&#8217;m not a fan of it. It is just suited for my needs. One day, if I find any better one, I will definitely use the new one.</p>
<p>Regards,<br />
Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: subba</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1702</link>
		<dc:creator>subba</dc:creator>
		<pubDate>Thu, 31 Mar 2011 03:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1702</guid>
		<description>Kevin,

Sorr for this repost. This would be the correct and related thread to ask for the webservice related and , how to deploy openejb MDBean project.jar into tomcat+openejb environment !

Thanks for your instructions based details on the openejb.
Could you suggest the same type of details 
- How to develop the MDBean project and how to deploying openejb MDBean project.jar in to tomcat + openejb integrated environment in Linux?

Little back ground on my side,
We have existing webservice project developed based on axis2 in tomcat 6.0.32 using top to bottom approach.
Now, we want to add asynchronous message processing features. So, exploring to use the JMS + MDB. To add this feature in tomcat, I am working to use the openEJB. 
And, I was trying to find best way to add on this new project  by adding openEJB.war to existing tomcat.
But, trying to simplify the steps to 
how to add the MDBean project in addition to the existing top to bottom up axis2 webservice project?
How to deploy this new addition MDBean/openejb project.jar in to tomcat+openejb in Lunux?
How to deploy the openejb based MDB project.jar in to tomcat+openejb ?
How to send message object to MDBean which would also run in same tomcat having openejb.war?

I really thankfull for your kind response.
--
Subba</description>
		<content:encoded><![CDATA[<p>Kevin,</p>
<p>Sorr for this repost. This would be the correct and related thread to ask for the webservice related and , how to deploy openejb MDBean project.jar into tomcat+openejb environment !</p>
<p>Thanks for your instructions based details on the openejb.<br />
Could you suggest the same type of details<br />
- How to develop the MDBean project and how to deploying openejb MDBean project.jar in to tomcat + openejb integrated environment in Linux?</p>
<p>Little back ground on my side,<br />
We have existing webservice project developed based on axis2 in tomcat 6.0.32 using top to bottom approach.<br />
Now, we want to add asynchronous message processing features. So, exploring to use the JMS + MDB. To add this feature in tomcat, I am working to use the openEJB.<br />
And, I was trying to find best way to add on this new project  by adding openEJB.war to existing tomcat.<br />
But, trying to simplify the steps to<br />
how to add the MDBean project in addition to the existing top to bottom up axis2 webservice project?<br />
How to deploy this new addition MDBean/openejb project.jar in to tomcat+openejb in Lunux?<br />
How to deploy the openejb based MDB project.jar in to tomcat+openejb ?<br />
How to send message object to MDBean which would also run in same tomcat having openejb.war?</p>
<p>I really thankfull for your kind response.<br />
&#8211;<br />
Subba</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ejb object</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1526</link>
		<dc:creator>ejb object</dc:creator>
		<pubDate>Sat, 20 Mar 2010 00:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1526</guid>
		<description>[...] It is defined in the bean class or in a class different from the bean class. An interceptor ...Web Service Development using Tomcat and OpenEJB Kevin&#039;s LifeThe class above simply returns a User entity object acquired from the UserService EJB, made in the [...]</description>
		<content:encoded><![CDATA[<p>[...] It is defined in the bean class or in a class different from the bean class. An interceptor &#8230;Web Service Development using Tomcat and OpenEJB Kevin&#39;s LifeThe class above simply returns a User entity object acquired from the UserService EJB, made in the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1460</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 11 Dec 2009 11:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1460</guid>
		<description>The web service I explained here uses JSR-181. It was introduced to JCP by BEA Systems, which is now acquired by Oracle, and Java EE 5 includes it but not J2EE 1.4.
http://jcp.org/en/jsr/detail?id=244

JSR-181 uses annotations which were introduced in J2SE 5.0 so with just J2EE 1.4, you cannot use JSR-181.

I don&#039;t know why you put that comment, which is completely irrelevant to the post, here. Well, your comment has nothing to do with my blog entry although it has the word, &#039;web service&#039;.  I believe you are probably a spam bot as I found that your homepage URI linked to some product list in some on-line shopping mall. Thus I removed it.</description>
		<content:encoded><![CDATA[<p>The web service I explained here uses JSR-181. It was introduced to JCP by BEA Systems, which is now acquired by Oracle, and Java EE 5 includes it but not J2EE 1.4.<br />
<a href="http://jcp.org/en/jsr/detail?id=244" rel="nofollow">http://jcp.org/en/jsr/detail?id=244</a></p>
<p>JSR-181 uses annotations which were introduced in J2SE 5.0 so with just J2EE 1.4, you cannot use JSR-181.</p>
<p>I don&#8217;t know why you put that comment, which is completely irrelevant to the post, here. Well, your comment has nothing to do with my blog entry although it has the word, &#8216;web service&#8217;.  I believe you are probably a spam bot as I found that your homepage URI linked to some product list in some on-line shopping mall. Thus I removed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heilpflanzen</title>
		<link>http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1459</link>
		<dc:creator>heilpflanzen</dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=432#comment-1459</guid>
		<description>The Web service features in J2EE 1.4 address both the server and client sides of Web services. The features extend J2EE to allow existing server-side enterprise Java components to become Web services and specify how a J2EE client container can invoke Web services.</description>
		<content:encoded><![CDATA[<p>The Web service features in J2EE 1.4 address both the server and client sides of Web services. The features extend J2EE to allow existing server-side enterprise Java components to become Web services and specify how a J2EE client container can invoke Web services.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

