<?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 for Kevin&#039;s Blog</title>
	<atom:link href="http://blog.lckymn.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lckymn.com</link>
	<description>IT, Java, Ubuntu, Linux</description>
	<lastBuildDate>Tue, 19 Feb 2013 21:56:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>Comment on Java Generics: Generics in Real Life Programming by minecraft</title>
		<link>http://blog.lckymn.com/2012/12/06/java-generics-generics-in-real-life-programming/comment-page-1/#comment-3271</link>
		<dc:creator>minecraft</dc:creator>
		<pubDate>Tue, 19 Feb 2013 21:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=826#comment-3271</guid>
		<description><![CDATA[&lt;p&gt;You really make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand.&lt;/p&gt;

&lt;p&gt;It seems too complex and very broad for me. I&#039;m looking forward for your next post, I will try to get the hang of it!&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>You really make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand.</p>
<p>It seems too complex and very broad for me. I&#8217;m looking forward for your next post, I will try to get the hang of it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier and Better Way to Use JDBC by Java Generics: Generics in Real Life Programming &#171; Kevin&#039;s Blog</title>
		<link>http://blog.lckymn.com/2011/09/11/easier-and-better-way-to-use-jdbc/comment-page-1/#comment-3240</link>
		<dc:creator>Java Generics: Generics in Real Life Programming &#171; Kevin&#039;s Blog</dc:creator>
		<pubDate>Thu, 06 Dec 2012 09:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=599#comment-3240</guid>
		<description><![CDATA[[...] having to decide the type when designing the API. One example can be found in my old post about Easier and Better Way to Use JDBC. Simply, it makes use of callback function object much more [...]
]]></description>
		<content:encoded><![CDATA[<p>[...] having to decide the type when designing the API. One example can be found in my old post about Easier and Better Way to Use JDBC. Simply, it makes use of callback function object much more [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Uses Call By Sharing by Kevin</title>
		<link>http://blog.lckymn.com/2010/11/12/java-uses-call-by-sharing/comment-page-1/#comment-2834</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 13 Oct 2011 23:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=587#comment-2834</guid>
		<description><![CDATA[Hi, Pratik

No, you can&#039;t use call-by-reference in Java as Java doesn&#039;t have it.
If you run the code snippet you put here, you will get 10 but NOT -1.

[code lang=&quot;java&quot; gutter=&quot;false&quot;]
void fun(MyObject inner){
  inner.x = 10; // Working on the reference to the instance of MyObject which is assigned to the variable &#039;outer’.

  inner= new MyObject(); // create a new reference, and it is NOT visible by the caller.
  inner.x = -1; // It will never be visible by the caller.
}
[/code]]]></description>
		<content:encoded><![CDATA[<p>Hi, Pratik</p>
<p>No, you can&#8217;t use call-by-reference in Java as Java doesn&#8217;t have it.<br />
If you run the code snippet you put here, you will get 10 but NOT -1.</p>
<pre class="brush: java; gutter: false; title: ; notranslate">
void fun(MyObject inner){
  inner.x = 10; // Working on the reference to the instance of MyObject which is assigned to the variable 'outer’.

  inner= new MyObject(); // create a new reference, and it is NOT visible by the caller.
  inner.x = -1; // It will never be visible by the caller.
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Uses Call By Sharing by Pratik</title>
		<link>http://blog.lckymn.com/2010/11/12/java-uses-call-by-sharing/comment-page-1/#comment-2833</link>
		<dc:creator>Pratik</dc:creator>
		<pubDate>Thu, 13 Oct 2011 20:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=587#comment-2833</guid>
		<description><![CDATA[Hi, this post has really been helpful to me to understand the difference between passing methods. Thanks for that.

My question is : had we been using call-by-reference in the given example then would the following be correct?

[code lang=&quot;java&quot; gutter=&quot;false&quot;]
//Example for “call by reference” 
class MyObject{
  public int x=666; 
}
void fun(MyObject inner){
  inner.x = 10; //Working on reference to ‘outer’ object
  //!!!!!!!!Reference to object ‘outer’ will be tvisible by the caller of the method 
  inner= new MyObject(); //create new reference.
  inner.x = -1; //Working on reference visible to caller
}
MyObject outer = new MyObject();
fun(outer);
print( outer.x ); //-1
[/code]
TIA]]></description>
		<content:encoded><![CDATA[<p>Hi, this post has really been helpful to me to understand the difference between passing methods. Thanks for that.</p>
<p>My question is : had we been using call-by-reference in the given example then would the following be correct?</p>
<pre class="brush: java; gutter: false; title: ; notranslate">
//Example for “call by reference” 
class MyObject{
  public int x=666; 
}
void fun(MyObject inner){
  inner.x = 10; //Working on reference to ‘outer’ object
  //!!!!!!!!Reference to object ‘outer’ will be tvisible by the caller of the method 
  inner= new MyObject(); //create new reference.
  inner.x = -1; //Working on reference visible to caller
}
MyObject outer = new MyObject();
fun(outer);
print( outer.x ); //-1
</pre>
<p>TIA</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ROO So Cool!!! -01- by How to make spring roo project has dynamic web nature? - Programmers Goodies</title>
		<link>http://blog.lckymn.com/2009/05/17/roo-so-cool-01/comment-page-1/#comment-1903</link>
		<dc:creator>How to make spring roo project has dynamic web nature? - Programmers Goodies</dc:creator>
		<pubDate>Sun, 31 Jul 2011 04:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=146#comment-1903</guid>
		<description><![CDATA[[...] http://blog.lckymn.com/2009/05/17/roo-so-cool-01/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.lckymn.com/2009/05/17/roo-so-cool-01/" rel="nofollow">http://blog.lckymn.com/2009/05/17/roo-so-cool-01/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ROO So Cool!!! -01- by How to make spring roo project has dynamic web nature? - Programmers Goodies</title>
		<link>http://blog.lckymn.com/2009/05/17/roo-so-cool-01/comment-page-1/#comment-1904</link>
		<dc:creator>How to make spring roo project has dynamic web nature? - Programmers Goodies</dc:creator>
		<pubDate>Sun, 31 Jul 2011 04:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=146#comment-1904</guid>
		<description><![CDATA[[...] http://blog.lckymn.com/2009/05/17/roo-so-cool-01/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.lckymn.com/2009/05/17/roo-so-cool-01/" rel="nofollow">http://blog.lckymn.com/2009/05/17/roo-so-cool-01/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web Service Development using Tomcat and OpenEJB 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><![CDATA[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>Comment on Web Service Development using Tomcat and OpenEJB 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><![CDATA[Thanks for a very good tutorial.]]></description>
		<content:encoded><![CDATA[<p>Thanks for a very good tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Uses Call By Sharing by Kevin</title>
		<link>http://blog.lckymn.com/2010/11/12/java-uses-call-by-sharing/comment-page-1/#comment-1833</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Mon, 13 Jun 2011 09:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=587#comment-1833</guid>
		<description><![CDATA[Hello, Sekhar

What your code does is changing object state which means it assigns a new value to the field (the object member variable) y.

So
[code lang=&quot;java&quot; gutter=&quot;false&quot;]
m.show(x);
[/code]
is &#039;Call By Sharing&#039; as it passes an object x (it is indeed the object reference of the class Xyz stored in the variable x) to the show() method.
Then what the show() method does is changing the state of the x.
[code lang=&quot;java&quot; gutter=&quot;false&quot;]
x.y = 15;
[/code]
This is changing the object state by reassigning a new value to the variable y. Notice that you did not pass the variable y in the object x but the object itself.

So if your show() method does like this
[code lang=&quot;java&quot;]
public void show(Xyz x)
{
  System.out.println(x.y);
  x = new Xyz();
  x.y = 15;
  System.out.println(x.y);
}
[/code]
You will get
[code lang=&quot;plain&quot; gutter=&quot;false&quot;]
10
10
15
10
[/code]
as you can re-assign a new object reference of the new instance of the type Xyz to the parameter variable x but this is not visible by the caller, the main() method, so after calling the show() method, x will still contain the reference of the first Xyz object you created before calling the show() method, and it has 10 in the variable y.

I am planing to put much better examples for this topic yet just have no time at the moment. My company is about to launch a new web application so I am, just like others, really busy. :)
I&#039;ll put the examples as soon as possible.

For your information, you can use &#091;code lang=&quot;java&quot;]&#091;/code] to put Java source code here.
&#091;code lang=&quot;java&quot;]
some java code here
&#091;/code]

and the plain text with the fixed-width font for
&#091;code lang=&quot;plain&quot; gutter=&quot;false&quot;]
&#091;/code]

Regards,
Kevin]]></description>
		<content:encoded><![CDATA[<p>Hello, Sekhar</p>
<p>What your code does is changing object state which means it assigns a new value to the field (the object member variable) y.</p>
<p>So</p>
<pre class="brush: java; gutter: false; title: ; notranslate">
m.show(x);
</pre>
<p>is &#8216;Call By Sharing&#8217; as it passes an object x (it is indeed the object reference of the class Xyz stored in the variable x) to the show() method.<br />
Then what the show() method does is changing the state of the x.</p>
<pre class="brush: java; gutter: false; title: ; notranslate">
x.y = 15;
</pre>
<p>This is changing the object state by reassigning a new value to the variable y. Notice that you did not pass the variable y in the object x but the object itself.</p>
<p>So if your show() method does like this</p>
<pre class="brush: java; title: ; notranslate">
public void show(Xyz x)
{
  System.out.println(x.y);
  x = new Xyz();
  x.y = 15;
  System.out.println(x.y);
}
</pre>
<p>You will get</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
10
10
15
10
</pre>
<p>as you can re-assign a new object reference of the new instance of the type Xyz to the parameter variable x but this is not visible by the caller, the main() method, so after calling the show() method, x will still contain the reference of the first Xyz object you created before calling the show() method, and it has 10 in the variable y.</p>
<p>I am planing to put much better examples for this topic yet just have no time at the moment. My company is about to launch a new web application so I am, just like others, really busy. <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;ll put the examples as soon as possible.</p>
<p>For your information, you can use &#091;code lang=&#8221;java&#8221;]&#091;/code] to put Java source code here.<br />
&#091;code lang=&#8221;java&#8221;]<br />
some java code here<br />
&#091;/code]</p>
<p>and the plain text with the fixed-width font for<br />
&#091;code lang=&#8221;plain&#8221; gutter=&#8221;false&#8221;]<br />
&#091;/code]</p>
<p>Regards,<br />
Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Uses Call By Sharing by Sekhar</title>
		<link>http://blog.lckymn.com/2010/11/12/java-uses-call-by-sharing/comment-page-1/#comment-1831</link>
		<dc:creator>Sekhar</dc:creator>
		<pubDate>Mon, 13 Jun 2011 07:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=587#comment-1831</guid>
		<description><![CDATA[Hi, Please execute the following code, and please let me know in what category it will come.

[code lang=&quot;java&quot;]
public class Main {

    public static void main(String[] args) {
        Main m = new Main();
        Xyz x = new Xyz();
        x.y = 10;
        System.out.println(x.y);
        m.show(x);
        System.out.println(x.y);


    }

    public void show(Xyz x) {
        System.out.println(x.y);
        x.y = 15;
        System.out.println(x.y);

    }
}

class Xyz {

    public int y;
}
[/code]

The out put comes like this, 
[code lang=&quot;plain&quot; gutter=&quot;false&quot;]
10
10
15
15
[/code]

As per your explanation, if we change in called method, the values wont change in Caller method.

then the out put should be 10 , 10 , 15 ,10 

why it came differently ... Please explain.]]></description>
		<content:encoded><![CDATA[<p>Hi, Please execute the following code, and please let me know in what category it will come.</p>
<pre class="brush: java; title: ; notranslate">
public class Main {

    public static void main(String[] args) {
        Main m = new Main();
        Xyz x = new Xyz();
        x.y = 10;
        System.out.println(x.y);
        m.show(x);
        System.out.println(x.y);


    }

    public void show(Xyz x) {
        System.out.println(x.y);
        x.y = 15;
        System.out.println(x.y);

    }
}

class Xyz {

    public int y;
}
</pre>
<p>The out put comes like this, </p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
10
10
15
15
</pre>
<p>As per your explanation, if we change in called method, the values wont change in Caller method.</p>
<p>then the out put should be 10 , 10 , 15 ,10 </p>
<p>why it came differently &#8230; Please explain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Uses Call By Sharing by Grzegorz Warywoda</title>
		<link>http://blog.lckymn.com/2010/11/12/java-uses-call-by-sharing/comment-page-1/#comment-1775</link>
		<dc:creator>Grzegorz Warywoda</dc:creator>
		<pubDate>Thu, 19 May 2011 11:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=587#comment-1775</guid>
		<description><![CDATA[//Example for “call by sharing” 

class MyObject{
  public int x=666; //;]
}

void fun(MyObject inner){
  inner.x = 10; //Working on reference to &#039;outer&#039; object
  
  //!!!!!!!!Reference to object &#039;outer&#039; will be disposed only in scope of this method !!!!
  inner= new MyObject(); //create new reference. 
  nner.x = -1;  //Working on new local reference 
}

MyObject outer = new MyObject();
fun(outer);
print( outer.x ); //10]]></description>
		<content:encoded><![CDATA[<p>//Example for “call by sharing” </p>
<p>class MyObject{<br />
  public int x=666; //;]<br />
}</p>
<p>void fun(MyObject inner){<br />
  inner.x = 10; //Working on reference to &#8216;outer&#8217; object</p>
<p>  //!!!!!!!!Reference to object &#8216;outer&#8217; will be disposed only in scope of this method !!!!<br />
  inner= new MyObject(); //create new reference.<br />
  nner.x = -1;  //Working on new local reference<br />
}</p>
<p>MyObject outer = new MyObject();<br />
fun(outer);<br />
print( outer.x ); //10</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Uses Call By Sharing by raghav</title>
		<link>http://blog.lckymn.com/2010/11/12/java-uses-call-by-sharing/comment-page-1/#comment-1709</link>
		<dc:creator>raghav</dc:creator>
		<pubDate>Mon, 04 Apr 2011 06:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=587#comment-1709</guid>
		<description><![CDATA[Can you plz explain with a example..]]></description>
		<content:encoded><![CDATA[<p>Can you plz explain with a example..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Kevin</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1704</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 31 Mar 2011 05:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1704</guid>
		<description><![CDATA[&lt;a href=&quot;http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1703&quot; rel=&quot;nofollow&quot;&gt;http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1703&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p><a href="http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1703" rel="nofollow">http://blog.lckymn.com/2009/11/01/web-service-development-using-tomcat-and-openejb/comment-page-1/#comment-1703</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web Service Development using Tomcat and OpenEJB 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><![CDATA[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>Comment on Web Service Development using Tomcat and OpenEJB 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><![CDATA[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>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by subba</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1701</link>
		<dc:creator>subba</dc:creator>
		<pubDate>Thu, 31 Mar 2011 03:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1701</guid>
		<description><![CDATA[Kevin,
Thanks for your instructions based details on the openejb.
Is it possible to add same type details on deploying openejb project in to Linux ?

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,<br />
Thanks for your instructions based details on the openejb.<br />
Is it possible to add same type details on deploying openejb project in to Linux ?</p>
<p>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>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Kevin</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1606</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 24 Sep 2010 10:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1606</guid>
		<description><![CDATA[Prafull, if you click the link to the OpenEJB download page, you can see &#039;OpenEJB for Tomcat&#039; which is the &#039;openejb.war&#039; file. Please check out the page again.]]></description>
		<content:encoded><![CDATA[<p>Prafull, if you click the link to the OpenEJB download page, you can see &#8216;OpenEJB for Tomcat&#8217; which is the &#8216;openejb.war&#8217; file. Please check out the page again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Prafull</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1605</link>
		<dc:creator>Prafull</dc:creator>
		<pubDate>Fri, 24 Sep 2010 07:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1605</guid>
		<description><![CDATA[When i download openejb.war it downloads openejb.zip file
how di i convert it
Thanks]]></description>
		<content:encoded><![CDATA[<p>When i download openejb.war it downloads openejb.zip file<br />
how di i convert it<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enable Ctrl+Alt+Backspace Again by Andi</title>
		<link>http://blog.lckymn.com/2009/05/03/enable-ctrl-alt-backspace-again/comment-page-1/#comment-1588</link>
		<dc:creator>Andi</dc:creator>
		<pubDate>Sun, 15 Aug 2010 15:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=123#comment-1588</guid>
		<description><![CDATA[Thanks, just what I was looking for.]]></description>
		<content:encoded><![CDATA[<p>Thanks, just what I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java EE Application Development using Tomcat, OpenEJB and Hibernate by Kevin</title>
		<link>http://blog.lckymn.com/2009/10/17/java-ee-application-development-using-tomcat-openejb-and-hibernate/comment-page-1/#comment-1566</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 29 Jun 2010 16:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=380#comment-1566</guid>
		<description><![CDATA[Hello, caijc

Can you try again with commenting out &lt;code&gt;@PersistenceContext(unitName = “oe”)&lt;/code&gt;?

[code lang=&quot;java&quot; highlight=&quot;3&quot;]
@Stateless
public class UserServiceBean implements UserService {
//@PersistenceContext(unitName = “oe”)
private EntityManager em;
……
[/code]

For your information, you can use &#091;code lang=&quot;java&quot;]&#091;/code] to put Java source code here.
&#091;code lang=&quot;java&quot;]
some java code here
&#091;/code]
]]></description>
		<content:encoded><![CDATA[<p>Hello, caijc</p>
<p>Can you try again with commenting out <code>@PersistenceContext(unitName = “oe”)</code>?</p>
<pre class="brush: java; highlight: [3]; title: ; notranslate">
@Stateless
public class UserServiceBean implements UserService {
//@PersistenceContext(unitName = “oe”)
private EntityManager em;
……
</pre>
<p>For your information, you can use &#91;code lang=&#8221;java&#8221;]&#91;/code] to put Java source code here.<br />
&#91;code lang=&#8221;java&#8221;]<br />
some java code here<br />
&#91;/code]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
