Win a copy of Terraform in Action this week in the Cloud forum!

Regis Santos

Ranch Hand
+ Follow
since Mar 23, 2004
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 Regis Santos

Hello.

Since Google had adopted Python as first language to develop applications for the Google App Engine (GAE), I have heard a lot about the power of Python.

In your opinion, is Python a good language to develop applications in the cloud? Is there a special characteristic in the language that can extract the maximum of the cloud, like concurrence, in a easy way?

Thanks.

--
Regis Santos
9 years ago
Hello.

I would like to know which is the audience of the book. Is it for begginers or advanced Python programmers?

Thanks

--
Regis Santos
9 years ago
Hello Celinio Fernandes.

Can you please post the answer? Which kind of fix did you made on login-config.xml? I'm stuck in a similar problem.

Thanks.

--
Regis Santos
10 years ago
Hello Barcia,

Can you tell me what is the best strategy for transactions in an enterprise application: CMT or BMT?
Hello,

I did the following configuration in jbossmq-destinatiions-service.xml



When I started the JBoss, the server binds the queue to "queue/jms/mdb/MyQueue".

How can I remove the "queue/" from the bound JNDI name?

Thanks,
13 years ago
Hi Nico,

What kind of documents are you trying to print?
13 years ago
Hello,

I'm trying to print to network printers using Java Print Service. I did it with printers that I have installed in my OS. But I want to print documents to printers that aren't installed in my operational system.

The method PrintServiceLookup.lookupPrintServices() returns only the printers that I have configured in my OS. I want to invoke a method where I can set the printer path name that isn't necessarily installed in my system.

Thanks a lot.
[ January 07, 2008: Message edited by: Regis Santos ]
13 years ago
Hello Sachin,

I did as you told me. But I got the following exception when the servlet tried to find the local EJB via JNDI.



I tried to change the JNDI name for
cell/nodes/E69Node01/servers/server1/ejb/StartupMonitorBean,
but it wasn't work, too.

These are my deployment descriptors:

ejb-jar.xml




ibm-ejb-jar-bnd.xmi



web.xml



ibm-web-bnd.xmi



FYI: the EJB module and the WAR are in the same EAR.

Thanks,
13 years ago
Hello,

You can use an Stateless SessionBean which has the following home and remote interfaces:

com.ibm.websphere.startupservice.AppStartUpHome
com.ibm.websphere.startupservice.AppStartUp

(put these interfaces in your ejb-jar.xml)

You'll have to implement the methods start() and stop(). Theses methods must be public, no value as return (void), and no parameters. They will be called when your app starts or stops, of course.

The problem is the portability that will be lost.

An alternative is create a servlet the implements the javax.servlet.ServletContextListener interface. Your servlet will be notified and then you can start the EJB.

Regards,
13 years ago
Hello.

How can I access a local EJB from a servlet by its JNDI name when both application are not in the same EAR?

Both application are running in the same server (WebSphere 6.1). But when I invoke the context.lookup() method passing the JNDI name as parameter, I got a NamingExecption.

This is my code:

StartupMonitorServlet


web.xml




Error message:




There's no EJB reference binding in the ibm-web-bnd.xmi.

Thanks!
[ December 12, 2007: Message edited by: Regis Santos ]
13 years ago
Hello,

I have a J2EE application running in a WAS 6.1 Base.

In my application, I have a EJB that its interfaces home and remote are com.ibm.websphere.startupservice.AppStartUpHome and com.ibm.websphere.startupservice.AppStartUp. The EJB implements the methods start() and stop() and these methods are called when the server (or the application) starts or stops.

I don't want to use these interfaces anymore because they're killing the application portability. Does anybody know what I have to do to keep the startup functionality, but decrease the WAS dependency? What alternatives do I have?

Thanks
14 years ago
Hello,

I wanto to authenticate users in my web container using a datasource realm, but I would like to keep the passwords encrypted in the database.

Is it possible to do without to have to implement my own realm?

Thanks,
16 years ago
Hello,

The question 63 (pg 794) in the final mock exam has an error. The line 4 in the JSP file will cause a java.lang.NullPointerException because there is no bean identified by "x".

So, the correct answer is "E".
16 years ago
Hello,

I passed in the SCWCD exam with 97%.

I've been working with web development since 2004 and my study guide book was Head First Servlets & JSP.

Thanks,
16 years ago
Hello,

The question 63 (pg 794) in the final mock exam has an error. The line 4 in the JSP file will cause a java.lang.NullPointerException because there is no bean identified by "x".

So, the correct answer is "E".