<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-27113</id>
	<title>Nabble - EJB General</title>
	<updated>2008-11-30T05:12:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/EJB-General-f27113.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/EJB-General-f27113.html" />
	<subtitle type="html">General questions on Enterprise Java Beans.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-20757535</id>
	<title>PROBLEM START WEBSPHERE 6.1</title>
	<published>2008-11-30T05:12:03Z</published>
	<updated>2008-11-30T05:12:03Z</updated>
	<author>
		<name>terry.human</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I have a problem when I try star the websphere 6.1 Server. I get the next error:
&lt;br&gt;&lt;br&gt;Could you help me? Thanks</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/PROBLEM-START-WEBSPHERE-6.1-tp20757535p20757535.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20755967</id>
	<title>ejb constructor??</title>
	<published>2008-11-30T01:48:17Z</published>
	<updated>2008-11-30T01:48:17Z</updated>
	<author>
		<name>iscsi</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;i'm new in j2ee.. So i made a stateless session bean, my ejb skeleton is:
&lt;br&gt;i hava a query.jsp page, which request a query (string), after that the ejb Bean connect an Oracle database,
&lt;br&gt;&amp;nbsp;the ejb ha a rank function which ranking the resultset, after that i show the result a result jsp page. this works:)
&lt;br&gt;but, i would give some choice for the users to the query.jsp, for what column would they look like, to the result.jsp.
&lt;br&gt;So i think my bean should look like:
&lt;br&gt;&lt;br&gt;constructor (String query){connect to database..;
&lt;br&gt;rank();
&lt;br&gt;}
&lt;br&gt;get() methods..
&lt;br&gt;&lt;br&gt;destructor (){disconnect;}
&lt;br&gt;&lt;br&gt;So i know i don't know the ejb concepts to much so i ask some idea, how i should realize what i would like.
&lt;br&gt;I haven't find how possible write a constructor for a bean class, and how can call it. For example my result.jsp : i don't know where the c
&lt;br&gt;&lt;br&gt;QueryRemote queryr = null;
&lt;br&gt;public void jspInit() {
&lt;br&gt;try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;InitialContext ic = new InitialContext();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;queryr = (QueryRemote) ic.lookup(&amp;quot;query/QueryBean/remote&amp;quot;);
&lt;br&gt;..}
&lt;br&gt;&lt;br&gt;So my question is there any option, to call a constructor with an argument?
&lt;br&gt;Or what do you advice for my problem? I 've interested any idea..
&lt;br&gt;&lt;br&gt;Thanks in advance.. </content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ejb-constructor---tp20755967p20755967.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20537182</id>
	<title>jta in EJB</title>
	<published>2008-11-17T02:42:29Z</published>
	<updated>2008-11-17T02:42:29Z</updated>
	<author>
		<name>qazmko</name>
	</author>
	<content type="html">Hello everybody. 
&lt;br&gt;I wanted to ask a question. I am establishing a session bean with JTA that reads messages from a queue. TRANSACTIONS am creating the type of bean, but it does not make the rollback me when I return the message to the queue. Can anyone tell me a link to any page or some such. 
&lt;br&gt;Thank you</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/jta-in-EJB-tp20537182p20537182.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19969176</id>
	<title>How to modify the pool of ejb with JMX in Weblogic 10?</title>
	<published>2008-10-14T01:28:21Z</published>
	<updated>2008-10-14T01:28:21Z</updated>
	<author>
		<name>qazmko</name>
	</author>
	<content type="html">Hello
&lt;br&gt;&lt;br&gt;I put this message to see if anyone can help me. I want to know whether WebLogic 10 is you can modify the pool of ejb with JMX. That means that if you can change and do not have to be according to what you have set when compiling the ejb.
&lt;br&gt;Thanks
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-modify-the-pool-of-ejb-with-JMX-in-Weblogic-10--tp19969176p19969176.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19299815</id>
	<title>EJB - Calling method2 from method1 of same EJB</title>
	<published>2008-09-03T15:47:46Z</published>
	<updated>2008-09-03T15:47:46Z</updated>
	<author>
		<name>Amudha</name>
	</author>
	<content type="html">Is it possible by any combination of TRANSACTION attribute setup to make a internal call within the same EJB.
&lt;br&gt;&lt;br&gt;Can you provide the setup which would make this call possible?
&lt;br&gt;&lt;br&gt;If not possible, what is the only other way to make such calls?</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/EJB---Calling-method2-from-method1-of-same-EJB-tp19299815p19299815.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18031309</id>
	<title>Survey request</title>
	<published>2008-06-20T07:57:30Z</published>
	<updated>2008-06-20T07:57:30Z</updated>
	<author>
		<name>FLOSS@FUB</name>
	</author>
	<content type="html">Dear member,
