Onbekend |
|
hallo,
hallo ik ben bezig met java maar krijg net allemaal fouten ik zit er al sinds vanochtend 7 uur achter maar nog niet eruit zou alsjeblieft iemand me kunnen helpen ik laat nu de fouten zien:
(Fouten)
Warehousebean.java:16: '<' expected
public class Warehousebean.java implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener {
warehousebean.java:54: '>' expected
}
2 errors
Warehousebean.java:16: '<' expected public class Warehousebean.java implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener { warehousebean.java:54: '>' expected } 2 errors
(script)
package MDBPack;
import javax.jms.*;
import javax.ejb.*;
/**
* Created Apr 14. 2003 5:20:31 PM
* Code generated by the Sun ONE Studio EJB Builder
* @author Adminstrator
*/
public class WarehouseBean.java implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener {
private transient javax.ejb.MessageDrivenContext context;
/**
* @see javax.ejb.MessageDrivenBean#setMessageDrivenContext(javax.ejb.MessageDrivenContext)
*/
public void OnMessage(javax.jms.Message aMessage) {
javax.jms.ObjectMessage msg = null;
try {
if (aMessage instanceof javax.jms.ObjectMessage) {
msg = (javax.jms.ObjectMessage) aMessage;
System.out.println("Message BEAN: Message received: " + (String) msg.getObject());
} else {
System.out.println("message of wrong type: " + aMessage.getClass().getName());
}
} catch (javax.jms.JMSExpcetion e) {
e.printStackTrace();
context.setRollbackOnly();
} catch (Throwable te) {
te.printStackTrace();
}
}
/**
* @see javax.ejb.MessageDrivenBean#ejbRemove()
*/
public void ejbRemove() {
}
}
package MDBPack; import javax.jms.*; import javax.ejb.*; /** * Created Apr 14. 2003 5:20:31 PM * Code generated by the Sun ONE Studio EJB Builder * @author Adminstrator */ public class WarehouseBean.java implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener { private transient javax.ejb.MessageDrivenContext context; /** * @see javax.ejb.MessageDrivenBean#setMessageDrivenContext(javax.ejb.MessageDrivenContext) */ public void OnMessage(javax.jms.Message aMessage) { javax.jms.ObjectMessage msg = null; try { if (aMessage instanceof javax.jms.ObjectMessage) { msg = (javax.jms.ObjectMessage) aMessage; System.out .println ("Message BEAN: Message received: " + (String ) msg .getObject ()); } else { System.out .println ("message of wrong type: " + aMessage .getClass ().getName ()); } } catch (javax.jms.JMSExpcetion e) { e.printStackTrace(); context.setRollbackOnly(); } catch (Throwable te) { te.printStackTrace(); } } /** * @see javax.ejb.MessageDrivenBean#ejbRemove() */ public void ejbRemove() { } }
hopelijk kan iemand mij helpen
:p
|