Fernanda Silveira

Greenhorn
+ Follow
since Jul 24, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fernanda Silveira

I took the exam on September, 14th!!

Tips:

Book: Head First EJB (read twice)
Mocks: from the HFEJB book and EJB Plus
Study an example of Deployment Descriptor: http://www.valoxo.ch/jr/DeploymentDescriptor.pdf
Read the EJB Spec chapter about "Portability: What you should do to guarantee portability" (something like that)

Regards,
17 years ago
Hi people,

There is a question about ejbCreate() method in page 364 (Mock Exam - Q. 9). The answer in page 369 (Mock Exam - Answer 9) says that the letter B is correct (getEJBObject()). But in page 329 (Creating a new Entity) the new EJB Object is created after ejbCreate() method. So how can I access the EJB Object (getEJBObject method) if it hasn't been created?

The complete question:

Which method(s) from the EntityContext interface can be invoked from within the ejbCreate method?



Thanks
Hello Nicholas,

I am studying chapter 8 from HFEJB and I was trying to do an example of Queue and Topic, but thank you for your suggestion.

Thanks
Hello all,

I have a MDB that listens to a topic. Now I want two MDB to read the same topic. What do I need to add in my ejb-jar.xml? Can I put both in the same xml file? Or in different jar files?


Here is my ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<display-name>Ejb1</display-name>
<enterprise-beans>
<message-driven>
<ejb-name>MessageTopico</ejb-name>
<ejb-class>com.floripajug.scbcd.MessageBeanTopic</ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
</message-driven-destination>
</message-driven>
</enterprise-beans>
</ejb-jar>

Thanks,
Hello all,

I have a MDB that listens to a topic. Now I want two MDB to read the same topic. What do I need to add in my ejb-jar.xml? Can I put both in the same xml file? Or in different jar files?

Here is my ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<display-name>Ejb1</display-name>
<enterprise-beans>
<message-driven>
<ejb-name>MessageTopico</ejb-name>
<ejb-class>com.floripajug.scbcd.MessageBeanTopic</ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
</message-driven-destination>
</message-driven>
</enterprise-beans>
</ejb-jar>

Thanks,
[ July 27, 2005: Message edited by: Fernanda Silveira ]
Anyone working currently in Australia?
I would like to know more information about IT jobs there, specially Java jobs. Is it easy or there are a lot of people unemployed?

Regards,
Fernanda Silveira
19 years ago
Hello people,

I have passed on SCJP and now I'm studying for SCBCD.
Do you think it's better do the SCWCD first? Or they are independent?

I would like some opinions.

Best regards,
[ October 26, 2004: Message edited by: Fernanda Silveira ]
How can I put the parameter "-Djava.security.policy=java.policy" inside my code besides calling it in the command line?
I use: "java -Djava.security.policy=java.policy MyServer"
But I want to do just: "java MyServer"
And then put the "policy" code inside the class MyServer.
Any ideas?
Regards,
Fernanda Silveira
fe@inf.ufsc.br
19 years ago
SOLVED:
I read in another discussion list about changing the jdk.
I was using the j2sdk1.4.2 from SUN and now I got it from Blackdown (www.blackdown.org) and my server is working !!
Fernanda Silveira
fe@inf.ufsc.br
19 years ago
I'm facing the same problem. When I run the server on other machines everything is ok. When I run the server on my machine (Linux Red Hat 9 - jdk 1.4.2) I got this exception:
/usr/java/j2sdk1.4.2_04/bin/java -Djava.security.policy=java.policy Cadastrador
antes de rebind
Cadastrador Exception: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at Cadastrador.main(Cadastrador.java:27)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2150)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2163)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2631)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
at sun.rmi.server.MarshalInputStream.<init>(MarshalInputStream.java:110)
at sun.rmi.transport.ConnectionInputStream.<init>(ConnectionInputStream.java:38)
at sun.rmi.transport.StreamRemoteCall.getInputStream(StreamRemoteCall.java:111)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:197)
... 4 more
Did you find the reason for this to happen?
Fernanda Silveira
fe@inf.ufsc.br
19 years ago
In Websphere Administrative Console I get the following message:

Source: com.ibm.ejs.security.registry.ldap.LdapRegistryImpl
SECJ0153E: Invalid LDAP user ID
I have installed Portal 4.2.1 Express Plus with Microsoft Active Directory
The Websphere App Server login and Portal login are working OK. I can login with LDAP user and password, but Im getting this message error.
Does anyone have a clue?
20 years ago
When I log into the Portal , in WAS I get the following message:
If you are using CSEnvironment.getEnvironment, you must secure your JSP (in web.xml)!
It seems some portlets added to portal pages cause this error.
Anybody can help me?
20 years ago
Hi all,
I`m installing Websphere Portal 4.2.1 Express Plus on Red Hat 7.2 and when it tries to connect to AD

/bin/sh /opt/WebSphere/PortalServer/bin/xmlaccess.sh /opt/WebSphere/PortalServer/install/SetupPortal.xml wpsadmin:******** ambrjoil02.br.amanco.com/wps/config 50 see /opt/IBMWPO/RunCommand_07.30.17.32/installImpl_127.log
(wpsadmin is an user on AD and the password is correct)
this exception occurs:

java.lang.RuntimeException: java.lang.RuntimeException: com.ibm.websphere.memberservice.exception.MemberServiceException: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 525, v893]
at com.ibm.wps.puma.UserManager.findByAttribute(UserManager.java:277)
at com.ibm.wps.command.xml.XmlCommandServlet.authenticate(XmlCommandServlet.java:170)
at com.ibm.wps.command.xml.XmlCommandServlet.process(XmlCommandServlet.java:121)
at com.ibm.wps.command.xml.XmlCommandServlet.doPost(XmlCommandServlet.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:138)
ANyone can help ??
Thanks,
Fernanda Silveira.
20 years ago
It didn't work
Same error message..
Fernanda
20 years ago
Joe,
Thank you for your suggestion.
Im working on a Websphere Portal Project.
To install WebSphere Portal Server 4.2.1 I need to use Web App Server 4.0.5.
Its an IBM restriction.
In my machine I have installed the Portal Server before and this error never happened. NOw, when Im in a machine's costummer I get this error after installing the fixpack. Very weird, doesn't?
I downloaded the fixpack again and now I will try to install.. hope this time it works!
Fernanda.
20 years ago