&lt;br&gt;&lt;br&gt;in cooperation with the software engineering research group at Free University of Berlin (Freie Universität Berlin), we are currently conducting an empirical survey on time consumption of participants in Open Source/Free Software projects.
&lt;br&gt;&lt;br&gt;In this survey we want to find out how much time is consumed in the different activities and aspects of Open Source/Free Software projects, such as software development, maintaining or user support.
&lt;br&gt;&lt;br&gt;We would greatly appreciate you participating in our survey! This survey will take you no more than 15 minutes of your precious time. It is now open and will be closed on Tuesday the 1st of July.
&lt;br&gt;Note on data security: This survey is anonymous, so no personal information will be asked.
&lt;br&gt;&lt;br&gt;As a gift in return we will share our insights with you (an URL is shown at completion of the survey).
&lt;br&gt;&lt;br&gt;&lt;br&gt;The Link to the survey: &lt;a href=&quot;http://page.mi.fu-berlin.de/pepper/survey/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://page.mi.fu-berlin.de/pepper/survey/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank You!!!
&lt;br&gt;&lt;br&gt;Contact: floss-survey@inf.fu-berlin.de</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Survey-request-tp18031309p18031309.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17120009</id>
	<title>problem in ejb3 on jboss-4.2</title>
	<published>2008-05-07T21:34:45Z</published>
	<updated>2008-05-07T21:34:45Z</updated>
	<author>
		<name>sagarlotiya</name>
	</author>
	<content type="html">hi,
