Click here to Skip to main content
15,890,670 members
Home / Discussions / Java
   

Java

 
AnswerRe: Doubt on getPixel function Pin
adatapost19-May-09 19:42
adatapost19-May-09 19:42 
QuestionDoubt on Segmentation Pin
Sakthi.Gs :-)17-May-09 21:41
Sakthi.Gs :-)17-May-09 21:41 
QuestionDoubt on Implementing English Dictionary in java Pin
Sakthi.Gs :-)15-May-09 21:29
Sakthi.Gs :-)15-May-09 21:29 
QuestionManipulating other Applications Pin
BenJamming15-May-09 17:19
BenJamming15-May-09 17:19 
QuestionHow to Include english dictionary in java Pin
Sakthi.Gs :-)15-May-09 3:05
Sakthi.Gs :-)15-May-09 3:05 
AnswerRe: How to Include english dictionary in java Pin
Nagy Vilmos15-May-09 3:52
professionalNagy Vilmos15-May-09 3:52 
GeneralHow to Include english dictionary in java Pin
Sakthi.Gs :-)15-May-09 21:32
Sakthi.Gs :-)15-May-09 21:32 
QuestionEnterprise java bean help Pin
crain198115-May-09 2:05
crain198115-May-09 2:05 
I need to know if there is anyone that can help with this ejb's. I'm just trying to set up a simple timer. I want to set it up in intervals plus I need to know what all does the ejb needs. And its ejb3.0 and ejb is Enterprise Java Beans. The code is below:

Client: -> did have something but wasn't working correctly.
<pre>package ejb30.STClient;
import ejb30.STBean.*;

import javax.ejb.EJB;
import javax.ejb.TimerService;
import javax.naming.*;
public class Client
{

}</pre>

Remote:
<pre>package ejb30.STBean;
import javax.ejb.Remote;
import javax.naming.NamingException;

@Remote
public interface STBeanRemote
{
public void Timer();
}
</pre>

Bean:
<pre>package ejb30.STBean;

import javax.annotation.Resource;

import javax.ejb.Stateless;
import javax.ejb.TimedObject;
import javax.ejb.TimerService;


import sun.misc.Timer;

/**
* Session Bean implementation class STBean
*/
@Stateless
public class STBean implements STBeanRemote, TimedObject {
@Resource
private TimerService gog;
/**
* Default constructor.
*/

public void setSessionContext()
{
}
public void Timer()
{
Timer ts = (Timer) gog.createTimer(0, 15000, null);

}
@Override
public void ejbTimeout(javax.ejb.Timer timer)
{
// TODO Auto-generated method stub
System.out.println("I'm working");

}


}
</pre>

XML:
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd"&gt;
&lt;ejb-jar xmlns ="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://ww.w3.org/2001/XMLSchema-instance"
metadata-complete="true" version="3.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/nx/javaee/ejb-jar_3_0.xsd"&gt;
&lt;enterprise-beans&gt;
&lt;session&gt;
&lt;display-name&gt;STBean&lt;/display-name&gt;
&lt;ejb-name&gt;STBean&lt;/ejb-name&gt;
&lt;business-remote&gt;ejb30.STBean.STBeanRemote&lt;/business-remote&gt;
&lt;ejb-class&gt;ejb30.STBean.STBean&lt;/ejb-class&gt;
&lt;session-type&gt;Stateless&lt;/session-type&gt;
&lt;transaction&gt;Container&lt;/transaction&gt;
&lt;security-identity&gt;
&lt;use-caller-identity /&gt;
&lt;/security-identity&gt;
&lt;/session&gt;
&lt;/enterprise-beans&gt;
&lt;/ejb-jar&gt;
</pre>

I edited it with the proper tags... please help.
AnswerRe: Enterprise java bean help Pin
ISoftwareDev23-May-09 10:53
ISoftwareDev23-May-09 10:53 
QuestionDefect per KLOC in java?? Pin
Maya_15-May-09 1:36
Maya_15-May-09 1:36 
AnswerRe: Defect per KLOC in java?? Pin
Nagy Vilmos19-May-09 1:03
professionalNagy Vilmos19-May-09 1:03 
GeneralRe: Defect per KLOC in java?? Pin
Maya_19-May-09 1:22
Maya_19-May-09 1:22 
QuestionJScrollPane child dimesniosn not updating Pin
rareseu14-May-09 5:01
rareseu14-May-09 5:01 
AnswerRe: JScrollPane child dimesniosn not updating Pin
Nagy Vilmos14-May-09 5:45
professionalNagy Vilmos14-May-09 5:45 
GeneralRe: JScrollPane child dimesniosn not updating Pin
rareseu14-May-09 6:30
rareseu14-May-09 6:30 
GeneralRe: JScrollPane child dimesniosn not updating Pin
Nagy Vilmos14-May-09 22:05
professionalNagy Vilmos14-May-09 22:05 
GeneralRe: JScrollPane child dimesniosn not updating Pin
rareseu14-May-09 22:38
rareseu14-May-09 22:38 
Questionrelated ro mobile Pin
raghvendrapanda13-May-09 20:44
raghvendrapanda13-May-09 20:44 
AnswerRe: related ro mobile Pin
Nagy Vilmos14-May-09 2:48
professionalNagy Vilmos14-May-09 2:48 
QuestionRetrieving public key for encryption from digital certificate Pin
shrims4u13-May-09 4:37
shrims4u13-May-09 4:37 
QuestionJava Event Handling Flow ??? Pin
Zealous_Me10-May-09 6:56
Zealous_Me10-May-09 6:56 
AnswerRe: Java Event Handling Flow ??? Pin
Nagy Vilmos10-May-09 21:47
professionalNagy Vilmos10-May-09 21:47 
AnswerRe: Java Event Handling Flow ??? Pin
Zealous_Me11-May-09 3:47
Zealous_Me11-May-09 3:47 
Questionneed help Pin
ahmedbhatti9-May-09 13:42
ahmedbhatti9-May-09 13:42 
AnswerRe: need help Pin
Nagy Vilmos11-May-09 3:02
professionalNagy Vilmos11-May-09 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.