&lt;br&gt;I am new to eb3 and i am having following problem when running stateful application, the stateless application works fine but stateful not...following is the issue...
&lt;br&gt;&lt;br&gt;I am having EJB 3 stateful application. Code is shown below
&lt;br&gt;&lt;br&gt;try {
&lt;br&gt;Properties props = new Properties();
&lt;br&gt;props.put(Context.INITIAL_CONTEXT_FACTORY, &amp;quot;org.jnp.interfaces.NamingContextFactory&amp;quot;);
&lt;br&gt;props.setProperty(Context.URL_PKG_PREFIXES, &amp;quot;org.jboss.namingrg.jnp.interfaces&amp;quot;);
&lt;br&gt;props.put(Context.PROVIDER_URL, &amp;quot;jnp://localhost:1099&amp;quot;);
&lt;br&gt;InitialContext ic = new InitialContext(props);
&lt;br&gt;//InitialContext ic = new InitialContext();
&lt;br&gt;System.out.println(&amp;quot;JSP INIT Befor lookup=============&amp;quot;);
&lt;br&gt;//Object obj = (Object) ic.lookup(&amp;quot;StatefulCode/AccountBean/remote&amp;quot;);
&lt;br&gt;account = (AccountRemote) ic.lookup(&amp;quot;StatefulCode_1/AccountBean/remote&amp;quot;);
&lt;br&gt;&lt;br&gt;//account = (AccountRemote)javax.rmi.PortableRemoteObject.narr ow(obj,AccountBean.class);
&lt;br&gt;&lt;br&gt;System.out.println(&amp;quot;JSP INIT After lookup=============&amp;quot;);
&lt;br&gt;//System.out.println(&amp;quot;JSP INIT After lookup test=============&amp;quot;+obj.getClass().getName());
&lt;br&gt;System.out.println(&amp;quot;Loaded Account Bean&amp;quot;);
&lt;br&gt;&lt;br&gt;} catch (Exception ex) {
&lt;br&gt;ex.printStackTrace();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;When I run the application, I am facing
&lt;br&gt;&lt;br&gt;java.lang.ClassCastException: $Proxy72
&lt;br&gt;ERROR [STDERR] at org.apache.jsp.ejb3.WebClient_jsp.jspInit(WebClien t_jsp.java:28)
&lt;br&gt;ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.init(HttpJsp Base.java:51)
&lt;br&gt;ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.getSer vlet(JspServletWrapper.java:158)
&lt;br&gt;&lt;br&gt;&lt;br&gt;In JBoss, in Global JNDI Namespace it is showing
&lt;br&gt;&lt;br&gt;+- StatefulCode_1 (class: org.jnp.interfaces.NamingContext)
&lt;br&gt;| +- AccountBean (class: org.jnp.interfaces.NamingContext)
&lt;br&gt;| | +- remote (class: java.lang.Object)
&lt;br&gt;| | +- remoteStatefulProxyFactory (proxy: $Proxy73 implements interface org.jboss.ejb3.ProxyFactory)
&lt;br&gt;&lt;br&gt;I was not able to solve. Can anyone suggest what can be the possible remedy for this ?
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/problem-in-ejb3-on-jboss-4.2-tp17120009p17120009.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-16807989</id>
	<title>What to use instead of a singleton in EJB ?</title>
	<published>2008-04-21T08:21:01Z</published>
	<updated>2008-04-21T08:21:01Z</updated>
	<author>
		<name>javaguy</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;what is the prefered way to manage data centrally?
&lt;br&gt;&lt;br&gt;If I wrote normal java software I used a singleton and within this singleton I used some locking.
&lt;br&gt;So I was able to hold some data at a central threadsafe place.
&lt;br&gt;&lt;br&gt;Now I write an EJB application ... and I see that a 'singleton' is not allowed.
&lt;br&gt;&lt;br&gt;One solution might be to use a database that does only exist in memory.
&lt;br&gt;But, is that the prefered way to realize a central data store?
&lt;br&gt;I mean, this store is not very comlicated, doesn't need do be persistent and will not use all the great features of a database.
&lt;br&gt;It should be a unique information resource for many other instances of some java classes.
&lt;br&gt;&lt;br&gt;An example can be a group of users and the singleton provides a structure to hold what user talks to another.
&lt;br&gt;Another example may be a list of logged in users and a certain related ID or some things like that.
&lt;br&gt;&lt;br&gt;So what is the best way to implement such a thing, that in a JavaSE program a singleton would do?
&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/What-to-use-instead-of-a-singleton-in-EJB---tp16807989p16807989.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-16807987</id>
	<title>how to deal with a own propertyfile and EJB</title>
	<published>2008-04-21T08:20:17Z</published>
	<updated>2008-04-21T08:20:17Z</updated>
	<author>
		<name>javaguy</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I'm quite new to the EJB technology.
&lt;br&gt;My problem is, how to handle a property file?
&lt;br&gt;&lt;br&gt;Let's say I have a custom 'property.xml' (that holds some application specific constants) somewhere in my EJB jar or in a related jar (so it is in the classapth).
&lt;br&gt;&lt;br&gt;Usually (not with EJB) I would write a class (let's name it 'Props', see below) which reads the property file once and initialize some public static members.
&lt;br&gt;&lt;br&gt;In an object (see below 'MyClass') I would then use 'Props.memberName' if I want to have access to a constant property.
&lt;br&gt;&lt;br&gt;class with public static constants members; read the file only once; properties are in memory ...
&lt;br&gt;{code}public class Props
&lt;br&gt;&amp;nbsp; public static String FOO = null;
&lt;br&gt;&amp;nbsp; static
&lt;br&gt;&amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; Properties props = new Properties();		
&lt;br&gt;&amp;nbsp; &amp;nbsp; try
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; props.loadFromXML(CConstants.class.getClass().getClassLoader().getResourceAsStream(&amp;quot;propertyFile.xml&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FOO = props.getProperty(&amp;quot;FOO&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; catch(Exception e){...}
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}{code}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;The class that uses the properties&amp;lt;br&amp;gt;
&lt;br&gt;{code}public class MyClass
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; ...
&lt;br&gt;&amp;nbsp; public void doSomething()
&lt;br&gt;&amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; String s = Props.FOO + &amp;quot; BAR&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; ...
&lt;br&gt;}{code}
&lt;br&gt;&lt;br&gt;&lt;br&gt;But unfortunately static things are not allowed in EJB ...
&lt;br&gt;&lt;br&gt;What is the preferred way to get access to the properties?
&lt;br&gt;To read the file each time an EJB is used, will cause much disc-I/O and xml parsing (this is very unefficient).
&lt;br&gt;Is there no mechanism to read such things once only?
&lt;br&gt;&lt;br&gt;I would be very pleased to get an answer, because I don't know how to solve this problem
&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-deal-with-a-own-propertyfile-and-EJB-tp16807987p16807987.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-15975805</id>
	<title>Re: @Interceptor Annotation</title>
	<published>2008-03-11T03:18:42Z</published>
	<updated>2008-03-11T03:18:42Z</updated>
	<author>
		<name>Henadiy</name>
	</author>
	<content type="html">EJB 3.0 interceptors provide the bean developer with fine grained control over the method invocation flow. They can be used on stateless session beans, stateful session beans, and message driven beans. The interceptor may be either a method in the same bean class or an external class.
&lt;br&gt;&lt;br&gt;------------------
&lt;br&gt;&lt;b&gt;&lt;a href=&quot;http://helion-prime.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Software developer&lt;/a&gt;&lt;/b&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/%40Interceptor-Annotation-tp14730184p15975805.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-14730184</id>
	<title>@Interceptor Annotation</title>
	<published>2008-01-10T01:05:53Z</published>
	<updated>2008-01-10T01:05:53Z</updated>
	<author>
		<name>Jothi Shankar Kumar</name>
	</author>
	<content type="html">Guys,
&lt;br&gt;&lt;br&gt;I'm pretty new to this forum. I've started recently to explore on EJB's. I would like to know what is the use of @Interceptor Annotation?
&lt;br&gt;&lt;br&gt;Thanks in advance!</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/%40Interceptor-Annotation-tp14730184p14730184.html" />
</entry>

</feed>
